CDH 错误处理

Sun Nov 27 17:40:12 CST 2022
JAVA_HOME=/usr/java/jdk1.8.0_351-amd64
using /usr/java/jdk1.8.0_351-amd64 as JAVA_HOME
using 6 as CDH_VERSION
using /var/run/cloudera-scm-agent/process/84-hdfs-NAMENODE-createtmp as CONF_DIR
using  as SECURE_USER
using  as SECURE_GROUP
CONF_DIR=/var/run/cloudera-scm-agent/process/84-hdfs-NAMENODE-createtmp
CMF_CONF_DIR=
unlimited
2022-11-27 17:40:25 WARN  NativeCodeLoader:60 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Directory /tmp does not currently exist.
2022-11-27 17:40:27 WARN  CreateHdfsDirUtil:377 - Connection failed 1 time(s). Trying again...
org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory /tmp. Name node is in safe mode.
Resources are low on NN. Please add or free up more resourcesthen turn off safe mode manually. NOTE:  If you turn off safe mode before adding resources, the NN will immediately return to safe mode. Use "hdfs dfsadmin -safemode leave" to turn safe mode off. NamenodeHostName:node141

PriviledgedActionException as:hdfs (auth:SIMPLE) cause:org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory /tmp. Name node is in safe mode.
The reported blocks 0 has reached the threshold 0.9990 of total blocks 0. The number of live datanodes 0 needs an additional 1 live datanodes to reach the minimum number 1.
Safe mode will be turned off automatically once the thresholds have been reached.

删除: /data/dfs/nn 文件夹
退出安全模式:su - hdfs \ hadoop dfsadmin -safemode leave(“/sbin /nologin”,需要将其改成“/bin/bash”)
手动初始化NameNode:hdfs namenode -format

#2
2022-11-27 18:00:00 WARN  NativeCodeLoader:60 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2022-11-27 18:00:01 WARN  CreateHdfsDirUtil:377 - Connection failed 1 time(s). Trying again...
java.net.ConnectException: Call From node141/127.0.0.1 to node141:8020 failed on connection exception: java.net.ConnectException: Connection refused;

  

#3

 

 #4 解决HiveServer2 无法启动问题

hdfs dfs -chmod 777 /tmp

posted @ 2022-11-27 18:15  z醉清风  阅读(258)  评论(0编辑  收藏  举报