SOLR components integrated into the Ambari for unified management

Source: Internet
Author: User
Tags solr

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.