阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

启动Hadoop时遇到Name or service not knownstname 错误

188次阅读
没有评论

共计 2290 个字符,预计需要花费 6 分钟才能阅读完成。

今天在启动 Hadoop 时遇到 Name or service not knownstname 这样的错误

1 : Name or service not knownstname master 
2 : Name or service not knownstname slaver1 
3 : Name or service not knownstname slaver2

原因:slaves 文件可能被污染了。

解决方法:删除掉 slaves 文件,重新建立一个 slaves 文件,并配置好就可以了。

[root@master sbin]# ./start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
Starting namenodes on [master]
The authenticity of host ‘master (10.0.0.110)’ can’t be established.
RSA key fingerprint is 90:b6:9e:d0:3e:76:27:ce:34:3b:d6:b4:41:5d:e7:31.
Are you sure you want to continue connecting (yes/no)? yes
master: Warning: Permanently added ‘master,10.0.0.110’ (RSA) to the list of known hosts.
master: starting namenode, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/hadoop-root-namenode-master.out
slaver1: starting datanode, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/hadoop-root-datanode-slaver1.out
slaver2: starting datanode, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/hadoop-root-datanode-slaver2.out
master: starting datanode, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/hadoop-root-datanode-master.out
starting yarn daemons
starting resourcemanager, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/yarn-root-resourcemanager-master.out
slaver2: starting nodemanager, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/yarn-root-nodemanager-slaver2.out
slaver1: starting nodemanager, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/yarn-root-nodemanager-slaver1.out
master: starting nodemanager, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/yarn-root-nodemanager-master.out
[root@master sbin]# jps
1926 ResourceManager
1597 NameNode
2020 NodeManager
2054 Jps
1688 DataNode

下面关于 Hadoop 的文章您也可能喜欢,不妨看看:

Ubuntu14.04 下 Hadoop2.4.1 单机 / 伪分布式安装配置教程  http://www.linuxidc.com/Linux/2015-02/113487.htm

CentOS 安装和配置 Hadoop2.2.0  http://www.linuxidc.com/Linux/2014-01/94685.htm

Ubuntu 14.04 LTS 下安装 Hadoop 1.2.1(伪分布模式)http://www.linuxidc.com/Linux/2016-09/135406.htm

Ubuntu 上搭建 Hadoop 环境(单机模式 + 伪分布模式)http://www.linuxidc.com/Linux/2013-01/77681.htm

Ubuntu 下 Hadoop 环境的配置 http://www.linuxidc.com/Linux/2012-11/74539.htm

单机版搭建 Hadoop 环境图文教程详解 http://www.linuxidc.com/Linux/2012-02/53927.htm

Hadoop 2.6.0 HA 高可用集群配置详解  http://www.linuxidc.com/Linux/2016-08/134180.htm

Spark 1.5、Hadoop 2.7 集群环境搭建  http://www.linuxidc.com/Linux/2016-09/135067.htm

更多 Hadoop 相关信息见Hadoop 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=13

本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-10/136514.htm

正文完
星哥说事-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-21发表,共计2290字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中