Closed ylvmw closed 8 years ago
Can you please take a look at the ambari server log? /hadoopfs/fs1/logs/ambari-server/ambari-server.log
It reports:
26 Jan 2016 05:49:37,140 ERROR [main] AmbariServer:722 - Failed to run the Ambari Server
com.google.inject.ProvisionException: Guice provision errors:
1) Error injecting constructor, java.net.UnknownHostException: *.*.*.com: *.*.*.*.com
at org.apache.ambari.server.controller.AmbariManagementControllerImpl.<init>(AmbariManagementControllerImpl.java:292)
at org.apache.ambari.server.controller.AmbariManagementControllerImpl.class(AmbariManagementControllerImpl.java:183)
while locating org.apache.ambari.server.controller.AmbariManagementControllerImpl
while locating org.apache.ambari.server.controller.AmbariManagementController
at org.apache.ambari.server.agent.HeartBeatHandler.<init>(HeartBeatHandler.java:183)
at org.apache.ambari.server.agent.HeartBeatHandler.class(HeartBeatHandler.java:120)
while locating org.apache.ambari.server.agent.HeartBeatHandler
It seems that those addresses are not resolvable. Is it a custom HDP repo?
I used the default HDP repo. Tested with a standalone Java app on the same host, but no such exception threw and it returned the correct values. Code:
InetAddress inetAddr = InetAddress.getLocalHost();
System.out.println("hostname=" + inetAddr.getHostName() + ", ip=" + inetAddr.getHostAddress() + ", cname=" + inetAddr.getCanonicalHostName());
curl http://<IPADDRESS>:8080/info
Hi,
When we created the cluster with cloudbreak, the ambari can't work correclty. Could you give some hints on how to fix it? Do we need to configure something for docker engine or OS?
docker inspect:
docker logs: