<?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: Error setting up hive on HDP 2.6.5.....timezone on mysql in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-setting-up-hive-on-HDP-2-6-5-timezone-on-mysql/m-p/185370#M147477</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/94162/wpakkala.html" nodeid="94162"&gt;@Wayne
 Pakkala
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can try any ofm the following approach to address this issue:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option-1).&lt;/STRONG&gt; From MySQL Side:&lt;BR /&gt;Edit the &lt;STRONG&gt;"/etc/my.cnf"&lt;/STRONG&gt; file to match timezone to EDT or something like following  (please pick correct value): &lt;/P&gt;&lt;PRE&gt;default_time_zone='+08:00' &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Restart mysql server  (OR try the following) Please choose your own time_zone, following is just for an example.&lt;/P&gt;&lt;PRE&gt;mysql&amp;gt; SET GLOBAL time_zone = 'Australia/Sydney';  &lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Following by a MySQL restart.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Reference:&lt;/STRONG&gt; &lt;A href="https://dev.mysql.com/doc/refman/8.0/en/time-zone-support.html" target="_blank"&gt;https://dev.mysql.com/doc/refman/8.0/en/time-zone-support.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Option-2).&lt;/STRONG&gt;&lt;BR /&gt;You can also try adding the&lt;STRONG&gt; "serverTimezone=EDT"&lt;/STRONG&gt; in your MySQL URL in hive settings from Ambari UI:&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;Change From:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;jdbc:mysql://xxxx.yyyy/hive?createDatabaseIfNotExist=true&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Change To:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;jdbc:mysql://xxxx.yyyy/hive?createDatabaseIfNotExist=true&amp;amp;serverTimezone=EDT&lt;/PRE&gt;</description>
    <pubDate>Fri, 07 Sep 2018 08:05:38 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2018-09-07T08:05:38Z</dc:date>
    <item>
      <title>Error setting up hive on HDP 2.6.5.....timezone on mysql</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-setting-up-hive-on-HDP-2-6-5-timezone-on-mysql/m-p/185369#M147476</link>
      <description>&lt;P&gt;I receive the following error after installing hive&lt;/P&gt;&lt;PRE&gt;Metastore connection URL:	 jdbc:mysql://europa.diamond/hive?createDatabaseIfNotExist=true
Metastore Connection Driver :	 com.mysql.jdbc.Driver
Metastore connection User:	 hive
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
Underlying cause: java.sql.SQLException : The server time zone value 'EDT' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
SQL Error code: 0
org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.

How do I solve this issue?&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Sep 2018 08:01:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-setting-up-hive-on-HDP-2-6-5-timezone-on-mysql/m-p/185369#M147476</guid>
      <dc:creator>wpakkala</dc:creator>
      <dc:date>2018-09-07T08:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error setting up hive on HDP 2.6.5.....timezone on mysql</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-setting-up-hive-on-HDP-2-6-5-timezone-on-mysql/m-p/185370#M147477</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/94162/wpakkala.html" nodeid="94162"&gt;@Wayne
 Pakkala
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can try any ofm the following approach to address this issue:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option-1).&lt;/STRONG&gt; From MySQL Side:&lt;BR /&gt;Edit the &lt;STRONG&gt;"/etc/my.cnf"&lt;/STRONG&gt; file to match timezone to EDT or something like following  (please pick correct value): &lt;/P&gt;&lt;PRE&gt;default_time_zone='+08:00' &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Restart mysql server  (OR try the following) Please choose your own time_zone, following is just for an example.&lt;/P&gt;&lt;PRE&gt;mysql&amp;gt; SET GLOBAL time_zone = 'Australia/Sydney';  &lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Following by a MySQL restart.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Reference:&lt;/STRONG&gt; &lt;A href="https://dev.mysql.com/doc/refman/8.0/en/time-zone-support.html" target="_blank"&gt;https://dev.mysql.com/doc/refman/8.0/en/time-zone-support.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Option-2).&lt;/STRONG&gt;&lt;BR /&gt;You can also try adding the&lt;STRONG&gt; "serverTimezone=EDT"&lt;/STRONG&gt; in your MySQL URL in hive settings from Ambari UI:&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;Change From:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;jdbc:mysql://xxxx.yyyy/hive?createDatabaseIfNotExist=true&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Change To:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;jdbc:mysql://xxxx.yyyy/hive?createDatabaseIfNotExist=true&amp;amp;serverTimezone=EDT&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Sep 2018 08:05:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-setting-up-hive-on-HDP-2-6-5-timezone-on-mysql/m-p/185370#M147477</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-09-07T08:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error setting up hive on HDP 2.6.5.....timezone on mysql</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-setting-up-hive-on-HDP-2-6-5-timezone-on-mysql/m-p/185371#M147478</link>
      <description>&lt;P&gt;Thx &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;, this solved my problem. I used your suggestion and modified the jdbc string.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 16:33:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-setting-up-hive-on-HDP-2-6-5-timezone-on-mysql/m-p/185371#M147478</guid>
      <dc:creator>wpakkala</dc:creator>
      <dc:date>2018-09-07T16:33:09Z</dc:date>
    </item>
  </channel>
</rss>

