As we know that “HDP 2.6” is not bundle with “HDP Search” which includes Solr. Therefore here in two parts of article i am going to explain ways to install Solr/SolrCloud/HDP_Search:-

1. Apache Solr Search Installation on HDP2.6 using Yum Repo.

2. Apache Solr Search Installation on HDP2.6 using Ambari Management Pack.

Both are using different approach therefore i have divided it into two articles

Recently i have installed HDP2.6 on one of my development environment. Now its time to bring same services back one by one as we are running on HDP2.5 in production environment, one of them is “HDP Search”. The steps are similar to we have already done for Solr installation on HDP2.5 except yum repository pointer.

I am running “64-bit CentOS 7”, lets start with setting JAHA_HOME

You can find you java home by running below command

# which java

/usr/bin/java

ls -ltr /usr/bin/java

lrwxrwxrwx. 1 root root 22 Mar 6 20:16 /usr/bin/java -> /etc/alternatives/java

# ll /etc/alternatives/java

lrwxrwxrwx. 1 root root 73 Mar 6 20:16 /etc/alternatives/java -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/jre/bin/java

Lets export Java Home using below command:-

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/jre/

Now verify your hadoop version:-

# hadoop version
Hadoop 2.7.3.2.6.0.3-8

Refresh your yum repo:-

# yum clean all # wget http://public-repo-1.hortonworks.com/HDP-SOLR-2.6-100/repos/centos7/hdp-solr.repo # mv hdp-solr.repo /etc/yum.repos.d/ 

Listing you yum repo would show one of the item below added recently:-

# yum repolist Loaded plugins: fastestmirror, langpacks, priorities HDP-SOLR-2.6-100 | 2.9 kB  00:00 


Now run below command to complete the “HDP Search” installation:-

# yum install lucidworks-hdpsearch Loaded plugins: fastestmirror, langpacks, priorities Loading mirror speeds from cached hostfile  * base: mirror.dhakacom.com  * epel: ftp.jaist.ac.jp  * extras: mirror.dhakacom.com  * updates: mirror.dhakacom.com 1 packages excluded due to repository priority protections Resolving Dependencies --> Running transaction check ---> Package lucidworks-hdpsearch.noarch 0:2.6-100 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================  Package         Arch    Version   Repository      Size ================================================================================ Installing:  lucidworks-hdpsearch   noarch   2.6-100   HDP-SOLR-2.6-100   492 M Transaction Summary ================================================================================ Install 1 Package Total download size: 492 M Installed size: 620 M

Happy Searching,

Next we go with “Apache Solr Search Installation on HDP2.6 using Ambari Management Pack”…

Leave a Reply

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