ambari-agent Controller.py:170 - Registering with localhost

19 篇文章 0 订阅
1 篇文章 0 订阅

最近在使用ambari安装大数据进群,在进行添加新主机时ambari-agent的日志中出现 Registering with localhost 导致在ambari-server的界面中出现Registering with server failed,后来经过在网上找了好多答案文能解决,特此将解决方法记录下。

前提:新添加的主机已经和ambari-server已经做过了免密码登陆,并且通过ssh命令可以互相登陆成功,新增添加的主机名(test_client)测试集群客户端.

INFO 2019-02-26 16:04:27,004 Controller.py:170 - Registering with localhost (127.0.0.1) (agent='{"hardwareProfile": {"kernel": "Linux", "domain": "", "physicalprocessorcoun
t": 4, "kernelrelease": "3.10.0-862.el7.x86_64", "uptime_days": "0", "memorytotal": 1882672, "swapfree": "2.00 GB", "memorysize": 1882672, "osfamily": "redhat", "swapsize":
 "2.00 GB", "processorcount": 4, "netmask": "255.0.0.0", "timezone": "CST", "hardwareisa": "x86_64", "memoryfree": 1550524, "operatingsystem": "centos", "kernelmajversion":
 "3.10", "kernelversion": "3.10.0", "macaddress": "00:0C:29:AC:0F:E4", "operatingsystemrelease": "7.5.1804", "ipaddress": "127.0.0.1", "hostname": "localhost", "uptime_hour
s": "0", "fqdn": "localhost", "id": "root", "architecture": "x86_64", "selinux": false, "mounts": [{"available": "50556380", "used": "1846820", "percent": "4%", "device": "
/dev/mapper/centos-root", "mountpoint": "/", "type": "xfs", "size": "52403200"}, {"available": "929144", "used": "0", "percent": "0%", "device": "devtmpfs", "mountpoint": "
/dev", "type": "devtmpfs", "size": "929144"}, {"available": "893360", "used": "144976", "percent": "14%", "device": "/dev/sda1", "mountpoint": "/boot", "type": "xfs", "size
": "1038336"}, {"available": "49217876", "used": "32944", "percent": "1%", "device": "/dev/mapper/centos-home", "mountpoint": "/home", "type": "xfs", "size": "49250820"}], 
"hardwaremodel": "x86_64", "uptime_seconds": "2477", "interfaces": "ens192,lo"}, "currentPingPort": 8670, "prefix": "/var/lib/ambari-agent/data", "agentVersion": "2.5.0.3",
 "agentEnv": {"transparentHugePage": "", "hostHealth": {"agentTimeStampAtReporting": 1551168267002, "activeJavaProcs": [], "liveServices": [{"status": "Unhealthy", "name": 
"ntpd or chronyd", "desc": "Redirecting to /bin/systemctl status ntpd.service\\nUnit ntpd.service could not be found.\\nRedirecting to /bin/systemctl status chronyd.service
\\nUnit chronyd.service could not be found."}]}, "reverseLookup": false, "alternatives": [], "umask": "18", "firewallName": "iptables", "stackFoldersAndFiles": [], "existin
gUsers": [], "firewallRunning": false}, "timestamp": 1551168266917, "hostname": "localhost", "responseId": -1, "publicHostname": "localhost"}')
INFO 2019-02-26 16:04:27,005 NetUtil.py:67 - Connecting to https://hdp-node1:8440/connection_info

后来经过多次思考和发现,在新增主机中的hosts文件中没有配置新增主机的ip和主机名映射,在hosts文件中配置比如下:

至此问题得以解决.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值