ssh: Could not resolve hostname guard.: Temporary

今天在通过./start-all.sh启动Hadoop集群的时候报了如下的错误

root@master:/usr/local/hadoop-2.7.2/sbin# ./start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
16/06/16 17:54:32 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [Java HotSpot(TM) Client VM warning: You have loaded library /usr/local/hadoop-2.7.2/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]
sed: -e expression #1, char 6: unknown option to `s'
HotSpot(TM): ssh: Could not resolve hostname hotspot(tm): Temporary failure in name resolution
Java: ssh: Could not resolve hostname java: Temporary failure in name resolution
You: ssh: Could not resolve hostname you: Temporary failure in name resolution
have: ssh: Could not resolve hostname have: Temporary failure in name resolution
now.: ssh: Could not resolve hostname now.: Temporary failure in name resolution
have: ssh: Could not resolve hostname have: Temporary failure in name resolution
loaded: ssh: Could not resolve hostname loaded: Temporary failure in name resolution
stack: ssh: Could not resolve hostname stack: Temporary failure in name resolution

好了去查查,解决方法如下 在 /etc/profile 中添加如下信息:

export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"

执行 source /etc/profile 使之立即生效。

转载于:https://my.oschina.net/sucre/blog/693216

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值