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
http://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/centos6CentOS/RHEL/Oracle Linux 7
http://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/centos7SUSE11SP3/SP4
http://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/suse11sp3 Ubuntu12
http://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/ubuntu12
Ubuntu14
http://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/ubuntu14
Debian6
http://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/debian6
Debian7
http://public-repo-1.hortonworks.com/HDP-SOLR-2.5-100/repos/debian7

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 *