Support Questions
Find answers, ask questions, and share your expertise

unable to start ambari server

Highlighted

unable to start ambari server

New Contributor

03 Oct 2018 21:23:16,265 ERROR [main] DBAccessorImpl:109 - Error while creating database accessor java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2 REPLIES 2
Highlighted

Re: unable to start ambari server

Super Mentor
@jose teran

Are you sure that you have setup the MySQl jdbc driver properly so that ambari can use it ? Please refer to the following doc to understand if you have following the instructions mentioned here on the ambari server host?
https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-administration/content/using_amba...

# yum install mysql-connector-java*  -y
# ls -l /usr/share/java/mysql-connector-java.jar 
# sudo ambari-server setup --jdbc-db=mysql  --jdbc-driver=/usr/share/java/mysql-connector-java.jar 
# ambari-server restart


If you still face any issue then please share the "/etc/ambari-server/conf/ambari.properties" file so that we can see if the JDBC configurations are fine?

And also please share the complete error if you still see the error. "/var/log/ambari-server/ambari-server.log"

Re: unable to start ambari server

New Contributor

@Jay Kumar SenSharma, First at all, thanks for the help.

I have done the steps you mentioned, and still presenting the same issues. I'll attached the ambari-server.log file and ambari.properties file.

Thank you