<?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 Re: ranger installation failed while DB connection checking in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-installation-failed-while-DB-connection-checking/m-p/167958#M53912</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;Kuldeep&lt;/P&gt;&lt;P&gt;Seems to be a connection pooling issue, Restarted multiple times ambari-agent on the slaves and event the ambari-server and it worked.&lt;/P&gt;&lt;P&gt;I think there needs to be a sequence first ambari-server and then ambari-agent.&lt;/P&gt;&lt;P&gt;Really thanks for pointing it out.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2017 20:10:19 GMT</pubDate>
    <dc:creator>harshit_t_shah</dc:creator>
    <dc:date>2017-02-09T20:10:19Z</dc:date>
    <item>
      <title>ranger installation failed while DB connection checking</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-installation-failed-while-DB-connection-checking/m-p/167952#M53906</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/12259-image1.png"&gt;image1.png&lt;/A&gt; &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/12260-image2.png"&gt;image2.png&lt;/A&gt; &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/12261-ranger-logs.txt"&gt;ranger-logs.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/12261-ranger-logs.txt"&gt;&lt;/A&gt;While doing the installation of ranger from ambari UI , pre-requisites are checked successfully and while checking the MySQL db connection , we are facing error of service unavailable.&lt;/P&gt;&lt;P&gt;Kindly find the attached files &amp;amp; logs.&lt;/P&gt;&lt;P&gt;please do the needful if possible. &lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 18:33:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-installation-failed-while-DB-connection-checking/m-p/167952#M53906</guid>
      <dc:creator>hardikv_desai</dc:creator>
      <dc:date>2017-02-09T18:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: ranger installation failed while DB connection checking</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-installation-failed-while-DB-connection-checking/m-p/167953#M53907</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10230/hardikvdesai.html" nodeid="10230"&gt;@hardik desai&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you please verify connectivity between Ranger admin and Ambari server host? &lt;/P&gt;&lt;P&gt;Telnet from Ranger Admin host to Ambari Server on 8080?&lt;/P&gt;&lt;P&gt;503 error code - looks like Ambari Server is too busy to respond or there is network issue between Ranger Admin and Ambari Server. &lt;/P&gt;&lt;P&gt;Can you manually copy DBConnectionVerification.jar from ambari-server to &lt;STRONG&gt;ambari-agent on ranger admin hos&lt;/STRONG&gt;t and restart ambari-agent followed by retry DB connection.&lt;/P&gt;&lt;P&gt;On Ambari-server DBConnectionVerification.jar should present at below location&lt;/P&gt;&lt;PRE&gt;/var/lib/ambari-server/resources/DBConnectionVerification.jar&lt;/PRE&gt;&lt;P&gt;On Ambari-agent, copy DBConnectionVerification.jar at below location&lt;/P&gt;&lt;PRE&gt;/usr/lib/ambari-agent/DBConnectionVerification.jar
/var/lib/ambari-agent/tmp/DBConnectionVerification.jar
/var/lib/ambari-agent/cache/DBConnectionVerification.jar&lt;/PRE&gt;&lt;P&gt;You can also try to bounce Ambari Server and see if it helps.&lt;/P&gt;&lt;P&gt;Please keep us posted.&lt;/P&gt;&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 18:53:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-installation-failed-while-DB-connection-checking/m-p/167953#M53907</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2017-02-09T18:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: ranger installation failed while DB connection checking</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-installation-failed-while-DB-connection-checking/m-p/167954#M53908</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/504/kkulkarni.html"&gt;Kuldeep Kulkarni&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the info; we have tried doing the same but the issue still persist.&lt;/P&gt;&lt;P&gt;root@server:~# cksum /var/lib/ambari-server/resources/DBConnectionVerification.jar &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2699944268 &lt;/STRONG&gt;1931 /var/lib/ambari-server/resources/DBConnectionVerification.jar &lt;/P&gt;&lt;P&gt;root@slave1:~# cksum /usr/lib/ambari-agent/DBConnectionVerification.jar &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2699944268 &lt;/STRONG&gt;1931 /usr/lib/ambari-agent/DBConnectionVerification.jar&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 19:12:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-installation-failed-while-DB-connection-checking/m-p/167954#M53908</guid>
      <dc:creator>hardikv_desai</dc:creator>
      <dc:date>2017-02-09T19:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: ranger installation failed while DB connection checking</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-installation-failed-while-DB-connection-checking/m-p/167955#M53909</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10230/hardikvdesai.html" nodeid="10230"&gt;@hardik desai&lt;/A&gt; - Please check updated answer above ^^&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 19:19:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-installation-failed-while-DB-connection-checking/m-p/167955#M53909</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2017-02-09T19:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: ranger installation failed while DB connection checking</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-installation-failed-while-DB-connection-checking/m-p/167956#M53910</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;&lt;P&gt;We did the things mentioned, but still the error is the same. &lt;/P&gt;&lt;P&gt;Also bounced the ambari-server as well as ambari-agent but things seems to be same.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 19:42:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-installation-failed-while-DB-connection-checking/m-p/167956#M53910</guid>
      <dc:creator>harshit_t_shah</dc:creator>
      <dc:date>2017-02-09T19:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: ranger installation failed while DB connection checking</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-installation-failed-while-DB-connection-checking/m-p/167957#M53911</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10230/hardikvdesai.html" nodeid="10230"&gt;@hardik desai&lt;/A&gt; / &lt;A rel="user" href="https://community.cloudera.com/users/10241/harshittshah.html" nodeid="10241"&gt;@Harshit Shah&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Take backup of below file --&amp;gt; edit it on ranger admin host --&amp;gt; restart ambari-agent and try again&lt;/P&gt;&lt;P&gt;#Backup&lt;/P&gt;&lt;PRE&gt;cp /var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py /var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py.bak&lt;/PRE&gt;&lt;P&gt;#Edit&lt;/P&gt;&lt;PRE&gt;vi /var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py&lt;/PRE&gt;&lt;P&gt;#Comment below code&lt;/P&gt;&lt;PRE&gt;# download DBConnectionVerification.jar from ambari-server resources
   try:
     download_file(check_db_connection_url, check_db_connection_path)
   except Exception, e:
     message = "Error downloading DBConnectionVerification.jar from Ambari Server resources. Check network access to " \
               "Ambari Server.\n" + str(e)
     print message
     db_connection_check_structured_output = {"exit_code" : 1, "message": message}
     return db_connection_check_structured_output&lt;/PRE&gt;&lt;P&gt;#Save and restart ambari agent&lt;/P&gt;&lt;P&gt;Let me know the results.&lt;/P&gt;&lt;P&gt;This is hacky approach and I would not recommend it for Production clusters. We need to investigate what's happening. If you have support subscription, please open a support case with us &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 20:09:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-installation-failed-while-DB-connection-checking/m-p/167957#M53911</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2017-02-09T20:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: ranger installation failed while DB connection checking</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-installation-failed-while-DB-connection-checking/m-p/167958#M53912</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;Kuldeep&lt;/P&gt;&lt;P&gt;Seems to be a connection pooling issue, Restarted multiple times ambari-agent on the slaves and event the ambari-server and it worked.&lt;/P&gt;&lt;P&gt;I think there needs to be a sequence first ambari-server and then ambari-agent.&lt;/P&gt;&lt;P&gt;Really thanks for pointing it out.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 20:10:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-installation-failed-while-DB-connection-checking/m-p/167958#M53912</guid>
      <dc:creator>harshit_t_shah</dc:creator>
      <dc:date>2017-02-09T20:10:19Z</dc:date>
    </item>
  </channel>
</rss>

