호스트 IP 변경 후 DataNode가 CM에 정상 등록되지 않는 증상이 나타난다.
Agent 재시작 후 CM에 올바른 IP가 반영되고 DataNode 역할이 정상 동작했다.
해당 호스트에서 systemctl restart cloudera-scm-agent.service를 실행한다.
명령 예시는 문서 작성 시 보강한 것이며 대상 시스템에서 실행 검증하지 않았다.
/etc/hosts, CM agent의 server_host를 확인한다.hostname -f
getent hosts "$(hostname -f)"
sudo systemctl restart cloudera-scm-agent.service
sudo systemctl status cloudera-scm-agent.service --no-pager
새 IP로 CM heartbeat가 들어오고 NameNode의 live DataNode 목록에 등록되는지 확인한다.