TypeError: argument of type 'NoneType' is not iterable
它说的是python无法遍历,说明遍历hosts无法识别你的主机
原因如下
1.agent.init配置文件中的host指定错误 解决方式指定serverip或者主机名(server)
2./etc/hostname 与 /etc/hosts中的别名不一致
ip地址 域名 别名
192.168.210.101 hadoop1.com cdh1
解决方式:修改hostname与cdh1相同
3./etc/hosts中或者hostname中主机名称存在"_"字符 解决方式:不要使用特殊字符
我这几天遇到的所有心跳问题,有其他问题的同学,在评论方指出,我们更新新问题上去。大家一起帮助更多的人。
-----------------
我整了1天到半夜才弄好,装了4次cm