Reply
Explorer
Posts: 21
Registered: ‎09-11-2014
Accepted Solution

Restart Solr from command line

I am wondering if there is a way to restart Solr from the command line? I would like to script a restart of solr every night so that I dont have to do it manually.

Thank You

Jamie

Cloudera Employee
Posts: 42
Registered: ‎08-16-2016

Re: Restart Solr from command line

If you are using Cloudera Manager, you can use the API present to do that.

The end point you will like to use will be : /cm/service/roleCommands/restart

I would not recommend to do restart outside of the CM cause the management will be difficult.

 

 

Doc Link : https://cloudera.github.io/cm_api/apidocs/v12/

Highlighted
Explorer
Posts: 21
Registered: ‎09-11-2014

Re: Restart Solr from command line

Thank you that gives me exactly what I needed. Why would you say that management would be difficult?

 

Jamie

Cloudera Employee
Posts: 42
Registered: ‎08-16-2016

Re: Restart Solr from command line

If a node dies, it will be difficult to track which one died and which ones are running.
If you have installed it completely outside of CM and are using an external Management tool, then you might have to deal with how other services interact with each other .

Hope this helps.
Announcements