标签:... form 部署 pts hadoop lib error home dir
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"
标签:... form 部署 pts hadoop lib error home dir
原文地址:http://www.cnblogs.com/flyfish919/p/7534558.html