randerzander / docker-hdp

Dockerized HDP Cluster
84 stars 53 forks source link

Manually install a one-node cluster: NetUtil ambari-server:8440 SSL heartbeat error #15

Open BaranOrnarli opened 7 years ago

BaranOrnarli commented 7 years ago

If you manually install your stack and create your own blueprint. Sometimes the heartbeat comes by and the ambari-server gives off an error about SSL and NetUtil.java and unable to connec to ambari-server:8440.

dn0.dev_1 | WARNING 2017-07-24 16:46:42,591 NetUtil.py:101 - Failed to connect to https://ambari-server.dev:8440/ca due to [Errno 111] Connection refused dn0.dev_1 | WARNING 2017-07-24 16:46:42,591 NetUtil.py:124 - Server at https://ambari-server.dev:8440 is not reachable, sleeping for 10 seconds...

dn0.dev_1 | INFO 2017-07-24 16:46:52,591 NetUtil.py:70 - Connecting to https://ambari-server.dev:8440/ca dn0.dev_1 | WARNING 2017-07-24 16:46:52,593 NetUtil.py:101 - Failed to connect to https://ambari-server.dev:8440/ca due to [Errno 111] Connection refused dn0.dev_1 | WARNING 2017-07-24 16:46:52,593 NetUtil.py:124 - Server at https://ambari-server.dev:8440 is not reachable, sleeping for 10 seconds...

Solution I came up with (temporary, need a permanent solution):

docker exec -i -t <containerID> /bin/bash export JAVA_HOME=/usr/jdk64/jdk_1.8_version_number

That "version_number" should be whatever you find under /usr/jdk64. So please make sure to enter it exactly like jdk_1.8_0112 or whatever.

If you don't have that in that path, Then do:

yum search jdk

find the openjdk1.8 and do yum install openjdk1.8.......

BaranOrnarli commented 7 years ago

Problem still occurs with this domain:

https://ambari-server.dev:8441/agent/v1/heartbeat/dn0.dev

https://superuser.com/questions/919278/err-icann-name-collision-when-trying-to-use-localhost-dev-in-chrome