hadoop 2.2 错误总结

来源:互联网 发布:mac 看图片的拍摄地点 编辑:程序博客网 时间:2024/06/05 20:01

hadoop 2.2 搭建

http://blog.csdn.net/pelick/article/details/12065147


1


但是上面这个配置里面有点小问题问题

  1. <property>  
  2.     <name>yarn.nodemanager.aux-services</name>  
  3.     <value>mapreduce.shuffle</value>  
  4.   </property> 

改为

  1. <property>  
  2.     <name>yarn.nodemanager.aux-services</name>  
  3.     <value>mapreduce_shuffle</value>  
  4.   </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.


<div class="line" id="file-hadoop-2-2-0-txt-LC3">Unable to load native-hadoop library for your platform... using builtin-java classes where applicable</div><div class="line" id="file-hadoop-2-2-0-txt-LC4">Starting namenodes on [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/hadoop/2.2.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.</div><div class="line" id="file-hadoop-2-2-0-txt-LC5">It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.</div><div class="line" id="file-hadoop-2-2-0-txt-LC6">localhost]</div><div class="line" id="file-hadoop-2-2-0-txt-LC7">sed: -e expression #1, char 6: unknown option to `s'</div><div class="line" id="file-hadoop-2-2-0-txt-LC8">HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not known</div><div class="line" id="file-hadoop-2-2-0-txt-LC9">64-Bit: ssh: Could not resolve hostname 64-Bit: Name or service not known</div><div class="line" id="file-hadoop-2-2-0-txt-LC10">Java: ssh: Could not resolve hostname Java: Name or service not known</div><div class="line" id="file-hadoop-2-2-0-txt-LC11">Server: ssh: Could not resolve hostname Server: Name or service not known</div><div class="line" id="file-hadoop-2-2-0-txt-LC12">VM: ssh: Could not resolve hostname VM: Name or service not known</div>

解决:

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 那些服务完全打不开。

centos6 linux禁用IPv6,解决大量 TIME_WAIT ::ffff:127.0.0.1:59299

没设置好 很多服务无法访问
http://www.qbage.com/post/48-centos6-disable-ipv6.html
0 0
原创粉丝点击