文档章节

hadoop启动时,报ssh: Could not resolve hostname xxx: Name or service not known

A__17
 A__17
发布于 2017/08/06 23:31
字数 743
阅读 69
收藏 0
点赞 0
评论 0

1)问题:

hadoop启动时,报ssh: Could not resolve hostname xxx: Name or service not known

2)错误信息:

[root[@master](https://my.oschina.net/u/48054) hadoop-2.2.0]# sbin/start-dfs.sh 
17/08/06 13:08:59 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 /data/cloud/hadoop/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'.
master]
sed: -e expression #1, char 6: unknown option to `s'
library: ssh: Could not resolve hostname library: Name or service not known
loaded: ssh: Could not resolve hostname loaded: Name or service not known
VM: ssh: Could not resolve hostname VM: Name or service not known
have: ssh: Could not resolve hostname have: Name or service not known
Server: ssh: Could not resolve hostname Server: Name or service not known
64-Bit: ssh: Could not resolve hostname 64-Bit: 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
VM: ssh: Could not resolve hostname VM: Name or service not known
to: ssh: Could not resolve hostname to: No address associated with hostname
Java: ssh: Could not resolve hostname Java: No address associated with hostname
which: ssh: Could not resolve hostname which: Name or service not known
will: ssh: Could not resolve hostname will: Name or service not known
might: ssh: Could not resolve hostname might: Name or service not known
stack: ssh: Could not resolve hostname stack: Name or service not known
The: ssh: Could not resolve hostname The: Name or service not known
stack: ssh: Could not resolve hostname stack: Name or service not known
guard.: ssh: Could not resolve hostname guard.: 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
try: ssh: Could not resolve hostname try: Name or service not known
fix: ssh: Could not resolve hostname fix: Name or service not known
-c: Unknown cipher type 'cd'
fix: ssh: Could not resolve hostname fix: Name or service not known
the: ssh: Could not resolve hostname the: Name or service not known
the: ssh: Could not resolve hostname the: Name or service not known
with: ssh: Could not resolve hostname with: Name or service not known
it: ssh: Could not resolve hostname it: No address associated with hostname
with: ssh: Could not resolve hostname with: Name or service not known
or: ssh: Could not resolve hostname or: Name or service not known
The authenticity of host 'master (192.168.1.110)' can't be established.
RSA key fingerprint is db:8e:ce:15:18:ad:9d:16:0e:88:98:0d:da:06:e4:18.
Are you sure you want to continue connecting (yes/no)? that: ssh: Could not resolve hostname that: Name or service not known
highly: ssh: Could not resolve hostname highly: Name or service not known
library: ssh: Could not resolve hostname library: Name or service not known
now.: ssh: Could not resolve hostname now.: No address associated with hostname
You: ssh: Could not resolve hostname You: No address associated with hostname
you: ssh: Could not resolve hostname you: No address associated with hostname
link: ssh: Could not resolve hostname link: No address associated with hostname
HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Temporary failure in name resolution
warning:: ssh: Could not resolve hostname warning:: Temporary failure in name resolution
It's: ssh: Could not resolve hostname It's: Temporary failure in name resolution
<libfile>',: ssh: Could not resolve hostname <libfile>',: Temporary failure in name resolution
'execstack: ssh: Could not resolve hostname 'execstack: Temporary failure in name resolution
'-z: ssh: Could not resolve hostname '-z: Temporary failure in name resolution
noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Temporary failure in name resolution

3)解决方法:

在/etc/profile文件中添加:
	export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
	export HADOOP_OPTS=-Djava.library.path=$HADOOP_HOME/lib
	
注意:是export HADOOP_OPTS=-Djava.library.path=$HADOOP_HOME/lib,而不是export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"

© 著作权归作者所有

共有 人打赏支持
A__17
粉丝 2
博文 91
码字总数 101178
作品 0
朝阳
ssh: Name or service not known

ssh: Could not resolve hostname DataNode1: Name or service not known 搭建hadoop集群过程中 ssh连接其他节点时 ssh hadoop@DataNode1 报错 ssh: Could not resolve hostname DataNode1:......

幽芒 ⋅ 2014/05/27 ⋅ 0

安装hadoop,执行start-all.sh命令遇到的问题

[root@localhost bin]# ./start-all.sh starting namenode, logging to /usr/local/hadoop/hadoop-0.20.2/bin/../logs/hadoop-x-namenode-localhost.localdomain.out The authenticity of ho......

xiangfangwei ⋅ 2013/08/02 ⋅ 1

centos 64位 hadoop编译

如果安装的centos是64位机,hadoop官网给出的源码是32位的,直接运行的话,会出现下面的信息: Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /usr/local/hadoop-2.2...

kt431128 ⋅ 2014/06/04 ⋅ 0

ssh: Could not resolve hostname guard.: Temporary

今天在通过./start-all.sh启动Hadoop集群的时候报了如下的错误 好了去查查,解决方法如下在 /etc/profile 中添加如下信息: 执行 source /etc/profile 使之立即生效。...

sucre ⋅ 2016/06/17 ⋅ 0

centos6.4 32/64位机 hadoop2.2.0集群安装

1、准备环境 安装VMware10 ,三台centos6.4 版本,安装在VMware虚拟机下。 1)安装中文输入法: 1、需要root权限,所以要用root登录 ,或su root 2、yum install "@Chinese Support" 2)安装...

kt431128 ⋅ 2014/06/03 ⋅ 17

