我在AWS EC2 [c5.4xlarge - CentOS 7(x86_64) - with Updates]实例上使用docker安装了HDP2.6.1沙箱。
我也可以更改管理员密码,并能够以管理员用户身份登录Ambari UI。但是当我登录Ambari UI [http:// myEC2 hostIP:8080]时,我可以看到所有/大多数服务都是黄色的[显示心跳丢失状态]。
我已经尝试运行“Start ALL”但仍然没有启动任何服务,也标记为黄色的服务甚至没有显示我启动该服务的选项。
我没有对docker容器设置或我的centos VM进行任何更改。我不确定缺少什么?
请帮我解决这个问题。
问候
最后经过大量调试后,我意识到我在EC2实例的/ etc / hosts文件中缺少一个条目,一旦我在/ etc / hosts文件中输入后它就开始工作了。
我在/ etc / hosts文件中添加了MY.EC2.IP.ADDRESS sandbox.hortonworks.com ip-MY.EC2.IP.ADDRESS.us-east-2.compute.internal行,其中MY.EC2.IP.ADDRESS是我的EC2实例的IP私有IP地址。
然后我使用以下命令登录我的沙盒容器:
[[email protected] ~]$ ssh [email protected] -p 2222
enter password: your password
Restart ambari-agent and ambari-server
[root@sandbox ~]service ambari-agent status
[root@sandbox ~]service ambari-agent restart
[root@sandbox ~]service ambari-server status
[root@sandbox ~]service ambari-server restart
最后,我回到Ambari UI并单独启动所有必需的服务。我的沙箱启动并运行。
:-)