hadoop 2.2搭建常见错误
http://blog.csdn.net/haidao2009/article/details/14897813
hadoop 2.2 搭建
http://blog.csdn.net/pelick/article/details/12065147
1
但是上面这个配置里面有点小问题问题
- <property>
- <name>yarn.nodemanager.aux-services</name>
- <value>mapreduce.shuffle</value>
- </property>
改为
- <property>
- <name>yarn.nodemanager.aux-services</name>
- <value>mapreduce_shuffle</value>
- </property>
不然会出现这种错误
java.lang.IllegalArgumentException: The ServiceName: mapreduce.shuffle set in yarn.nodemanager.aux-services is invalid.The valid service name should only contain a-zA-Z0-9_
错误日志在
hadoop-2.2.0/logs/yarn-hadoop-nodemanager-cs212.log
2
添加
export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib"
不然会出现下面的错误。
Hadoop 2.2.0 - warning: You have loaded library /home/hadoop/2.2.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard.
解决:
ou add a variable on .bash_profile
$ nano ~/.bash_profile
export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib"
Apply it.
$ source ~/.bash_profile
And.. starting!!
$ start-all.sh
3.
centos 默认开启了 ipv6 hadoop 8088 那些服务完全打不开。