Cloudera-scm-agent启动报错ERROR Could not determine hostname or ip address; proceeding.
出现这种情况的主要原因是服务器hostname设置问题,应该是在系统安装以后修改过hostname,然后修改的有问题,又或者是你的配置文件里写的hostname和本机hostname不符(我没有遇到过),修改hostname需要修改/etc/hosts和/etc/sysconfig/network只修改其中一个是会出现迷之bug(实际是我也不知道会出什么问题)检查:/etc/hosts 中的hos
·
出现这种情况的主要原因是服务器hostname设置问题,应该是在系统安装以后修改过hostname,然后修改的有问题,又或者是你的配置文件里写的hostname和本机hostname不符(我没有遇到过),修改hostname需要修改/etc/hosts和/etc/sysconfig/network只修改其中一个是会出现迷之bug(实际是我也不知道会出什么问题)
检查:/etc/hosts 中的host 与/etc/sysconfig/network中的host是否一致,以下是我的配置
[root@linux2 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.0.11 linux1
192.168.0.12 linux2
192.168.0.13 linux3
192.168.0.14 linux4 cmserver
192.168.0.15 linux5
192.168.0.16 linux6
192.168.0.17 linux7
192.168.0.18 linux8
192.168.0.9 linux9
192.168.0.10 linux10
[root@linux2 ~]# cat /etc/sysconfig/network
# Created by anaconda
linux2
更多推荐
所有评论(0)