SOLR Integration Manual 1. Copy the installation source
Log on to the Yum node and copy the installation package to the specified directory.
cp HDPsearch.tar.gz /var/www/html/HDPsearch.tar.gz
2. Installing the Ambari Plugin
Log on to the Ambari host node and install the Ambari plugin.
Unzip the plugin
unzip solr-stack.zip
mv solr-stack /var/lib/ambari-server/resources/stacks/HDP/2.2/services/SOLR
Restart Service
ambari-server restart
3. Installing SOLR Server
Log in to the Ambari management interface and start installing SOLR Server.
Note:
Commands that may be shipped to
CP hdpsearch.tar.gz/var/www/html/hdpsearch.tar.gz
Unzip Solr-stack.zip
MV SOLR-STACK/VAR/LIB/AMBARI-SERVER/RESOURCES/STACKS/HDP/2.2/SERVICES/SOLR
Ambari-server restart
Cd/var/lib/ambari-agent/cache/stacks/hdp/2.2/services/solr
GET STATUS
Curl-u admin:admin-h "X-requested-by:ambari"-X GET Http://hadoop1.icccuat.com:8080/api/v1/clusters/hdp/services/SOLR
STOP SERVICE
Curl-u admin:admin-h "X-requested-by:ambari"-X put-d ' {"Requestinfo": {"context": "Stop Service"}, "Body": {" ServiceInfo ": {" state ":" Installed "}}} ' Http://hadoop1.icccuat.com:8080/api/v1/clusters/hdp/services/SOLR
Delete Service
Curl-u admin:admin-h "X-requested-by:ambari"-X DELETE http://hadoop1.icccuat.com:8080/api/v1/clusters/hdp/services /solr
/usr/lib/python2.6/site-packages/resource_management/libraries/script
Rm-rf/usr/solr
Rm-rf/var/run/solr
Rm-rf/etc/solr
Rm-rf/var/log/solr
Ambari-server stop
Ambari-server start
Rm-rf/var/lib/ambari-agent/cache/stacks/hdp/2.2/services/solr
clean.sh
/var/run/solr/solr.pid
Rm/var/run/solr/solr.pid
Quasi-production
Curl-u admin:admin-h "X-requested-by:ambari"-X put-d ' {"Requestinfo": {"context": "Start regionserver", "Operation_ Level ": {" level ":" Host_component "," cluster_name ":" ' quasi_production ' "," host_name ":" ' zdbdsps024.iccc.com ' "," Service_Name ":" ' HBase ' "}}," Body ": {" Hostroles ": {" state ":" STARTED "}}}" http://172.19.189.49:8080/api/v1/clusters/ Quasi_production/hosts/zdbdsps024.iccc.com/host_components/hbase_server
Curl-u admin:admin-h "X-requested-by:ambari"-X put-d ' {"Requestinfo": {"context": "Restart Service"}, "Body": {" ServiceInfo ": {" state ":" Installed "}}} ' Http://172.19.189.49:8080/api/v1/clusters/Quasi_Production/services/HBase
Hdp-select Set All 2.2.6.0-2800
Ambari-server set-current--cluster-name=quasi_production--version-display-name=hdp-2.2.6.0
HDP-2.2.4.2
SOLR components integrated into the Ambari for unified management