ssh: Could not resolve hostname guard.: Name or service not known
2017-12-19 14:14
861 查看
错误状况
配置了ssh免密码登陆,使用sbin/start-all.sh启动hadoop,出现了如下错误:guard.: ssh: Could not resolve hostname guard.: Name or service not known now.: ssh: Could not resolve hostname now.: No address associated with hostname -c: Unknown cipher type 'cd' noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not known hadoop01: starting namenode, logging to /opt/module/hadoop-2.5.0/logs/hadoop-root-namenode-hadoop01.out hadoop01: Java HotSpot(TM) Client VM warning: You have loaded library /opt/module/hadoop-2.5.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now. hadoop01: It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. loaded: ssh: Could not resolve hostname loaded: Temporary failure in name resolution warning:: ssh: Could not resolve hostname warning:: Temporary failure in name resolution
解决方法:添加hadoop如下部分到环境变量中
编辑:vi /etc/profileHADOOP_HOME=/opt/module/hadoop-2.5.0 export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOOME/sbin:$HADOOP_HOME/lib export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"
使其生效:source /etc/profile
相关文章推荐
- guard.: ssh: Could not resolve hostname guard.: Name or service not known to: ss
- hadoop启动时,报ssh: Could not resolve hostname xxx: Name or service not known
- ssh: Could not resolve hostname devsrv: Name or service not known
- git无法解析主机名 ssh: Could not resolve hostname gitee.com: Name or service not known
- 错误提示:ssh: Could not resolve hostname devsrv: Name or service not known
- git错误--ssh: Could not resolve hostname ssh.github.com: Name or service not known--解决方式
- (新手)解决Hadoop安装完毕后的启动报错 ssh: Could not resolve hostname Java: Name or service not known
- hadoop启动时,报ssh: Could not resolve hostname xxx: Name or service not known
- ssh: Could not resolve hostname code.csdn.net: Name or service not known
- hadoop启动时,报ssh: Could not resolve hostname xxx: Name or service not known
- ssh: Could not resolve hostname github.com: Name or service not known; fatal: The remote end hung up
- ssh: Could not resolve hostname hadoop0: Name or service not known
- git错误--ssh: Could not resolve hostname ssh.github.com: Name or service not known--解决方式
- Could not resolve hostname hadoop.master: Name or service not known
- ssh: Could not resolve hostname gitcafe.com: nodename nor servname provided, or not known
- [git]ssh: Could not resolve hostname github.com: nodename nor servname provided, or not known
- Could not resolve hostname 。。。。。。: Name or service not known
- Couldn't resolve host或者Name or service not known
- 配置hadoop2.2.0的时候出现错误:could not resolve hostname HotSpot(TM): Name or service not know
- Resolving www.linuxde.net... failed: Name or service not known. wget: unable to resolve host address