<?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 not starting in HDP 3.0 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Metastore-not-starting-in-HDP-3-0/m-p/194412#M83817</link>
    <description>&lt;P&gt;The problem was solved after changing the MySQL Database URL from&lt;/P&gt;&lt;PRE&gt;jdbc:mysql://xxxx.yyyy/hive?createDatabaseIfNotExist=true&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;jdbc:mysql://xxxx.yyyy/hive?createDatabaseIfNotExist=true&amp;amp;serverTimezone=Europe/Berlin&lt;/PRE&gt;&lt;P&gt;I found the relevant information here: &lt;A href="https://community.hortonworks.com/questions/218023/error-setting-up-hive-on-hdp-265timezone-on-mysql.html" target="_blank"&gt;https://community.hortonworks.com/questions/218023/error-setting-up-hive-on-hdp-265timezone-on-mysql.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Sep 2018 20:54:17 GMT</pubDate>
    <dc:creator>dmueller1607</dc:creator>
    <dc:date>2018-09-25T20:54:17Z</dc:date>
    <item>
      <title>Hive Metastore not starting in HDP 3.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Metastore-not-starting-in-HDP-3-0/m-p/194411#M83816</link>
      <description>&lt;P&gt;I'm just setting up a Hortonworks Data Platform 3.0 installation. &lt;/P&gt;&lt;P&gt;When I want to start the services (first time), the Hive Metastore start brings an exception:&lt;/P&gt;&lt;PRE&gt;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 'CEST' 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.
	at org.apache.hadoop.hive.metastore.tools.HiveSchemaHelper.getConnectionToMetastore(HiveSchemaHelper.java:94)
	at org.apache.hive.beeline.HiveSchemaTool.getConnectionToMetastore(HiveSchemaTool.java:169)
	at org.apache.hive.beeline.HiveSchemaTool.testConnectionToMetastore(HiveSchemaTool.java:475)
	at org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:581)
	at org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:567)
	at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:1539)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.hadoop.util.RunJar.run(RunJar.java:318)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:232)
Caused by: java.sql.SQLException: The server time zone value 'CEST' 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.
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73)
	at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:76)
	at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:832)
	at com.mysql.cj.jdbc.ConnectionImpl.&amp;lt;init&amp;gt;(ConnectionImpl.java:456)
	at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:240)
	at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:207)
	at java.sql.DriverManager.getConnection(DriverManager.java:664)
	at java.sql.DriverManager.getConnection(DriverManager.java:247)
	at org.apache.hadoop.hive.metastore.tools.HiveSchemaHelper.getConnectionToMetastore(HiveSchemaHelper.java:88)
	... 11 more&lt;/PRE&gt;&lt;P&gt;In my CentOS system I set the timezone to Europe/Berlin.&lt;/P&gt;&lt;PRE&gt;ls -l /etc/localtime
lrwxrwxrwx. 1 root root 35 Sep 25 10:45 /etc/localtime -&amp;gt; ../usr/share/zoneinfo/Europe/Berlin
&lt;/PRE&gt;
&lt;PRE&gt;timedatectl | grep -i 'time zone'
       Time zone: Europe/Berlin (CEST, +0200)
&lt;/PRE&gt;&lt;P&gt;Does anyone know how to solve this problem? Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 20:27:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Metastore-not-starting-in-HDP-3-0/m-p/194411#M83816</guid>
      <dc:creator>dmueller1607</dc:creator>
      <dc:date>2018-09-25T20:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Metastore not starting in HDP 3.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Metastore-not-starting-in-HDP-3-0/m-p/194412#M83817</link>
      <description>&lt;P&gt;The problem was solved after changing the MySQL Database URL from&lt;/P&gt;&lt;PRE&gt;jdbc:mysql://xxxx.yyyy/hive?createDatabaseIfNotExist=true&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;jdbc:mysql://xxxx.yyyy/hive?createDatabaseIfNotExist=true&amp;amp;serverTimezone=Europe/Berlin&lt;/PRE&gt;&lt;P&gt;I found the relevant information here: &lt;A href="https://community.hortonworks.com/questions/218023/error-setting-up-hive-on-hdp-265timezone-on-mysql.html" target="_blank"&gt;https://community.hortonworks.com/questions/218023/error-setting-up-hive-on-hdp-265timezone-on-mysql.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 20:54:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Metastore-not-starting-in-HDP-3-0/m-p/194412#M83817</guid>
      <dc:creator>dmueller1607</dc:creator>
      <dc:date>2018-09-25T20:54:17Z</dc:date>
    </item>
  </channel>
</rss>