最新Hadoop-2.7.2+hbase-1.2.0+zookeeper-3.4.8 HA高可用集群

Ip 主机名 程序 进程 192.168.128.11 h1 Jdk Hadoop hbase Namenode DFSZKFailoverController Hamster 192.168.128.12 h2 Jdk Hadoop hbase Namenode DFSZKFailoverController Hamster 192.......

weir2008 ⋅ 2016/02/26 ⋅ 0

centos6.4用cloudera manager安装hadoop2.0.0-cdh4.3.0集

centos6.4用cloudera manager安装hadoop2.0.0-cdh4.3.0集群(一) cloudera发行的hadoop安装有4种方式,其中使用clouderamanager安装是最简单的。缺点是你不清楚hadoop安装时的配置以及具体流...

Zero零_度 ⋅ 2015/09/07 ⋅ 0

hbase java.lang.IllegalArgumentException: Could...

某天早晨修改了hbase集群中一个节点的主机名称,结果HMaster无法启动。 主机修改了新的hostname,同时修改了master,regionserver节点,并修改了/etc/hosts,但是启动时发现仍然会解析老的hos...

mahout ⋅ 2012/09/16 ⋅ 1

1.hadoop的伪分布安装(CentOS)

1.hadoop的伪分布安装 1.1 设置ip地址 执行命令 service network restart 验证: ifconfig 1.2 关闭防火墙 执行命令 service iptables stop 验证: service iptables status 1.3 关闭防火墙的自...

段英杰 ⋅ 2014/03/04 ⋅ 0

HDFS 实验 (三) hadoop节点配置

vi /etc/hosts 添加节点dns信息 192.168.209.157 node1 192.168.209.158 node2 192.168.209.159 node3 vi /etc/profile 添加运行目录 export HADOOP_HOME=/home/hadoop/hadoop-3.1.0 exportP......

pcdog ⋅ 04/13 ⋅ 0

没有更多内容

加载失败,请刷新页面

加载更多

下一页

645. Set Mismatch - LeetCode

Question 645. Set Mismatch Solution 思路: 遍历每个数字,然后将其应该出现的位置上的数字变为其相反数,这样如果我们再变为其相反数之前已经成负数了,说明该数字是重复数,将其将入结果r...

yysue ⋅ 18分钟前 ⋅ 0

Confluence 6 从生产环境中恢复一个测试实例

请参考 Restoring a Test Instance from Production 页面中的内容获得更多完整的说明。 很多 Confluence 的管理员将会使用生产实例运行完整数据和服务的 Confluence 服务器,同时还会设置一个...

honeymose ⋅ 22分钟前 ⋅ 0

Python这么强?红包杀手、消息撤回也可以无视,手机App辅助!

论述 标题也许有点不好理解,其实就是一款利用Python实现的可以监控微信APP内的红包与消息撤回的助手。不得不说,这确实是一款大家钟意的神器。 消息撤回是一件很让人恶心的事,毕竟人都是有...

Python燕大侠 ⋅ 34分钟前 ⋅ 0

压缩打包介绍、gzip压缩工具、bzip2压缩工具、xz压缩工具

压缩打包介绍 压缩的好处不仅能节省磁盘空间而且在传输的时候节省传输时间和网络带宽 windows系统下文件带有 .rar .zip .7z 后缀的就是压缩文件 linux系统下则是 .zip, .gz, .bz2, .xz, ...

黄昏残影 ⋅ 38分钟前 ⋅ 0

观察者模式

1.利用java原生类进行操作 package observer;import java.util.Observable;import java.util.Observer;/** * @author shadow * @Date 2016年8月12日下午7:29:31 * @Fun 观察目标 **/......

Cobbage ⋅ 41分钟前 ⋅ 0

Ubuntu打印服务器配置

参考:https://blog.csdn.net/gsls200808/article/details/50950586 https://blog.csdn.net/jiay2/article/details/80252369 https://wiki.gentoo.org/wiki/HPLIP 由于媳妇儿要大量打印资料,......

大熊猫 ⋅ 47分钟前 ⋅ 0

面试的角度诠释Java工程师(二)

原文出处: locality 续言: 相信每一位简书的作者,都会有我这样的思考:怎么写好一篇文章?或者怎么写好一篇技术类的文章?我就先说说我的感悟吧,写文章其实和写程序是一样的。为什么我会...

颖伙虫 ⋅ 49分钟前 ⋅ 0

github中SSH的Key

https://help.github.com/articles/connecting-to-github-with-ssh/ https://help.github.com/articles/testing-your-ssh-connection/ https://help.github.com/articles/adding-a-new-ssh-k......

whoisliang ⋅ 50分钟前 ⋅ 0

only_full_group_by

我的mysql是在CentOS7.1下面的5.7.17 在 /etc/my.cnf 文件里加上如下: sql_mode='NO_ENGINE_SUBSTITUTION' 然后,重启Mysql服务 systemctl restart mysqld...

SunHacker ⋅ 今天 ⋅ 0

实际项目(SpringBoot项目)中集成Druid

参考网页 https://blog.csdn.net/liuchuanhong1/article/details/55050131 https://blog.csdn.net/CoffeeAndIce/article/details/78707819 https://www.pocketdigi.com/20170530/1577.html 为......

karma123 ⋅ 今天 ⋅ 0

没有更多内容

加载失败,请刷新页面

加载更多

下一页

返回顶部
顶部