solrcloudera-cdhcloudera-manager

how to restart solr server (cloudera) from command line


I want to restart solr cloud from command line or shell script. when i use the command sudo service solr-server restart it gives unrecognized service.

is there a way to restart solr cloud from command line?

I am using cloudea-serach 4.3 cdh 4.7

and also

1)is there a way to know the backend command executed by cloudera manager when the restart action is fired?


Solution

  • For anyone who is having the same question:

    You can use the curl POST command

    curl -u admin:admin -X POST http://ipaddress:7180/api/v4/clusters/<Cluster_name>/services/solr1/commands/start -H 'Content-type:aplication/json; charset=utf-8';