Wednesday, April 29, 2015

Cloudera Manager - How to Update Host IP Address

In order to update host IP in your Hadoop cluster, you need to connect to whatever DB your cloudera manager is using. I use postgresql. If you don't know, check the "/etc/cloudera-scm-server/" file:
# cat /etc/cloudera-scm-server/
# Auto-generated by

Log into the postgres DB:
# psql -h localhost -U scm -p 7432
Password for user scm:
psql (version)
Type "help" for help.

Check IP address:
scm=> select * from "hosts";

scm=> update hosts set ip_address = '' where host_id=5;

You should be able to see the new IP in your CM "Hosts" tab.

No comments: