Created 06-17-2020 10:29 PM
I did a reboot/restart of my ec2 cluster and then when i try to start ambari server it always fails.
This is the screenshot,
This is the log info,
18 Jun 2020 05:13:37,523 ERROR [main] DBAccessorImpl:119 - Error while creating database accessor
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
I also tried to restart my server( I know that its not already running)
Can anyone help me in resolving this issue?
Thank you in Advance.
Created 06-17-2020 10:59 PM
@Udhav check is database properties are correctly set in ambari.properties file
# cat /etc/ambari-server/conf/ambari.properties |grep -i jdbc
Created 06-18-2020 03:02 AM
Hello, I dont know how to check because i am new to these, Can you help me check it out?
this is the output i got
udhav@ip-10-70-14-10:~$ cat /etc/ambari-server/conf/ambari.properties |grep -i jdbc
Created 06-18-2020 04:44 AM
Hi @Udhav ,
Please check below solved post if it can help you with this issue.
Madhuri Adipudi, Technical Solutions Manager
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:
Created 06-18-2020 08:23 AM
@Udhav From the output I see database is running on ambari server host , Can you check is mysql is up and running
Created 06-19-2020 06:43 AM
@Udhav It appears your mysql is not running after a restart. Try this:
service mariabdb start
chkconfig mariadb on
Also, I would refrain from using "localhost" or "127.0.0.1". This opens doors for networking and permissions issues. Please always use an FQDN, for example: c3701.ambari.apache.org that is mapped to public IP addresses on any given node via /etc/hosts. That FQDN should also be the hostname for each node as well.
If this answer resolves your issue or allows you to move forward, please choose to ACCEPT this solution and close this topic. If you have further dialogue on this topic please comment here or feel free to private message me. If you have new questions related to your Use Case please create separate topic and feel free to tag me in your post.
Steven @ DFHZ