HDFS退出安全模式


执行任务时报以下错:

Safe mode is ON in r2n03/192.168.0.43:8020
ERROR to execute safemode cmd: get on r1n08/192.168.0.38:8020 , Exception = java.net.ConnectException: Call From r2n03/192.168.0.43 to r1n08:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
2020-03-30 20:32:30,165 INFO util.KerberosUtil: Using principal pattern: HTTP/_HOST
2020-03-30 20:32:31,541 INFO util.KerberosUtil: Using principal pattern: HTTP/_HOST
Save namespace successful for r2n03/192.168.0.43:8020
saveNamespace: Call From r2n03/192.168.0.43 to r1n08:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused

手动退出安全模式:

su -s /bin/bash hdfs -c "
export HADOOP_CLIENT_OPTS='-Dtranswarp.maintenance.only.mode=true';
hdfs dfsadmin -safemode leave "


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM