Support Questions
Find answers, ask questions, and share your expertise

is there any way to start/stop/validate hadoop cluster via command line?

Highlighted

is there any way to start/stop/validate hadoop cluster via command line?

Explorer

Hi,

 

We are trying to automate the patching process. we are trying to create a script with start/stop/validate commands. can anyone help if there is any steps for this.

2 REPLIES 2
Highlighted

Re: is there any way to start/stop/validate hadoop cluster via command line?

Super Collaborator

Re: is there any way to start/stop/validate hadoop cluster via command line?

Explorer

Thanks for the response, i tried to use below curl command to turn on/off maintenance mode but failed.

curl -u user -H "X-Requested-By:ambari" -i -X PUT -d '{"RequestInfo":{"context:"Turn Off Maintenance Mode for host","query":"Hosts/host_name.in(host1,host2)"},"Body":{"Hosts":{"maintenance_state":"OFF"}}}' http://ambari_host:8080/api/v1/clusters/comcastdrcluster/hosts

 

can someone please advise if we have anyother commands that we can use to turn on/off maintenance mode.

 

 

 

Thanks

Reshma