Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

ambari-server update-host-names host_names_changes.json

Highlighted

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?
Coming from Hortonworks? Activate your account here