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

ambari-server update-host-names host_names_changes.json

ambari-server update-host-names host_names_changes.json

New Contributor

Hi,

 

I am trying to update hostnames  in silent mode

ambari-server update-host-names host_names_changes.json  -s

Updates do not happen as by default values for the prompt are n

 

Is there a way to pass "y"  to the prompts below from above command line 

ambari-server update-host-names host_names_changes.json  -s

 

Please, confirm Ambari services are stopped [y/n] (n)? y
Please, confirm there are no pending commands on cluster [y/n] (n)? y
Please, confirm you have made backup of the Ambari db [y/n] (n)? y

Don't have an account?