博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ssh: Could not resolve hostname guard.: Temporary
阅读量:6989 次
发布时间:2019-06-27

本文共 1595 字,大约阅读时间需要 5 分钟。

  hot3.png

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

root@master:/usr/local/hadoop-2.7.2/sbin# ./start-all.shThis script is Deprecated. Instead use start-dfs.sh and start-yarn.sh16/06/16 17:54:32 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicableStarting 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 
', 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 resolutionJava: ssh: Could not resolve hostname java: Temporary failure in name resolutionYou: ssh: Could not resolve hostname you: Temporary failure in name resolutionhave: ssh: Could not resolve hostname have: Temporary failure in name resolutionnow.: ssh: Could not resolve hostname now.: Temporary failure in name resolutionhave: ssh: Could not resolve hostname have: Temporary failure in name resolutionloaded: ssh: Could not resolve hostname loaded: Temporary failure in name resolutionstack: ssh: Could not resolve hostname stack: Temporary failure in name resolution

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

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

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

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

你可能感兴趣的文章
条件随机场
查看>>
别人要访问我的电脑上部署的tomcat,必须关闭防火墙吗?
查看>>
作业六
查看>>
c++ 二叉树打印节点路径
查看>>
ios--编码规范
查看>>
JsCV Core v0.2发布 & Javascript图像处理系列目录
查看>>
MVC中实现部分内容异步加载
查看>>
PTA编程总结2:
查看>>
剑指OFFER——顺时针打印矩阵
查看>>
Live Archive 3490 - Generator 概率
查看>>
Oracle SQL Developer
查看>>
Java 线程池框架核心代码分析
查看>>
「学习笔记——Linux」Linux软件管理(RPM,Dpkg,APT)
查看>>
Linux命令的那些事(二)
查看>>
强制转https
查看>>
Ubuntu下GTK的安装、编译和测试
查看>>
javascript中window.open()与window.location.href的区别
查看>>
Respond.js的作用
查看>>
FCN笔记(Fully Convolutional Networks for Semantic Segmentation)
查看>>
外部线程停止Java子线程的方法
查看>>