Installing HDP Search with Ambari

Ambari Management Packs are a new convenient way to integrate various services to the Ambari stack. As an example in this post we are using the Solr service mpack to install HDP on top of a newly installed cluster.

The HDP search mpack is available on the Hortonworks public repository for download. A mpack essentially is tar balls containing a mpack.json file specification and related binaries.Download the mpack from Hortonworks repo:

After downloading the tar file it can directly be used to install it with Ambari server:

Before you restart Ambari we still have to add the package repository containing Solr. Ambari keeps that information under  /var/lib/ambari-server/resources/stacks/HDP/2.5/repos/repoinfo.xml and it should look like this:

Repository links for other platforms:

CentOS/RHEL/Oracle Linux 6 Linux 7 Ubuntu12

Finally you have to restart Ambari for it to make the changes available:

Now HDP can be installed like any other service already available:

Select Solr:

Make sure you have the correct settings like SolrCloud, index path in HDFS or not, and if you want the sample collection to be created.

Further Reading

Leave a Reply

Your email address will not be published. Required fields are marked *