1,Error: Could not find or load main class namenode-format
这个是错误的把hadoop namenode -format 命令写成hadoop namenode-format
2, WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
在/etc/profile中加上这两句
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib:$HADOOP_COMMON_LIB_NATIVE_DIR"
时间: 2024-12-13 20:13:39