<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question unable to start ambari-server in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158488#M41075</link>
    <description>&lt;P&gt;I have followed &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_Installing_HDP_AMB/content/_download_the_ambari_repo_ubuntu14.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_Installing_HDP_AMB/content/_download_the_ambari_repo_ubuntu14.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;link to install ambari-server whose version is 2.1.2&lt;/P&gt;&lt;P&gt;and for mysql I followed &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_reference_guide/content/_using_ambari_with_mysql.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_reference_guide/content/_using_ambari_with_mysql.html&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;sudo ambari-server start &lt;/P&gt;&lt;P&gt;Using python  /usr/bin/python2.7
Starting ambari-server
Ambari Server running with administrator privileges.
Organizing resource files at /var/lib/ambari-server/resources...
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /var/log/ambari-server/ambari-server.out
Server log at: /var/log/ambari-server/ambari-server.log
Waiting for server start.........
&lt;STRONG&gt;ERROR: Exiting with exit code -1. 
REASON: Ambari Server java process died with exitcode 1&lt;/STRONG&gt;. Check /var/log/ambari-server/ambari-server.out for more information.&lt;/P&gt;&lt;P&gt;and the &lt;STRONG&gt;error in  &lt;/STRONG&gt;&lt;STRONG&gt;/var/log/ambari-server/ambari-server.log &lt;/STRONG&gt; is &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR [main] DBAccessorImpl:102 - Error while creating database accessor 
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and i have copied these jars in the /usr/share/java folder and also gave classpath for these jars in bashrc &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7762-ambari-server-jars.png" style="width: 1024px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20822iB977B937C2D17014/image-size/medium?v=v2&amp;amp;px=400" role="button" title="7762-ambari-server-jars.png" alt="7762-ambari-server-jars.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 12:11:31 GMT</pubDate>
    <dc:creator>santhosh_kumari</dc:creator>
    <dc:date>2019-08-18T12:11:31Z</dc:date>
    <item>
      <title>unable to start ambari-server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158488#M41075</link>
      <description>&lt;P&gt;I have followed &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_Installing_HDP_AMB/content/_download_the_ambari_repo_ubuntu14.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_Installing_HDP_AMB/content/_download_the_ambari_repo_ubuntu14.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;link to install ambari-server whose version is 2.1.2&lt;/P&gt;&lt;P&gt;and for mysql I followed &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_reference_guide/content/_using_ambari_with_mysql.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_reference_guide/content/_using_ambari_with_mysql.html&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;sudo ambari-server start &lt;/P&gt;&lt;P&gt;Using python  /usr/bin/python2.7
Starting ambari-server
Ambari Server running with administrator privileges.
Organizing resource files at /var/lib/ambari-server/resources...
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /var/log/ambari-server/ambari-server.out
Server log at: /var/log/ambari-server/ambari-server.log
Waiting for server start.........
&lt;STRONG&gt;ERROR: Exiting with exit code -1. 
REASON: Ambari Server java process died with exitcode 1&lt;/STRONG&gt;. Check /var/log/ambari-server/ambari-server.out for more information.&lt;/P&gt;&lt;P&gt;and the &lt;STRONG&gt;error in  &lt;/STRONG&gt;&lt;STRONG&gt;/var/log/ambari-server/ambari-server.log &lt;/STRONG&gt; is &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR [main] DBAccessorImpl:102 - Error while creating database accessor 
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and i have copied these jars in the /usr/share/java folder and also gave classpath for these jars in bashrc &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7762-ambari-server-jars.png" style="width: 1024px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20822iB977B937C2D17014/image-size/medium?v=v2&amp;amp;px=400" role="button" title="7762-ambari-server-jars.png" alt="7762-ambari-server-jars.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:11:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158488#M41075</guid>
      <dc:creator>santhosh_kumari</dc:creator>
      <dc:date>2019-08-18T12:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: unable to start ambari-server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158489#M41076</link>
      <description>&lt;P&gt;Please help me with this issue&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:45:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158489#M41076</guid>
      <dc:creator>santhosh_kumari</dc:creator>
      <dc:date>2016-09-19T18:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: unable to start ambari-server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158490#M41077</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13180/santhoshkumari.html" nodeid="13180"&gt;@Santhoshi G&lt;/A&gt; try exporting the classpath in /var/lib/ambari-server/ambari-env.sh and restart ambari-server&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 19:28:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158490#M41077</guid>
      <dc:creator>pankaj_singh</dc:creator>
      <dc:date>2016-09-19T19:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: unable to start ambari-server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158491#M41078</link>
      <description>&lt;P&gt;Thanks pankaj for the reply, I added &lt;/P&gt;&lt;P&gt;export CLASSPATH=$CLASSPATH:/usr/share/java/mysql-connector-java-5.1.28.jar &lt;/P&gt;&lt;P&gt;export CLASSPATH=$CLASSPATH:/usr/share/java/mysql.jar &lt;/P&gt;&lt;P&gt;export CLASSPATH=$CLASSPATH:/usr/share/java/mysql-connector-java.jar&lt;/P&gt;&lt;P&gt;in /var/lib/ambari-server/ambari-env.sh&lt;/P&gt;&lt;P&gt;but again the same error is appearing&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 19:53:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158491#M41078</guid>
      <dc:creator>santhosh_kumari</dc:creator>
      <dc:date>2016-09-19T19:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: unable to start ambari-server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158492#M41079</link>
      <description>&lt;P&gt;can you connect to mysql from mysql cli or mysqladmin?&lt;/P&gt;&lt;P&gt;make sure its working&lt;/P&gt;&lt;P&gt;make sure you have rwx permissions for mysql directories&lt;/P&gt;&lt;P&gt;check the /var/log/mysql logs&lt;/P&gt;&lt;P&gt;make sure you can access mysql&lt;/P&gt;&lt;P&gt;telnet localhost 3306&lt;/P&gt;&lt;P&gt;make sure you have iptables and firewalls on your machine (and any on your network off)   some firewalls in corporate or on your comcast/verizon/cable router will block some mysql ports)&lt;/P&gt;&lt;P&gt;See here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/6865538/solving-a-communications-link-failure-with-jdbc-and-mysql" target="_blank"&gt;http://stackoverflow.com/questions/6865538/solving-a-communications-link-failure-with-jdbc-and-mysql&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is mysql setup and running?&lt;/P&gt;&lt;P&gt;make sure your bind-address is set correctly to 127... or 0..&lt;/P&gt;&lt;P&gt;Linux: /etc/mysql/my.cnf or /etc/my.cnf&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 20:19:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158492#M41079</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-09-19T20:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: unable to start ambari-server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158493#M41080</link>
      <description>&lt;P&gt;Hello Spann,&lt;/P&gt;&lt;P&gt;                      I'm able to connect to mysql cli, and I'm able to connect to mysql through other projects of mine.&lt;/P&gt;&lt;P&gt;My bind address is 127.0.0.1 and logs in /var/log/mysql/error.log is empty. &lt;/P&gt;&lt;P&gt;Output for telnet localhost 3306 &lt;/P&gt;&lt;P&gt;Trying 127.0.0.1... &lt;/P&gt;&lt;P&gt;Connected to localhost. &lt;/P&gt;&lt;P&gt;Escape character is '^]'.
