Installation
Also available as:
PDF
loading table of contents...

Installing HCP Ambari Management Pack

The HCP Ambari management pack bundles service definitions, stack definitions, and stack add-on service definitions so they do not need to be included with the Ambari core functionality and can be updated in between major releases. The HCP management pack includes Metron, plus the parser topologies, indexing topologies, and enrichment topologies. HCP also provides a management pack extension that simplifies the provisioning, management, and monitoring of Elasticsearch and Kibana.

  1. Download the HCP management pack tar file from the HCP repo location:

    The following example uses CentOS 7.

    wget -nv http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.4.2.0/tars/metron/hcp-ambari-mpack-1.4.2.0-23.tar.gz

    You can find the management pack repositories for each of the operating systems supported by HCP at https://docs.hortonworks.com/HDPDocuments/HCP1/HCP-1.4.2/bk_release-notes/content/hcs_1_0_repos.html.

    [Note]Note

    When installing Elasticsearch with the HCP management pack on Ubuntu, you must manually install the Elasticsearch repositories. You also do not need to download and install the elasticsearch_mpack.

  2. Install the HCP management pack:

    ambari-server install-mpack --mpack=/${MPACK_DOWNLOAD_DIRECTORY}/hcp-ambari-mpack-1.4.2.0-23.tar.gz --verbose

    You should see a message saying that the management packs completed successfully.

  3. If you are using Apache Solr, install it using the Ambari HDP Search management pack.

    [Important]Important

    Ensure the Java threat stack size parameter is set to greater than 320kb. The default setting for SOLR_JAVA_STACK_SIZE is not sufficient to start the Solr service.

    1. Install Solr.

      Refer to the Solr documentation for installation instructions.

    2. Install the Ambari HDP Search Management pack.

      For instructions on downloading and using the Ambari HDP Search management pack, see Apache Solr Search Installation.

    3. In Ambari, navigate to the Metron Indexing tab.

    4. Append /solr to the end of the ZooKeeper url.

    5. Copy the Metron schema files located at $METRON_HOME/config/schema to the Solr node.

    6. Copy the $METRON_HOME/bin/create_collections.sh script to the Solr node.

    7. Use the create_collection.sh script to create the required Solr collections:

      $METRON_HOME/bin/create_collection.sh $SOLR_COLLECTION_NAME
    8. Stop and restart Solr.