hadoop2.2.0 搭建时错误提示_JAVA_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > JAVA > hadoop2.2.0 搭建时错误提示

hadoop2.2.0 搭建时错误提示

 2014/10/20 0:34:31  smallsilver  程序员俱乐部  我要评论(0)
  • 摘要:hadoop2.2.0搭建时错误提示Youhaveloadedlibrary/usr/local/hdfs/hadoop-2.2.0/lib/native/libhadoop.so.1.0.0错误。我的错误提示:hduser@ubuntu:/usr/local/hdfs/hadoop-2.2.0/etc/hadoop$start-dfs.sh14/10/1923:16:20WARNutil.NativeCodeLoader:Unabletoloadnative
  • 标签:错误 hadoop

hadoop2.2.0 搭建时错误提示

?You have loaded library /usr/local/hdfs/hadoop-2.2.0/lib/native/libhadoop.so.1.0.0 错误。

我的错误提示:

class="java">hduser@ubuntu:/usr/local/hdfs/hadoop-2.2.0/etc/hadoop$ start-dfs.sh 
14/10/19 23:16:20 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /usr/local/hdfs/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.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
master.Hadoop]
sed: -e expression #1, char 6: unknown option to `s'
-c: Unknown cipher type 'cd'
The authenticity of host 'master.hadoop (192.168.0.100)' can't be established.
ECDSA key fingerprint is e9:54:fe:7f:10:ed:31:0b:f0:34:cb:59:87:9a:06:d4.
Are you sure you want to continue connecting (yes/no)? The authenticity of host '64-bit (202.106.199.36)' can't be established.
RSA key fingerprint is cd:7e:30:33:b7:b0:75:b1:bd:cb:22:3b:b4:ba:d7:4b.
Are you sure you want to continue connecting (yes/no)? The authenticity of host 'you (202.106.199.36)' can't be established.
RSA key fingerprint is cd:7e:30:33:b7:b0:75:b1:bd:cb:22:3b:b4:ba:d7:4b.
Are you sure you want to continue connecting (yes/no)? The authenticity of host 'have (202.106.199.36)' can't be established.
RSA key fingerprint is cd:7e:30:33:b7:b0:75:b1:bd:cb:22:3b:b4:ba:d7:4b.
Are you sure you want to continue connecting (yes/no)? ^C64-Bit: Host key verification failed.
master.Hadoop: Host key verification failed.

have: Host key verification failed.
You: Host key verification failed.
hduser@ubuntu:/usr/local/hdfs/hadoop-2.2.0/etc/hadoop$ The authenticity of host 'guard. (202.106.199.36)' can't be established.
RSA key fingerprint is cd:7e:30:33:b7:b0:75:b1:bd:cb:22:3b:b4:ba:d7:4b.
Are you sure you want to continue connecting (yes/no)? 
guard.: Host key verification failed.
The authenticity of host 'guard (202.106.199.36)' can't be established.
RSA key fingerprint is cd:7e:30:33:b7:b0:75:b1:bd:cb:22:3b:b4:ba:d7:4b.
Are you sure you want to continue connecting (yes/no)? 
guard: Host key verification failed.
now.: ssh: Could not resolve hostname now.: Name or service not known
noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not known

?最后在github上找到解决方案。

最后因为环境变量的问题。后面两个链接也挺不错。

You add a variable on hadoop-env.sh and yarn-env.sh.
export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib"

And.. starting!!
$ start-all.sh

Thanks. :D

Reference
http://www.yongbok.net/blog/how-to-install-hadoop-2-2-0-pseudo-distributed-mode
http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/NativeLibraries.html

?

发表评论
用户名: 匿名