<?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: Hive Metastore database driver configuration in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-Metastore-database-driver-configuration/m-p/142632#M105225</link>
    <description>&lt;P&gt;Try point to the library provided by the system package as described in the docs?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-reference/content/using_hive_with_mysql.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-reference/content/using_hive_with_mysql.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2017 05:39:15 GMT</pubDate>
    <dc:creator>sroberts</dc:creator>
    <dc:date>2017-01-24T05:39:15Z</dc:date>
    <item>
      <title>Hive Metastore database driver configuration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Metastore-database-driver-configuration/m-p/142631#M105224</link>
      <description>&lt;P&gt;I am setting the Hive metastore db driver using:&lt;/P&gt;&lt;PRE&gt;ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/hdp/current/hive-server2/lib/mysql-connector-java-5.1.38.jar
Using python  /usr/bin/python
Setup ambari-server
.Copying /usr/hdp/current/hive-server2/lib/mysql-connector-java-5.1.38.jar to /var/lib/ambari-server/resources
If you are updating existing jdbc driver jar for mysql with mysql-connector-java-5.1.38.jar. Please remove the old driver jar, from all hosts. Restarting services that need the driver, will automatically copy the new jar to the hosts.
JDBC driver was successfully initialized.
Ambari Server 'setup' completed successfully.&lt;/PRE&gt;&lt;P&gt; and I have checked that the jar is in that path. But, when I try to restart Hiveserver2, I get the following error message:&lt;/P&gt;&lt;PRE&gt;2017-01-23 20:59:37,414 - Error! Sorry, but we can't find jdbc driver with default name mysql-connector-java.jar in hive lib dir. So, db connection check can fail. Please run 'ambari-server setup --jdbc-db={db_name} --jdbc-driver={path_to_jdbc} on server host.'
&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Jan 2017 05:09:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Metastore-database-driver-configuration/m-p/142631#M105224</guid>
      <dc:creator>ssen</dc:creator>
      <dc:date>2017-01-24T05:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Metastore database driver configuration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Metastore-database-driver-configuration/m-p/142632#M105225</link>
      <description>&lt;P&gt;Try point to the library provided by the system package as described in the docs?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-reference/content/using_hive_with_mysql.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-reference/content/using_hive_with_mysql.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 05:39:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Metastore-database-driver-configuration/m-p/142632#M105225</guid>
      <dc:creator>sroberts</dc:creator>
      <dc:date>2017-01-24T05:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Metastore database driver configuration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Metastore-database-driver-configuration/m-p/142633#M105226</link>
      <description>&lt;P&gt;Confirm that &lt;CODE&gt;mysql-connector-java.jar&lt;/CODE&gt; is in the Java share directory.&lt;/P&gt;&lt;P&gt;ls /usr/share/java/mysql-connector-java.jar&lt;/P&gt;&lt;P&gt;#under /usr/hdp/current/hive-server2/lib/&lt;/P&gt;&lt;P&gt;run the commands&lt;/P&gt;&lt;P&gt;cp mysql-connector-java-5.1.38.jar mysql-connector-java.jar&lt;/P&gt;&lt;P&gt;ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/hdp/current/hive-server2/lib/mysql-connector-java.jar&lt;/P&gt;&lt;P&gt;#then restart all services oh Hive&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 05:44:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Metastore-database-driver-configuration/m-p/142633#M105226</guid>
      <dc:creator>ahallam</dc:creator>
      <dc:date>2017-01-24T05:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Metastore database driver configuration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Metastore-database-driver-configuration/m-p/142634#M105227</link>
      <description>&lt;P&gt;I did, but it looks like the jar is not being automatically copeied on restart of Hive to other nodes&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 06:00:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Metastore-database-driver-configuration/m-p/142634#M105227</guid>
      <dc:creator>ssen</dc:creator>
      <dc:date>2017-01-24T06:00:41Z</dc:date>
    </item>
  </channel>
</rss>