[
5.6.31-0ubuntu0.14.04.2�&amp;#4;"q7[E(7&amp;#2;&amp;#127;�&amp;#21;{!-_uS{54B3smysql_native_password &lt;/P&gt;&lt;P&gt;Connection closed by foreign host.&lt;/P&gt;&lt;P&gt;And the same error is appearing in logs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR [main] DBAccessorImpl:102 - Error while creating database accessor 
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.&lt;/STRONG&gt;
&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 12:08:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158493#M41080</guid>
      <dc:creator>santhosh_kumari</dc:creator>
      <dc:date>2016-09-20T12:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: unable to start ambari-server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158494#M41081</link>
      <description>&lt;P&gt;And the permissions for mysql are:&lt;/P&gt;&lt;P&gt;/var/lib$ ls -l | grep 'mysql' &lt;/P&gt;&lt;P&gt;drwx------ 6 mysql         mysql         4096 Sep 20 10:26 mysql&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 12:11:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158494#M41081</guid>
      <dc:creator>santhosh_kumari</dc:creator>
      <dc:date>2016-09-20T12:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: unable to start ambari-server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158495#M41082</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/13180/santhoshkumari.html"&gt;Santhoshi G&lt;/A&gt; refer this link, you may get the solution&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/15495/amabari-server-212-setup-error-while-creating-data.html" target="_blank"&gt;https://community.hortonworks.com/questions/15495/amabari-server-212-setup-error-while-creating-data.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 12:17:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158495#M41082</guid>
      <dc:creator>mohan221213</dc:creator>
      <dc:date>2016-09-20T12:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: unable to start ambari-server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158496#M41083</link>
      <description>&lt;P&gt;Hello Mohan,&lt;/P&gt;&lt;P&gt;                      I tried this link. No use&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 12:47:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158496#M41083</guid>
      <dc:creator>santhosh_kumari</dc:creator>
      <dc:date>2016-09-20T12:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: unable to start ambari-server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158497#M41084</link>
      <description>&lt;P&gt;Its working now. I had to change my ambari.properties file... &lt;/P&gt;&lt;P&gt;added&lt;/P&gt;&lt;P&gt;db.mysql.jdbc.name=/var/lib/ambari-server/resources/mysql-connector-java-5.1.28.jar &lt;/P&gt;&lt;P&gt;and modified these lines&lt;/P&gt;&lt;P&gt;server.jdbc.rca.url=jdbc:mysql://localhost:3306/ambari&lt;/P&gt;&lt;P&gt;server.jdbc.url=jdbc:mysql://localhost:3306/ambari&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 14:43:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/unable-to-start-ambari-server/m-p/158497#M41084</guid>
      <dc:creator>santhosh_kumari</dc:creator>
      <dc:date>2016-09-20T14:43:40Z</dc:date>
    </item>
  </channel>
</rss>

