Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

METRON-634 Mpack bug fixes and improvements, not impacting Ambari database #532

Closed
wants to merge 1 commit into from

Conversation

mattf-apache
Copy link
Member

These changes fix the following significant bugs:

  • metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/ELASTICSEARCH/2.3.3/configuration/elastic-sysconfig.xml
    • Fixes necessary for Centos7: PID_DIR and JAVA_HOME added for systemd launch
  • metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/ELASTICSEARCH/2.3.3/package/scripts/elastic.py
    • fix permissions on scripts directory
    • fix elastic_group usage (missed one in previous patch)
    • remove incorrect and spurious use of undefined format() method
  • metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/ELASTICSEARCH/2.3.3/package/scripts/elastic_master.py
  • metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/ELASTICSEARCH/2.3.3/package/scripts/elastic_slave.py
    • remove incorrect and spurious uses of undefined format() method
  • metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/ELASTICSEARCH/2.3.3/configuration/elastic-site.xml
    • Fix default value of "network_host" (ie network binding names), which breaks in some envs

Also the following minor issue corrections and description/comment improvements are made:

  • metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/ELASTICSEARCH/2.3.3/package/scripts/params.py
    • fix incorrect override of pid_dir and pid_file, which are correctly defined in elastic-env.xml and ELASTICSEARCH status_params.py
  • metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/ELASTICSEARCH/2.3.3/metainfo.xml
  • metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/ELASTICSEARCH/2.3.3/quicklinks/quicklinks.json
    • Add quicklinks to Elastic page in Ambari, for ES health status page and indexes list page; very useful for debugging the install.
  • metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/ELASTICSEARCH/2.3.3/configuration/elastic-site.xml
  • metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/configuration/metron-env.xml
    • Non-substantive changes to descriptions or comments, meant to improve usability.
    • Also an ordering change and add newline at end of file.

These fixes are only the first half of METRON-634. The second half cause changes to the Ambari database, and therefore require an update script. These will be done in a separate PR, when I have time to do it. The changes here are stand-alone improvements.

Contributor Comments

These issues were worked out over several weeks of working with Mpack on Centos7, and documented in METRON-634. @dlyle65535 adopted some into the Ansible work, but most remain to be done.

They have been tested manually, and through a full run of integration test. If you are running Centos7, you will only notice the bug fixes as smoother startup of Elasticsearch.

The description improvements make it easier for manual users of Mpack Ambari install.

Pull Request Checklist

In order to streamline the review of the contribution we ask you follow these guidelines and ask you to double check the following:

For all changes:

  • Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
  • Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
  • Has your PR been rebased against the latest commit within the target branch (typically master)?

For code changes:

  • Have you included steps to reproduce the behavior or problem that is being changed or addressed?

  • Have you included steps or a guide to how the change may be verified and tested manually?

    • The issues were not noticed by most users anyway. Recommend that developers familiar with the guts of Mpack review the changes by inspection.
  • Have you ensured that the full suite of tests and checks have been executed in the root incubating-metron folder via:

    mvn -q clean integration-test install && build_utils/verify_licenses.sh 
    
  • [NA] Have you written or updated unit tests and or integration tests to verify your changes?

  • [NA] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

  • Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?

For documentation related changes:

  • [NA] Have you ensured that format looks appropriate for the output in which it is rendered by building and verifying the site-book?

@justinleet
Copy link
Contributor

This is great, thanks for cleaning a lot of this up. When I get a chance, I look forward to spinning this up.

@dlyle65535
Copy link
Contributor

+1, ran it up in full-dev and on EC2 (Centos7) and worked like a champ. Thanks!

@asfgit asfgit closed this in df44f07 Apr 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants