Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-642

Correct path to ES gc log file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Minor
    • Resolution: Done
    • 0.3.0
    • 0.4.0
    • None

    Description

      ==== First ====
      Currently in Metron Mpack es.ip in Metron configuration is set to: es_url.

      Which is incorrect and will fail, instead it should be replaced with:
      "es.ip": "<elasticsearch_master_hostname>",
      "es.port": "9300",

      But I do not know how to get elasticsearch_master_hostname. Also, value of es.port seems like can be defaulted to es_binary_port or even omitted as it is already specified in es_binary_port.

      This should be chanted in:
      https://github.com/apache/incubator-metron/blob/master/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/configuration/metron-env.xml
      On line 208.
      ==== First ====

      ==== Second ====
      In file https://github.com/apache/incubator-metron/blob/master/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/ELASTICSEARCH/2.3.3/configuration/elastic-sysconfig.xml
      On lines 93 and 95 symbols "/" is forgotten. e.g:
      ES_JAVA_OPTS="-verbose:gc -Xloggc:log_dir/elasticsearch_gc.log -XX:-CMSConcurrentMTEnabled
      should be:
      ES_JAVA_OPTS="-verbose:gc -Xloggc:log_dir/elasticsearch_gc.log -XX:-CMSConcurrentMTEnabled
      ==== Second ====

      ==== Third ====
      After ES install it will fail to start with error"

      Likely root cause: java.nio.file.AccessDeniedException: /etc/elasticsearch/scripts
      

      The reason for the is root permission on these files:

       # ls -la /etc/elasticsearch
      ...
      -rwxr-x---.   1 root          elasticsearch  2571 May 12 09:24 logging.yml
      drwxr-x---.   2 root          elasticsearch  4096 May 17 11:49 scripts
      

      I was not able to trace down origin of these files, so do not know how to fix it.
      ==== Third ====

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dima_k Dima Kovalyov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: