Change IP address of a Hadoop HDFS data node server and avoid Block pool errors

CHANGE HOST IP IN CLOUDERA MANAGER

  1. Change Host IP on all node
    sudo nano /etc/hosts
    
  2. Edit the ip cloudera config.ini on all node if the master node ip changes
    sudo nano /etc/cloudera-scm-agent/config.ini
    
  3. Change IP in PostgreSQL Database
  4. For the password Open PostgreSQL password
    cat /etc/cloudera-scm-server/db.properties
    
  5. Find the password lines
    Example. com.cloudera.cmf.db.password=gUHHwvJdoE
    
  6. Open PostgreSQL
    psql -h localhost -p 7432 -U scm
    
  7. Select table in PostgreSQL
    select name,host_id,ip_address from hosts;
    
  8. Update table IP
    update hosts set ip_address = 'xxx.xxx.xxx.xxx' where host_id=x;
    
  9. Exit the tool
    \q
    
  10. Restart the service on all node
    service cloudera-scm-agent restart
    
  11. Restart the service on master node
    service cloudera-scm-server restart

LEAVE A COMMENT