执行ambari-server start时候出错
Exception in thread "main" com.google.inject.CreationException: Guice creation errors:
23 1) Error injecting constructor, java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
4
5 The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
6 at org.apache.ambari.server.orm.DBAccessorImpl.<init>(DBAccessorImpl.java:80)
7 while locating org.apache.ambari.server.orm.DBAccessorImpl
8 while locating org.apache.ambari.server.orm.DBAccessor
9 for field at org.apache.ambari.server.orm.dao.DaoUtils.dbAccessor(DaoUtils.java:36)
10 at org.apache.ambari.server.orm.dao.DaoUtils.class(DaoUtils.java:36)
11 while locating org.apache.ambari.server.orm.dao.DaoUtils
12 for field at org.apache.ambari.server.orm.dao.HostComponentStateDAO.daoUtils(HostComponentStateDAO.java:39)
13 at org.apache.ambari.server.orm.dao.HostComponentStateDAO.class(HostComponentStateDAO.java:39)
14 while locating org.apache.ambari.server.orm.dao.HostComponentStateDAO
15 for field at org.apache.ambari.server.orm.models.HostComponentSummary.hostComponentStateDao(HostComponentSummary.java:53)
16 Caused by: java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
17
18 The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any pa