Dr. Elephant not starting
Hi,
I am getting this error when i try to start dr. elephant:
Play server process ID is 5394 SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/hadoop01/dr-elephant-2/dr-elephant-2.0.13/lib/ch.qos.logback.logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/hadoop01/dr-elephant-2/dr-elephant-2.0.13/lib/org.slf4j.slf4j-simple-1.6.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/hadoop01/dr-elephant-2/dr-elephant-2.0.13/lib/org.slf4j.slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/hadoop-b/cloudera/parcels/CDH-5.8.3-1.cdh5.8.3.p2791.3025/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] [error] c.j.b.h.AbstractConnectionHook - Failed to obtain initial connection Sleeping for 0ms and trying again. Attempts left: 0. Exception: java.net.ConnectException: Connection refused (Connection refused).Message:Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
Oops, cannot start the server.
Configuration error: Configuration error[Cannot connect to database [default]]
at play.api.Configuration$.play$api$Configuration$$configError(Configuration.scala:92)
at play.api.Configuration.reportError(Configuration.scala:570)
at play.api.db.BoneCPPlugin$$anonfun$onStart$1.apply(DB.scala:252)
at play.api.db.BoneCPPlugin$$anonfun$onStart$1.apply(DB.scala:243)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.AbstractTraversable.map(Traversable.scala:105)
at play.api.db.BoneCPPlugin.onStart(DB.scala:243)
at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:88)
at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:88)
at scala.collection.immutable.List.foreach(List.scala:318)
at play.api.Play$$anonfun$start$1.apply$mcV$sp(Play.scala:88)
at play.api.Play$$anonfun$start$1.apply(Play.scala:88)
at play.api.Play$$anonfun$start$1.apply(Play.scala:88)
at play.utils.Threads$.withContextClassLoader(Threads.scala:18)
at play.api.Play$.start(Play.scala:87)
at play.core.StaticApplication.
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:400)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1038)
at com.mysql.jdbc.MysqlIO.
Can someone please help?
Hey,
Your error implies that the connection to the MySQL database fails. Did you follow the quick setup instructions?
You should:
- Create the Dr. Elephant configuration file:
elephant.conf(you can find a template under /app-conf) The file should contain the database connection details. - Start Dr. Elephant using the start.sh script with the directory containing the configuration file as an argument. For example:
bin/start.sh /path/to/conf-dir/(Alternatively, instead of specifying the configuration directory path as an argument - you can use the ELEPHANT_CONF_DIR environment variable)
Hopefully this helps you, Orel
Hi Orel,
I have followed the steps exactly.
Can you please provide some information on the Kerberos part. How are the Kerberos credentials exactly used?
I have entered user as root and the corresponding password.The owner of the database is root as well. I am not sure about the role of Kerberos user and password.
Regards, Avni
Hey Avni,
Dr. Elephant tries to connect to the mysql database at the default port (3306).
Is your mysql instance configured this way?
Orel
Hi Orel,
Thanks for your prompt reply.
For us mysql is configured on 8112 port. Can you please guide as to how we can specify this in dr elephant?
Regards, Avni
Hey,
You can specify your db_url config in elephant.conf as such: db_url=localhost:8112.
Hi Orel,
Even after specifying this, I am facing the same issue.
To help me better debug the issue, can you please specify how the keytab user and keytab password are used by Dr elephant.
Regards, Avni
I have same issue, unable to connect to database. I hoping someone could help
@kiranch2004 can you open a separate ticket with the proper stack trace of the exception you are facing. I am closing this ticket hoping the issue was resolved and it would be harder to track this old ticket for your issue.