分享

ssh: Could not resolve hostname #master1: Name or service not known

sunxuekunmm@163 发表于 2017-4-10 17:35:13 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 3 14128
启动hbase报错,哪位大拿帮我看看,谢谢
[hadoop@master1 hadoop-2.2.0]$ start-hbase.sh
starting master, logging to /hadoop/hbase-0.96.2-hadoop2/logs/hbase-hadoop-master-master1.out
#master1: ssh: Could not resolve hostname #master1: Name or service not known
slave2: starting regionserver, logging to /hadoop/hbase-0.96.2-hadoop2/logs/hbase-hadoop-regionserver-slave2.out
slave3: starting regionserver, logging to /hadoop/hbase-0.96.2-hadoop2/logs/hbase-hadoop-regionserver-slave3.out
下面是hosts和主机名配置:
[hadoop@master1 hadoop-2.2.0]$ cat /etc/hosts
127.0.0.1   localhost master1 localhost4 localhost4.localdomain4
::1         localhost master1 localhost6 localhost6.localdomain6
172.16.70.101 namenode
172.16.70.101 master1
172.16.70.102 slave2
172.16.70.103 slave3
[hadoop@master1 hadoop-2.2.0]$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=master1

已有(3)人评论

跳转到指定楼层
howtodown 发表于 2017-4-11 08:32:35
127.0.0.1   localhost master1 localhost4 localhost4.localdomain4
红字部分去掉


回复

使用道具 举报

grinsky 发表于 2017-4-11 14:45:15
"#master1"?,regionservers里是不是写了这个?
回复

使用道具 举报

sunxuekunmm@163 发表于 2017-5-22 01:50:38
谢谢各位,问题已解决。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条