<?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 ambari-server setup not updating the PostgreSQL JDBC driver for hive when upgrading PostgreSQL for HDP 2.3.4 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-not-updating-the-PostgreSQL-JDBC-driver/m-p/191221#M59121</link>
    <description>&lt;P&gt;I've been able to upgrade the driver manually by copying over the postgresql-jdbc.jar file saved in /usr/share/java.  However, the driver does not get upgraded for the directory /usr/hdp/X.X.X.X-XXXX/hive/lib directory when I run the command&lt;/P&gt;&lt;PRE&gt;ambari-server setup --jdbc-db=postgres --jdbc-driver=/usr/share/java/postgresql-jdbc.jar&lt;/PRE&gt;&lt;P&gt;Is there a step I'm missing or doing incorrectly?&lt;/P&gt;&lt;P&gt;PostgreSQL was upgraded from v9.1 to v9.4 and the JDBC was being upgraded to match.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2017 03:41:23 GMT</pubDate>
    <dc:creator>Jeff_td</dc:creator>
    <dc:date>2017-04-07T03:41:23Z</dc:date>
    <item>
      <title>ambari-server setup not updating the PostgreSQL JDBC driver for hive when upgrading PostgreSQL for HDP 2.3.4</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-not-updating-the-PostgreSQL-JDBC-driver/m-p/191221#M59121</link>
      <description>&lt;P&gt;I've been able to upgrade the driver manually by copying over the postgresql-jdbc.jar file saved in /usr/share/java.  However, the driver does not get upgraded for the directory /usr/hdp/X.X.X.X-XXXX/hive/lib directory when I run the command&lt;/P&gt;&lt;PRE&gt;ambari-server setup --jdbc-db=postgres --jdbc-driver=/usr/share/java/postgresql-jdbc.jar&lt;/PRE&gt;&lt;P&gt;Is there a step I'm missing or doing incorrectly?&lt;/P&gt;&lt;P&gt;PostgreSQL was upgraded from v9.1 to v9.4 and the JDBC was being upgraded to match.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 03:41:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-not-updating-the-PostgreSQL-JDBC-driver/m-p/191221#M59121</guid>
      <dc:creator>Jeff_td</dc:creator>
      <dc:date>2017-04-07T03:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server setup not updating the PostgreSQL JDBC driver for hive when upgrading PostgreSQL for HDP 2.3.4</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-not-updating-the-PostgreSQL-JDBC-driver/m-p/191222#M59122</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/17180/jeffreybarr.html" nodeid="17180"&gt;@Jeffrey Barr&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;The following steps that you performed is good and suggested as per the doc. &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.18/bk_ambari-reference/content/_using_hive_with_postgresql.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.18/bk_ambari-reference/content/_using_hive_with_postgresql.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;ambari-server setup --jdbc-db=postgres --jdbc-driver=/usr/share/java/postgresql94-jdbc.jar   &lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;However if you are still facing any issue then please check the output of  "&lt;STRONG&gt;lsof&lt;/STRONG&gt;" command to verify which JAR is being loaded by your hive.&lt;/P&gt;&lt;PRE&gt;lsof -p $PID | grep postgresql&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Still if you find that old jar is being used then try restarting the hive and see if it works. Also perform the following steps as last option.&lt;STRONG&gt;

&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;On the HiveServer2/Metastore Server&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; -  find / -name 'postgre*.jar' -ls &lt;/P&gt;&lt;P&gt;- Remove old postgrexxx.jar from Agent's tmp directory and /usr/hdb/&amp;lt;version&amp;gt;/hive/lib &lt;/P&gt;&lt;P&gt;- Remove old postgrexxx.jar from Agent's cache directory &lt;/P&gt;&lt;P&gt;-  Replace /usr/hdp/&amp;lt;version&amp;gt;/hadoop/lib/postgresql-jdbc.jar with newer version if exists. &lt;/P&gt;&lt;P&gt;-  Restart ambari-agent
-  Restart Hive (hiveserver2/metastore) from Ambari &lt;/P&gt;&lt;P&gt;-  Run find command again to make sure the version is correct by checking the file size&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 10:06:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-not-updating-the-PostgreSQL-JDBC-driver/m-p/191222#M59122</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-04-07T10:06:59Z</dc:date>
    </item>
  </channel>
</rss>

