ssh: Could not resolve hostname guard.: Temporary

今天在經過./start-all.sh啓動Hadoop集羣的時候報了以下的錯誤java

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 中添加以下信息:node

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

執行 source /etc/profile 使之當即生效。express

相關文章
相關標籤/搜索