立即注册 登录
About云-梭伦科技 返回首页

ngou的个人空间 https://aboutyun.com/?9865 [收藏] [复制] [分享] [RSS]

日志

Hadoop 2.2.0 --- Unable to load native-hadoop library for your platform

热度 1已有 1629 次阅读2014-12-19 16:18 |个人分类:Hadoop

今天在单机上安装hadoop-2.2.0,   修改了./etc/hadoop 下的几个配置文件,准备启动hadoop,报错:
ngou@ubuntu:~$ start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
14/12/19 00:13:39 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 /home/ngou/apache/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'.
localhost]
sed: -e expression #1, char 6: unknown option to `s'
guard.: ssh: Could not resolve hostname guard.: Name or service not known
-c: Unknown cipher type 'cd'
now.: ssh: Could not resolve hostname now.: Name or service not known
noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not known
localhost: starting namenode, logging to /home/ngou/apache/hadoop-2.2.0/logs/hadoop-ngou-namenode-ubuntu.out
have: ssh: Could not resolve hostname have: Name or service not known
stack: ssh: Could not resolve hostname stack: Name or service not known
which: ssh: Could not resolve hostname which: Name or service not known
64-Bit: ssh: Could not resolve hostname 64-bit: Name or service not known
loaded: ssh: Could not resolve hostname loaded: Name or service not known
have: ssh: Could not resolve hostname have: Name or service not known
disabled: ssh: Could not resolve hostname disabled: Name or service not known
library: ssh: Could not resolve hostname library: Name or service not known
will: ssh: Could not resolve hostname will: Name or service not known
try: ssh: Could not resolve hostname try: Name or service not known
stack: ssh: Could not resolve hostname stack: Name or service not known
You: ssh: Could not resolve hostname you: Name or service not known
recommended: ssh: Could not resolve hostname recommended: Name or service not known
guard: ssh: Could not resolve hostname guard: Name or service not known
highly: ssh: Could not resolve hostname highly: Name or service not known
fix: ssh: Could not resolve hostname fix: Name or service not known
you: ssh: Could not resolve hostname you: Name or service not known
Java: ssh: connect to host java port 22: Connection refused
might: ssh: Could not resolve hostname might: Name or service not known
fix: ssh: Could not resolve hostname fix: Name or service not known
with: ssh: Could not resolve hostname with: Name or service not known
or: ssh: Could not resolve hostname or: Name or service not known
library: ssh: Could not resolve hostname library: Name or service not known
with: ssh: Could not resolve hostname with: Name or service not known
link: ssh: Could not resolve hostname link: No address associated with hostname
that: ssh: Could not resolve hostname that: Name or service not known
The authenticity of host 'it (9.149.37.213)' can't be established.
RSA key fingerprint is 2e:e4:cf:b3:93:ab:fb:05:61:b3:98:3a:73:db:3f:58.

网上找了很多解决方案,只有这个可以解决:
sudo vi /etc/profile
添加
export HADOOP_COMMON_LIB_NATIVE_DIR=/home/ngou/apache/hadoop-2.2.0/lib/native
然后 source /etc/profile  
ngou@ubuntu:~$ start-all.sh

正常启动。


路过

雷人

握手

鲜花

鸡蛋

全部作者的其他最新日志

发表评论 评论 (1 个评论)

回复 muyannian 2014-12-19 18:54
这个倒是个解决办法

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 立即注册

关闭

推荐上一条 /2 下一条