hadoop2.2.0 搭建时错误提示

12 篇文章 0 订阅
1 篇文章 0 订阅

hadoop2.2.0 搭建时错误提示

 You have loaded library /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.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

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值