TOOL/ELK 2019. 11. 4. 23:27

ElasticSearch

  • 버전: 7.3.1

Trial License 사용

  • 체험판(trial) 라이센스 요청

      POST /_license/start_trial?acknowledge=true
      {}
  • 라이센스 확인

      GET /_license

Trial License 만료 후

Trial버전이 만료된 후 그대로 사용하고 있었는데.. 몇몇 기능이 안되는 현상이 생겼다.

예컨데

  • 인덱스 상태를 확인하기 위해 다음과 같이 호출했는데 오류가 생겼다.

    GET /_cat/indices?pretty
      {
        "error": {
          "root_cause": [
            {
              "type": "security_exception",
              "reason": "current license is non-compliant for [security]",
              "license.expired.feature": "security"
            }
          ],
          "type": "security_exception",
          "reason": "current license is non-compliant for [security]",
          "license.expired.feature": "security"
        },
        "status": 403
      }

    (웃기지만, Browser에서 호출할때는 안되었지만, JAVA에서 HighLevelClient를 통해서는 가능했다. 어쨌거나 저쨋거나...)

그래서! 다음과같이 라이센스를 지웠으나..

  • 라이센스 삭제

      DELETE /_license
  • 라이센스 확인

      GET /_license

여전했다. 그러나!!

해결방법은 바로 이것이다!!

설정파일에 다음 옵션을 삽입해 넣으니 됐다!!

  • config/elasticsearch.yml

    xpack.security.enabled: false

참고