<?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: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238344#M200155</link>
    <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://adil%20bakkouri/" target="_blank"&gt;&lt;EM&gt;@Adil BAKKOURI&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Have you seen my latest update?&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2019 20:09:56 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2019-05-10T20:09:56Z</dc:date>
    <item>
      <title>HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238328#M200139</link>
      <description>&lt;P&gt;Hello HW community,&lt;BR /&gt;I have a problem with my HiveMetastore &amp;amp; Hiveserver2 dont start at all due to the database connexion with the jdbc driver.&lt;BR /&gt;i proprelly executed the "&lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.5/bk_ambari-administration/content/using_hive_with_mysql.html"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.5/bk_ambari-administration/content/using_hive_with_mysql.html&lt;/A&gt; " i have the 3 hive users on mysql, i created the hive database and linked the mysql-connector-java.jar to my ambari-server. I tried some solution kind of replace the "localhost" in the Database URL  by the host name or the ip address too, but same error.&lt;BR /&gt;&lt;BR /&gt;PS: all the others services are turning.&lt;BR /&gt;&lt;BR /&gt;My error is :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;stderr: &lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
&amp;nbsp; File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py", line 203, in &amp;lt;module&amp;gt;
&amp;nbsp; &amp;nbsp; HiveMetastore().execute()
&amp;nbsp; File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 367, in execute
&amp;nbsp; &amp;nbsp; method(env)
&amp;nbsp; File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py", line 56, in start
&amp;nbsp; &amp;nbsp; create_metastore_schema()
&amp;nbsp; File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py", line 413, in create_metastore_schema
&amp;nbsp; &amp;nbsp; user = params.hive_user
&amp;nbsp; File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 166, in __init__
&amp;nbsp; &amp;nbsp; self.env.run()
&amp;nbsp; File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
&amp;nbsp; &amp;nbsp; self.run_action(resource, action)
&amp;nbsp; File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
&amp;nbsp; &amp;nbsp; provider_action()
&amp;nbsp; File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 262, in action_run
&amp;nbsp; &amp;nbsp; tries=self.resource.tries, try_sleep=self.resource.try_sleep)
&amp;nbsp; File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 72, in inner
&amp;nbsp; &amp;nbsp; result = function(command, **kwargs)
&amp;nbsp; File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call
&amp;nbsp; &amp;nbsp; tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
&amp;nbsp; File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper
&amp;nbsp; &amp;nbsp; result = _call(command, **kwargs_copy)
&amp;nbsp; File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call
&amp;nbsp; &amp;nbsp; raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'export HIVE_CONF_DIR=/usr/hdp/current/hive-metastore/conf/conf.server ; /usr/hdp/current/hive-server2-hive2/bin/schematool -initSchema -dbType mysql -userName hive -passWord [PROTECTED] -verbose' returned 1. SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/2.6.3.0-235/hive2/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.6.3.0-235/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt; for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Metastore connection URL:&amp;nbsp; &amp;nbsp;&amp;nbsp; jdbc:mysql://127.0.0.1/hive?createDatabaseIfNotExist=true
Metastore Connection Driver :&amp;nbsp; &amp;nbsp;&amp;nbsp; com.mysql.jdbc.Driver
Metastore connection User:&amp;nbsp; &amp;nbsp;&amp;nbsp; 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.
Wed Apr 10 12:02:45 CEST 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
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.
&amp;nbsp; &amp;nbsp;&amp;nbsp;at org.apache.hive.beeline.HiveSchemaHelper.getConnectionToMetastore(HiveSchemaHelper.java:80)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at org.apache.hive.beeline.HiveSchemaTool.getConnectionToMetastore(HiveSchemaTool.java:133)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at org.apache.hive.beeline.HiveSchemaTool.testConnectionToMetastore(HiveSchemaTool.java:187)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:291)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:277)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:526)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at java.lang.reflect.Method.invoke(Method.java:498)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at org.apache.hadoop.util.RunJar.run(RunJar.java:233)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at org.apache.hadoop.util.RunJar.main(RunJar.java:148)
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.
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:76)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:832)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.jdbc.ConnectionImpl.&amp;lt;init&amp;gt;(ConnectionImpl.java:456)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:240)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:207)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at java.sql.DriverManager.getConnection(DriverManager.java:664)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at java.sql.DriverManager.getConnection(DriverManager.java:247)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at org.apache.hive.beeline.HiveSchemaHelper.getConnectionToMetastore(HiveSchemaHelper.java:76)
&amp;nbsp; &amp;nbsp;&amp;nbsp;... 11 more
Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: 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.
&amp;nbsp; &amp;nbsp;&amp;nbsp;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:85)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.util.TimeUtil.getCanonicalTimezone(TimeUtil.java:128)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.protocol.a.NativeProtocol.configureTimezone(NativeProtocol.java:2236)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.protocol.a.NativeProtocol.initServerSession(NativeProtocol.java:2260)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:1314)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:963)
&amp;nbsp; &amp;nbsp;&amp;nbsp;at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:822)
&amp;nbsp; &amp;nbsp; ... 17 more&lt;/PRE&gt;&lt;P&gt;*** schemaTool failed ***&lt;/P&gt;&lt;P&gt; stdout:&lt;/P&gt;&lt;PRE&gt;2019-04-10 12:02:27,431 - Stack Feature Version Info: Cluster Stack=2.6, Command Stack=None, Command Version=2.6.3.0-235 -&amp;gt; 2.6.3.0-235
2019-04-10 12:02:27,467 - Using hadoop conf dir: /usr/hdp/2.6.3.0-235/hadoop/conf
2019-04-10 12:02:27,921 - Stack Feature Version Info: Cluster Stack=2.6, Command Stack=None, Command Version=2.6.3.0-235 -&amp;gt; 2.6.3.0-235
2019-04-10 12:02:27,929 - Using hadoop conf dir: /usr/hdp/2.6.3.0-235/hadoop/conf
2019-04-10 12:02:27,931 - Group['livy'] {}
2019-04-10 12:02:27,933 - Group['spark'] {}
2019-04-10 12:02:27,934 - Group['hdfs'] {}
2019-04-10 12:02:27,934 - Group['zeppelin'] {}
2019-04-10 12:02:27,934 - Group['hadoop'] {}
2019-04-10 12:02:27,934 - Group['users'] {}
2019-04-10 12:02:27,935 - User['hive'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2019-04-10 12:02:27,937 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2019-04-10 12:02:27,938 - User['infra-solr'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2019-04-10 12:02:27,939 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2019-04-10 12:02:27,941 - User['tez'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users'], 'uid': None}
2019-04-10 12:02:27,942 - User['zeppelin'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'zeppelin', u'hadoop'], 'uid': None}
2019-04-10 12:02:27,943 - User['livy'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2019-04-10 12:02:27,944 - User['spark'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2019-04-10 12:02:27,945 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users'], 'uid': None}
2019-04-10 12:02:27,946 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2019-04-10 12:02:27,947 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hdfs'], 'uid': None}
2019-04-10 12:02:27,948 - User['sqoop'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2019-04-10 12:02:27,949 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2019-04-10 12:02:27,950 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2019-04-10 12:02:27,951 - User['hbase'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2019-04-10 12:02:27,953 - User['hcat'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2019-04-10 12:02:27,954 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2019-04-10 12:02:27,955 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2019-04-10 12:02:27,997 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] due to not_if
2019-04-10 12:02:27,999 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'create_parents': True, 'mode': 0775, 'cd_access': 'a'}
2019-04-10 12:02:28,002 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2019-04-10 12:02:28,004 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2019-04-10 12:02:28,005 - call['/var/lib/ambari-agent/tmp/changeUid.sh hbase'] {}
2019-04-10 12:02:28,057 - call returned (0, '1012')
2019-04-10 12:02:28,060 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1012'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2019-04-10 12:02:28,095 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1012'] due to not_if
2019-04-10 12:02:28,097 - Group['hdfs'] {}
2019-04-10 12:02:28,098 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': ['hdfs', u'hdfs']}
2019-04-10 12:02:28,099 - FS Type:&amp;nbsp;
2019-04-10 12:02:28,099 - Directory['/etc/hadoop'] {'mode': 0755}
2019-04-10 12:02:28,133 - File['/usr/hdp/2.6.3.0-235/hadoop/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2019-04-10 12:02:28,134 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
2019-04-10 12:02:28,232 - Execute[('setenforce', '0')] {'not_if': '(! which getenforce ) || (which getenforce &amp;amp;&amp;amp; getenforce | grep -q Disabled)', 'sudo': True, 'only_if': 'test -f /selinux/enforce'}
2019-04-10 12:02:28,281 - Skipping Execute[('setenforce', '0')] due to not_if
2019-04-10 12:02:28,283 - Directory['/var/log/hadoop'] {'owner': 'root', 'create_parents': True, 'group': 'hadoop', 'mode': 0775, 'cd_access': 'a'}
2019-04-10 12:02:28,291 - Directory['/var/run/hadoop'] {'owner': 'root', 'create_parents': True, 'group': 'root', 'cd_access': 'a'}
2019-04-10 12:02:28,292 - Directory['/tmp/hadoop-hdfs'] {'owner': 'hdfs', 'create_parents': True, 'cd_access': 'a'}
2019-04-10 12:02:28,303 - File['/usr/hdp/2.6.3.0-235/hadoop/conf/commons-logging.properties'] {'content': Template('commons-logging.properties.j2'), 'owner': 'hdfs'}
2019-04-10 12:02:28,307 - File['/usr/hdp/2.6.3.0-235/hadoop/conf/health_check'] {'content': Template('health_check.j2'), 'owner': 'hdfs'}
2019-04-10 12:02:28,320 - File['/usr/hdp/2.6.3.0-235/hadoop/conf/log4j.properties'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop', 'mode': 0644}
2019-04-10 12:02:28,337 - File['/usr/hdp/2.6.3.0-235/hadoop/conf/hadoop-metrics2.properties'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2019-04-10 12:02:28,338 - File['/usr/hdp/2.6.3.0-235/hadoop/conf/task-log4j.properties'] {'content': StaticFile('task-log4j.properties'), 'mode': 0755}
2019-04-10 12:02:28,339 - File['/usr/hdp/2.6.3.0-235/hadoop/conf/configuration.xsl'] {'owner': 'hdfs', 'group': 'hadoop'}
2019-04-10 12:02:28,347 - File['/etc/hadoop/conf/topology_mappings.data'] {'owner': 'hdfs', 'content': Template('topology_mappings.data.j2'), 'only_if': 'test -d /etc/hadoop/conf', 'group': 'hadoop', 'mode': 0644}
2019-04-10 12:02:28,373 - File['/etc/hadoop/conf/topology_script.py'] {'content': StaticFile('topology_script.py'), 'only_if': 'test -d /etc/hadoop/conf', 'mode': 0755}
2019-04-10 12:02:29,329 - MariaDB RedHat Support: false
2019-04-10 12:02:29,335 - Using hadoop conf dir: /usr/hdp/2.6.3.0-235/hadoop/conf
2019-04-10 12:02:29,354 - call['ambari-python-wrap /usr/bin/hdp-select status hive-server2'] {'timeout': 20}
2019-04-10 12:02:29,432 - call returned (0, 'hive-server2 - 2.6.3.0-235')
2019-04-10 12:02:29,435 - Stack Feature Version Info: Cluster Stack=2.6, Command Stack=None, Command Version=2.6.3.0-235 -&amp;gt; 2.6.3.0-235
2019-04-10 12:02:29,505 - File['/var/lib/ambari-agent/cred/lib/CredentialUtil.jar'] {'content': DownloadSource('http://master.rh.bigdata.cluster:8080/resources/CredentialUtil.jar'), 'mode': 0755}
2019-04-10 12:02:29,515 - Not downloading the file from &lt;A href="http://master.rh.bigdata.cluster:8080/resources/CredentialUtil.jar" target="_blank"&gt;http://master.rh.bigdata.cluster:8080/resources/CredentialUtil.jar&lt;/A&gt;, because /var/lib/ambari-agent/tmp/CredentialUtil.jar already exists
2019-04-10 12:02:29,515 - checked_call[('/usr/jdk64/jdk1.8.0_112/bin/java', '-cp', u'/var/lib/ambari-agent/cred/lib/*', 'org.apache.ambari.server.credentialapi.CredentialUtil', 'get', 'javax.jdo.option.ConnectionPassword', '-provider', u'jceks://file/var/lib/ambari-agent/cred/conf/hive_metastore/hive-site.jceks')] {}
2019-04-10 12:02:30,935 - checked_call returned (0, 'SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".\nSLF4J: Defaulting to no-operation (NOP) logger implementation\nSLF4J: See &lt;A href="http://www.slf4j.org/codes.html#StaticLoggerBinder" target="_blank"&gt;http://www.slf4j.org/codes.html#StaticLoggerBinder&lt;/A&gt; for further details.\nApr 10, 2019 12:02:30 PM org.apache.hadoop.util.NativeCodeLoader &amp;lt;clinit&amp;gt;\nWARNING: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable\nhive')
2019-04-10 12:02:30,968 - Directory['/etc/hive'] {'mode': 0755}
2019-04-10 12:02:30,969 - Directories to fill with configs: [u'/usr/hdp/current/hive-metastore/conf', u'/usr/hdp/current/hive-metastore/conf/conf.server']
2019-04-10 12:02:30,970 - Directory['/etc/hive/2.6.3.0-235/0'] {'owner': 'hive', 'group': 'hadoop', 'create_parents': True, 'mode': 0755}
2019-04-10 12:02:30,972 - XmlConfig['mapred-site.xml'] {'group': 'hadoop', 'conf_dir': '/etc/hive/2.6.3.0-235/0', 'mode': 0644, 'configuration_attributes': {}, 'owner': 'hive', 'configurations': ...}
2019-04-10 12:02:30,997 - Generating config: /etc/hive/2.6.3.0-235/0/mapred-site.xml
2019-04-10 12:02:30,997 - File['/etc/hive/2.6.3.0-235/0/mapred-site.xml'] {'owner': 'hive', 'content': InlineTemplate(...), 'group': 'hadoop', 'mode': 0644, 'encoding': 'UTF-8'}
2019-04-10 12:02:31,047 - File['/etc/hive/2.6.3.0-235/0/hive-default.xml.template'] {'owner': 'hive', 'group': 'hadoop', 'mode': 0644}
2019-04-10 12:02:31,048 - File['/etc/hive/2.6.3.0-235/0/hive-env.sh.template'] {'owner': 'hive', 'group': 'hadoop', 'mode': 0644}
2019-04-10 12:02:31,051 - File['/etc/hive/2.6.3.0-235/0/hive-exec-log4j.properties'] {'content': InlineTemplate(...), 'owner': 'hive', 'group': 'hadoop', 'mode': 0644}
2019-04-10 12:02:31,055 - File['/etc/hive/2.6.3.0-235/0/hive-log4j.properties'] {'content': InlineTemplate(...), 'owner': 'hive', 'group': 'hadoop', 'mode': 0644}
2019-04-10 12:02:31,056 - File['/etc/hive/2.6.3.0-235/0/parquet-logging.properties'] {'content': ..., 'owner': 'hive', 'group': 'hadoop', 'mode': 0644}
2019-04-10 12:02:31,058 - Directory['/etc/hive/2.6.3.0-235/0/conf.server'] {'owner': 'hive', 'group': 'hadoop', 'create_parents': True, 'mode': 0700}
2019-04-10 12:02:31,058 - XmlConfig['mapred-site.xml'] {'group': 'hadoop', 'conf_dir': '/etc/hive/2.6.3.0-235/0/conf.server', 'mode': 0600, 'configuration_attributes': {}, 'owner': 'hive', 'configurations': ...}
2019-04-10 12:02:31,072 - Generating config: /etc/hive/2.6.3.0-235/0/conf.server/mapred-site.xml
2019-04-10 12:02:31,073 - File['/etc/hive/2.6.3.0-235/0/conf.server/mapred-site.xml'] {'owner': 'hive', 'content': InlineTemplate(...), 'group': 'hadoop', 'mode': 0600, 'encoding': 'UTF-8'}
2019-04-10 12:02:31,135 - File['/etc/hive/2.6.3.0-235/0/conf.server/hive-default.xml.template'] {'owner': 'hive', 'group': 'hadoop', 'mode': 0600}
2019-04-10 12:02:31,135 - File['/etc/hive/2.6.3.0-235/0/conf.server/hive-env.sh.template'] {'owner': 'hive', 'group': 'hadoop', 'mode': 0600}
2019-04-10 12:02:31,138 - File['/etc/hive/2.6.3.0-235/0/conf.server/hive-exec-log4j.properties'] {'content': InlineTemplate(...), 'owner': 'hive', 'group': 'hadoop', 'mode': 0600}
2019-04-10 12:02:31,143 - File['/etc/hive/2.6.3.0-235/0/conf.server/hive-log4j.properties'] {'content': InlineTemplate(...), 'owner': 'hive', 'group': 'hadoop', 'mode': 0600}
2019-04-10 12:02:31,144 - File['/etc/hive/2.6.3.0-235/0/conf.server/parquet-logging.properties'] {'content': ..., 'owner': 'hive', 'group': 'hadoop', 'mode': 0600}
2019-04-10 12:02:31,144 - File['/usr/hdp/current/hive-metastore/conf/conf.server/hive-site.jceks'] {'content': StaticFile('/var/lib/ambari-agent/cred/conf/hive_metastore/hive-site.jceks'), 'owner': 'hive', 'group': 'hadoop', 'mode': 0640}
2019-04-10 12:02:31,145 - Writing File['/usr/hdp/current/hive-metastore/conf/conf.server/hive-site.jceks'] because contents don't match
2019-04-10 12:02:31,146 - XmlConfig['hive-site.xml'] {'group': 'hadoop', 'conf_dir': '/usr/hdp/current/hive-metastore/conf/conf.server', 'mode': 0600, 'configuration_attributes': {u'hidden': {u'javax.jdo.option.ConnectionPassword': u'HIVE_CLIENT,WEBHCAT_SERVER,HCAT,CONFIG_DOWNLOAD'}}, 'owner': 'hive', 'configurations': ...}
2019-04-10 12:02:31,159 - Generating config: /usr/hdp/current/hive-metastore/conf/conf.server/hive-site.xml
2019-04-10 12:02:31,159 - File['/usr/hdp/current/hive-metastore/conf/conf.server/hive-site.xml'] {'owner': 'hive', 'content': InlineTemplate(...), 'group': 'hadoop', 'mode': 0600, 'encoding': 'UTF-8'}
2019-04-10 12:02:31,315 - Writing File['/usr/hdp/current/hive-metastore/conf/conf.server/hive-site.xml'] because contents don't match
2019-04-10 12:02:31,316 - XmlConfig['hivemetastore-site.xml'] {'group': 'hadoop', 'conf_dir': '/usr/hdp/current/hive-metastore/conf/conf.server', 'mode': 0600, 'configuration_attributes': {}, 'owner': 'hive', 'configurations': {u'hive.service.metrics.hadoop2.component': u'hivemetastore', u'hive.metastore.metrics.enabled': u'true', u'hive.service.metrics.reporter': u'HADOOP2'}}
2019-04-10 12:02:31,327 - Generating config: /usr/hdp/current/hive-metastore/conf/conf.server/hivemetastore-site.xml
2019-04-10 12:02:31,327 - File['/usr/hdp/current/hive-metastore/conf/conf.server/hivemetastore-site.xml'] {'owner': 'hive', 'content': InlineTemplate(...), 'group': 'hadoop', 'mode': 0600, 'encoding': 'UTF-8'}
2019-04-10 12:02:31,337 - File['/usr/hdp/current/hive-metastore/conf/conf.server/hive-env.sh'] {'content': InlineTemplate(...), 'owner': 'hive', 'group': 'hadoop', 'mode': 0600}
2019-04-10 12:02:31,338 - Writing File['/usr/hdp/current/hive-metastore/conf/conf.server/hive-env.sh'] because contents don't match
2019-04-10 12:02:31,338 - Directory['/etc/security/limits.d'] {'owner': 'root', 'create_parents': True, 'group': 'root'}
2019-04-10 12:02:31,342 - File['/etc/security/limits.d/hive.conf'] {'content': Template('hive.conf.j2'), 'owner': 'root', 'group': 'root', 'mode': 0644}
2019-04-10 12:02:31,343 - File['/usr/lib/ambari-agent/DBConnectionVerification.jar'] {'content': DownloadSource('http://master.rh.bigdata.cluster:8080/resources/DBConnectionVerification.jar'), 'mode': 0644}
2019-04-10 12:02:31,343 - Not downloading the file from &lt;A href="http://master.rh.bigdata.cluster:8080/resources/DBConnectionVerification.jar" target="_blank"&gt;http://master.rh.bigdata.cluster:8080/resources/DBConnectionVerification.jar&lt;/A&gt;, because /var/lib/ambari-agent/tmp/DBConnectionVerification.jar already exists
2019-04-10 12:02:31,351 - File['/usr/hdp/current/hive-metastore/conf/conf.server/hadoop-metrics2-hivemetastore.properties'] {'content': Template('hadoop-metrics2-hivemetastore.properties.j2'), 'owner': 'hive', 'group': 'hadoop', 'mode': 0600}
2019-04-10 12:02:31,352 - File['/var/lib/ambari-agent/tmp/start_metastore_script'] {'content': StaticFile('startMetastore.sh'), 'mode': 0755}
2019-04-10 12:02:31,352 - Directory['/tmp/hive'] {'owner': 'hive', 'create_parents': True, 'mode': 0777}
2019-04-10 12:02:31,353 - HdfsResource[''] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/2.6.3.0-235/hadoop/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://master.rh.bigdata.cluster:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'hive', 'group': 'hadoop', 'hadoop_conf_dir': '/usr/hdp/2.6.3.0-235/hadoop/conf', 'type': 'directory', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp'], 'mode': 01777}
2019-04-10 12:02:31,359 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://master.rh.bigdata.cluster:50070/webhdfs/v1?op=GETFILESTATUS&amp;amp;user.name=hdfs'"'"' 1&amp;gt;/tmp/tmpBmqvPV 2&amp;gt;/tmp/tmp2O7YgS''] {'logoutput': None, 'quiet': False}
2019-04-10 12:02:31,479 - call returned (0, '')
2019-04-10 12:02:31,492 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://master.rh.bigdata.cluster:50070/webhdfs/v1?op=SETPERMISSION&amp;amp;user.name=hdfs&amp;amp;permission=1777'"'"' 1&amp;gt;/tmp/tmpIpw5Mo 2&amp;gt;/tmp/tmpeiNC2x''] {'logoutput': None, 'quiet': False}
2019-04-10 12:02:31,607 - call returned (0, '')
2019-04-10 12:02:31,617 - HdfsResource[''] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/2.6.3.0-235/hadoop/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://master.rh.bigdata.cluster:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'hive', 'group': 'hadoop', 'hadoop_conf_dir': '/usr/hdp/2.6.3.0-235/hadoop/conf', 'type': 'directory', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp'], 'mode': 0700}
2019-04-10 12:02:31,623 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://master.rh.bigdata.cluster:50070/webhdfs/v1?op=GETFILESTATUS&amp;amp;user.name=hdfs'"'"' 1&amp;gt;/tmp/tmpUJUmmq 2&amp;gt;/tmp/tmpziKJr3''] {'logoutput': None, 'quiet': False}
2019-04-10 12:02:31,748 - call returned (0, '')
2019-04-10 12:02:31,753 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://master.rh.bigdata.cluster:50070/webhdfs/v1?op=SETPERMISSION&amp;amp;user.name=hdfs&amp;amp;permission=700'"'"' 1&amp;gt;/tmp/tmp60LKkM 2&amp;gt;/tmp/tmp3Urul7''] {'logoutput': None, 'quiet': False}
2019-04-10 12:02:31,845 - call returned (0, '')
2019-04-10 12:02:31,849 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/2.6.3.0-235/hadoop/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://master.rh.bigdata.cluster:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/2.6.3.0-235/hadoop/conf', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
2019-04-10 12:02:31,850 - Directory['/var/run/hive'] {'owner': 'hive', 'create_parents': True, 'group': 'hadoop', 'mode': 0755, 'cd_access': 'a'}
2019-04-10 12:02:31,852 - Directory['/var/log/hive'] {'owner': 'hive', 'create_parents': True, 'group': 'hadoop', 'mode': 0755, 'cd_access': 'a'}
2019-04-10 12:02:31,853 - Directory['/var/lib/hive'] {'owner': 'hive', 'create_parents': True, 'group': 'hadoop', 'mode': 0755, 'cd_access': 'a'}
2019-04-10 12:02:31,855 - Execute['export HIVE_CONF_DIR=/usr/hdp/current/hive-metastore/conf/conf.server ; /usr/hdp/current/hive-server2-hive2/bin/schematool -initSchema -dbType mysql -userName hive -passWord [PROTECTED] -verbose'] {'not_if': u"ambari-sudo.sh su hive -l -s /bin/bash -c 'export HIVE_CONF_DIR=/usr/hdp/current/hive-metastore/conf/conf.server ; /usr/hdp/current/hive-server2-hive2/bin/schematool -info -dbType mysql -userName hive -passWord [PROTECTED] -verbose'", 'user': 'hive'}

Command failed after 1 tries
&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 May 2019 20:09:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238328#M200139</guid>
      <dc:creator>adil_bakkouri_g</dc:creator>
      <dc:date>2019-05-10T20:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238329#M200140</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer" href="http://adil%20bakkouri/" target="_blank"&gt;&lt;EM&gt;@Adil BAKKOURI&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You have a couple of issues, could you first align your MySQL server time to your local time.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you re-run this command&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;# Check your databases system time &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;mysql&amp;gt; select now(); 
+---------------------+ &lt;/EM&gt;
&lt;EM&gt;| now() &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;/EM&gt;
&lt;EM&gt;+---------------------+ &lt;/EM&gt;
&lt;EM&gt;| 2019-04-13 20:41:04 | &lt;/EM&gt;
&lt;EM&gt;+---------------------+&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;There are three places where the timezone might be set in MySQL in the file "&lt;STRONG&gt;my.cnf&lt;/STRONG&gt;" in the [&lt;STRONG&gt;mysqld&lt;/STRONG&gt;] section by setting&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;default-time-zone='+00:00'&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;To set it use either one:&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;mysql&amp;gt; SELECT @@session.time_zone; &lt;/EM&gt;
&lt;EM&gt;+---------------------+ &lt;/EM&gt;
&lt;EM&gt;| @@session.time_zone | &lt;/EM&gt;
&lt;EM&gt;+---------------------+ &lt;/EM&gt;
&lt;EM&gt;| SYSTEM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &lt;/EM&gt;
&lt;EM&gt;+---------------------+ &lt;/EM&gt;
&lt;EM&gt;1 row in set (0.00 sec)&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Now you can set it i.e&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;SET time_zone = 'Europe/Helsinki'; SET time_zone = "+00:00"; SET @@session.time_zone = "+00:00";&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;# Re-Install the mysql jdbc connector&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;yum install -y mysql-connector-java&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;# Setup Ambari&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;You may need to recreate the hive user and schema and then after a successful startup, you can drop the old user and schema.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Assuming your old hive user was [hiveold]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# New Hive user assuming the root user password is {&lt;!-- --&gt;&lt;STRONG&gt;welcome1&lt;/STRONG&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;mysql -u root -pwelcome1 &lt;/EM&gt;
&lt;EM&gt;create database hivedb; &lt;/EM&gt;
&lt;EM&gt;CREATE USER 'hive'@'%' IDENTIFIED BY '{hive_password}'; &lt;/EM&gt;
&lt;EM&gt;GRANT ALL PRIVILEGES ON *.* TO 'hive'@'localhost'; &lt;/EM&gt;
&lt;EM&gt;GRANT ALL PRIVILEGES ON hivedb.* TO 'hive'@'%'; &lt;/EM&gt;
&lt;EM&gt;GRANT ALL PRIVILEGES ON hivedb.* TO 'hive'@'localhost' WITH GRANT OPTION; &lt;/EM&gt;
&lt;EM&gt;GRANT ALL PRIVILEGES ON hivedb.* to 'hive'@'localhost' identified by '{hive_password}'; &lt;/EM&gt;
&lt;EM&gt;GRANT ALL PRIVILEGES ON hivedb.* to 'hive'@'{YOUR_HOST_FQDN}' identified by '{hive_password}'; &lt;/EM&gt;
&lt;EM&gt;GRANT ALL PRIVILEGES ON hivedb.* TO 'hive'@'{YOUR_HOST_FQDN}'; &lt;/EM&gt;
&lt;EM&gt;GRANT ALL PRIVILEGES ON hivedb.* TO 'hive'@'%' WITH GRANT OPTION; &lt;/EM&gt;
&lt;EM&gt;FLUSH PRIVILEGES; quit;&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;After all the above now try to configure hive through Ambari and after saving the configuration your hive should start normally.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please keep me posted.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 20:09:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238329#M200140</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-05-10T20:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238330#M200141</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;PRE&gt;mysql&amp;gt; SELECT table_name, table_schema, engine FROM information_schema.table&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="108633-1557491229076.png" style="width: 736px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14111iEBFD1A6DD8186FB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="108633-1557491229076.png" alt="108633-1557491229076.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="108585-1557491274782.png" style="width: 587px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14112i536E0BB079B1E3B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="108585-1557491274782.png" alt="108585-1557491274782.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 17 Aug 2019 23:00:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238330#M200141</guid>
      <dc:creator>adil_bakkouri_g</dc:creator>
      <dc:date>2019-08-17T23:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238331#M200142</link>
      <description>&lt;P&gt;Hi &lt;A rel="nofollow" href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;Geoffrey Shelton Okot&lt;/A&gt; ,&lt;BR /&gt;Sorry for not responding last few days,&lt;BR /&gt;I downgrade my Mysql 5.7 to 5.6 as the "&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="https://supportmatrix.hortonworks.com/" target="_blank"&gt;&lt;EM&gt;HXW support matrix&lt;/EM&gt;&lt;/A&gt; "  says, But still have the same error !! &lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 20:09:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238331#M200142</guid>
      <dc:creator>adil_bakkouri_g</dc:creator>
      <dc:date>2019-05-10T20:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238332#M200143</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://adil%20bakkouri/" target="_blank"&gt;&lt;EM&gt;@Adil BAKKOURI&lt;/EM&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;Any updates?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 20:09:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238332#M200143</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-05-10T20:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238333#M200144</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer nofollow noopener noreferrer" href="http://adil%20bakkouri/" target="_blank"&gt;&lt;EM&gt;@Adil BAKKOURI&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt; &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The below error tells me 2 things you are either using a MySQL server which is not supported or your jdbc driver version is not correct can you validate your Mysql database against the&lt;/EM&gt;&lt;A rel="noopener noreferrer noopener noreferrer nofollow noopener noreferrer" href="https://supportmatrix.hortonworks.com/" target="_blank"&gt;&lt;EM&gt; HXW support matrix&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2019-04-16 15:55:44,477 - Check db_connection_check was unsuccessful. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Exit code: 1. Message: Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Unable to connect to the DB. Please check DB connection properties. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Command failed after 1 &lt;/STRONG&gt;&lt;STRONG&gt;tries&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="108031-db-versions.png" style="width: 1022px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14110iE6C8CB3A4ECB422F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="108031-db-versions.png" alt="108031-db-versions.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I filtered the above for HDP 2.6&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 23:00:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238333#M200144</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-08-17T23:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238334#M200145</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://adil%20bakkouri/" target="_blank"&gt;&lt;EM&gt;@Adil BAKKOURI&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you firstly stop/ re-run ambari with the below  command&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;ambari-server stop&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Then&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;ambari-server start --skip-database-check&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Your Ambari database has many orphaned config please see this Jira how to clean you Ambari database though it would be faster to start with a clean installation but it good to get your hands dirty !!!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A rel="noopener noreferrer noopener noreferrer" href="https://issues.apache.org/jira/browse/AMBARI-20875" target="_blank"&gt;https://issues.apache.org/jira/browse/AMBARI-20875&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;CREATE TEMPORARY TABLE IF NOT EXISTS orphaned_configs AS (SELECT cc.config_id, cc.type_name, cc.version_tag FROM clusterconfig cc, clusterconfigmapping ccm WHERE cc.config_id NOT IN (SELECT scm.config_id FROM serviceconfigmapping scm) AND cc.type_name != 'cluster-env' AND cc.type_name = ccm.type_name AND cc.version_tag = ccm.version_tag);&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Followed by&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;DELETE FROM clusterconfigmapping WHERE EXISTS (SELECT 1 FROM orphaned_configs WHERE clusterconfigmapping.type_name = orphaned_configs.type_name AND clusterconfigmapping.version_tag = orphaned_configs.version_tag);&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Followed by&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;DELETE FROM clusterconfig WHERE clusterconfig.config_id IN (SELECT config_id FROM orphaned_configs);&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Followed by&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;SELECT * FROM orphaned_configs;&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Then &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;DROP TABLE orphaned_configs;&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Now  you Ambari db should be clean to proceed with the hive setup&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 20:09:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238334#M200145</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-05-10T20:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238335#M200146</link>
      <description>&lt;P&gt;hello,&lt;BR /&gt;Mysql-connector-java is updated&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107981-connector-update.jpg" style="width: 884px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14106iBC5298F741ACE7FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107981-connector-update.jpg" alt="107981-connector-update.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ambari-server driver and db :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107973-connector-ambari-server.jpg" style="width: 1873px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14107iAEFAC1B25B3F5DFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107973-connector-ambari-server.jpg" alt="107973-connector-ambari-server.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;still have the warning on my ambari-server start&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107982-connector-db-check.jpg" style="width: 1884px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14108iA941E69F0E661DD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107982-connector-db-check.jpg" alt="107982-connector-db-check.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;and finally the failed connection rom ambari :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107974-still-not.jpg" style="width: 981px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14109iCBF63E8F51A47BD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107974-still-not.jpg" alt="107974-still-not.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;and here's the stderr &amp;amp; stdout :&lt;/P&gt;&lt;P&gt;stderr:&lt;/P&gt;&lt;PRE&gt;&lt;OL&gt;&lt;LI&gt;2019-04-16 15:55:44,477 - Check db_connection_check was unsuccessful. Exit code: 1. Message: 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. ERROR: Unable to connect to the DB. Please check DB connection properties. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure &lt;/LI&gt;&lt;LI&gt;The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. &lt;/LI&gt;&lt;LI&gt;Traceback (most recent call last):  File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 530, in &amp;lt;module&amp;gt;    CheckHost().execute()  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 367, in execute    method(env)  File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 207, in actionexecute    raise Fail(error_message) resource_management.core.exceptions.Fail: Check db_connection_check was unsuccessful. Exit code: 1. Message: 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. ERROR: Unable to connect to the DB. Please check DB connection properties. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure &lt;/LI&gt;&lt;LI&gt;The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.&lt;/LI&gt;&lt;/OL&gt;&lt;/PRE&gt;&lt;P&gt;stdout:&lt;/P&gt;&lt;PRE&gt;&lt;OL&gt;&lt;LI&gt;2019-04-16 15:55:43,864 - Host checks started. 2019-04-16 15:55:43,864 - Check execute list: db_connection_check 2019-04-16 15:55:43,864 - DB connection check started. WARNING: File /var/lib/ambari-agent/cache/DBConnectionVerification.jar already exists, assuming it was downloaded before WARNING: File /var/lib/ambari-agent/cache/mysql-connector-java.jar already exists, assuming it was downloaded before 2019-04-16 15:55:43,866 - call['/usr/jdk64/jdk1.8.0_112/bin/java -cp /var/lib/ambari-agent/cache/DBConnectionVerification.jar:/var/lib/ambari-agent/cache/mysql-connector-java.jar -Djava.library.path=/var/lib/ambari-agent/cache org.apache.ambari.server.DBConnectionVerification "jdbc:mysql://master.rh.bigdata.cluster/hive" "hive" [PROTECTED] com.mysql.jdbc.Driver'] {} 2019-04-16 15:55:44,473 - call returned (1, "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.\nERROR: Unable to connect to the DB. Please check DB connection properties.\ncom.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure\n\nThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.") 2019-04-16 15:55:44,474 - DB connection check completed. 2019-04-16 15:55:44,476 - Host checks completed. 2019-04-16 15:55:44,477 - Check db_connection_check was unsuccessful. Exit code: 1. Message: 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. ERROR: Unable to connect to the DB. Please check DB connection properties. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure &lt;/LI&gt;&lt;LI&gt;The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. &lt;/LI&gt;&lt;LI&gt;Command failed after 1 tries&lt;/LI&gt;&lt;/OL&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 22:59:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238335#M200146</guid>
      <dc:creator>adil_bakkouri_g</dc:creator>
      <dc:date>2019-08-17T22:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238336#M200147</link>
      <description>&lt;P&gt;hello,&lt;BR /&gt;Mysql-connector-java is updated &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107981-connector-update.jpg" style="width: 884px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14102i4C76F0990D32816A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107981-connector-update.jpg" alt="107981-connector-update.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ambari-server driver and db :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107973-connector-ambari-server.jpg" style="width: 1873px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14103iF137B6D33417A976/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107973-connector-ambari-server.jpg" alt="107973-connector-ambari-server.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;still have the warning on my ambari-server start &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107982-connector-db-check.jpg" style="width: 1884px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14104iE6E2CCA49DB3EE7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107982-connector-db-check.jpg" alt="107982-connector-db-check.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;and finally the failed connection rom ambari : &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107974-still-not.jpg" style="width: 981px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14105i82C5BBB1291702F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107974-still-not.jpg" alt="107974-still-not.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;and here's the stderr &amp;amp; stdout :&lt;/P&gt;stderr:  &lt;PRE&gt;2019-04-16 15:55:44,477 - Check db_connection_check was unsuccessful. Exit code: 1. Message: 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. ERROR: Unable to connect to the DB. Please check DB connection properties. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
Traceback (most recent call last):  File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 530, in &amp;lt;module&amp;gt;    CheckHost().execute()  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 367, in execute    method(env)  File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 207, in actionexecute    raise Fail(error_message) resource_management.core.exceptions.Fail: Check db_connection_check was unsuccessful. Exit code: 1. Message: 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. ERROR: Unable to connect to the DB. Please check DB connection properties. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.&lt;/PRE&gt;stdout:  &lt;PRE&gt;2019-04-16 15:55:43,864 - Host checks started. 2019-04-16 15:55:43,864 - Check execute list: db_connection_check 2019-04-16 15:55:43,864 - DB connection check started. WARNING: File /var/lib/ambari-agent/cache/DBConnectionVerification.jar already exists, assuming it was downloaded before WARNING: File /var/lib/ambari-agent/cache/mysql-connector-java.jar already exists, assuming it was downloaded before 2019-04-16 15:55:43,866 - call['/usr/jdk64/jdk1.8.0_112/bin/java -cp /var/lib/ambari-agent/cache/DBConnectionVerification.jar:/var/lib/ambari-agent/cache/mysql-connector-java.jar -Djava.library.path=/var/lib/ambari-agent/cache org.apache.ambari.server.DBConnectionVerification "jdbc:mysql://master.rh.bigdata.cluster/hive" "hive" [PROTECTED] com.mysql.jdbc.Driver'] {} 2019-04-16 15:55:44,473 - call returned (1, "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.\nERROR: Unable to connect to the DB. Please check DB connection properties.\ncom.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure\n\nThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.") 2019-04-16 15:55:44,474 - DB connection check completed. 2019-04-16 15:55:44,476 - Host checks completed. 2019-04-16 15:55:44,477 - Check db_connection_check was unsuccessful. Exit code: 1. Message: 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. ERROR: Unable to connect to the DB. Please check DB connection properties. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
Command failed after 1 tries&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Aug 2019 22:59:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238336#M200147</guid>
      <dc:creator>adil_bakkouri_g</dc:creator>
      <dc:date>2019-08-17T22:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238337#M200148</link>
      <description>&lt;P&gt;hello,&lt;BR /&gt;Mysql-connector-java is updated&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107981-connector-update.jpg" style="width: 884px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14098iAE7BD3EBCD623E82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107981-connector-update.jpg" alt="107981-connector-update.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ambari-server driver and db :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107973-connector-ambari-server.jpg" style="width: 1873px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14099iC57852DC5125BF9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107973-connector-ambari-server.jpg" alt="107973-connector-ambari-server.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;still have the warning on my ambari-server start&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107982-connector-db-check.jpg" style="width: 1884px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14100i7BB008CA01363F4F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107982-connector-db-check.jpg" alt="107982-connector-db-check.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;and finally the failed connection rom ambari :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107974-still-not.jpg" style="width: 981px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14101i63015BB3140F7979/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107974-still-not.jpg" alt="107974-still-not.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;and here's the stderr &amp;amp; stdout :&lt;/P&gt;&lt;P&gt;stderr:&lt;/P&gt;&lt;PRE&gt;&lt;OL&gt;&lt;LI&gt;2019-04-16 15:55:44,477 - Check db_connection_check was unsuccessful. Exit code: 1. Message: 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. ERROR: Unable to connect to the DB. Please check DB connection properties. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure &lt;/LI&gt;&lt;LI&gt;The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. &lt;/LI&gt;&lt;LI&gt;Traceback (most recent call last):  File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 530, in &amp;lt;module&amp;gt;    CheckHost().execute()  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 367, in execute    method(env)  File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 207, in actionexecute    raise Fail(error_message) resource_management.core.exceptions.Fail: Check db_connection_check was unsuccessful. Exit code: 1. Message: 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. ERROR: Unable to connect to the DB. Please check DB connection properties. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure &lt;/LI&gt;&lt;LI&gt;The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.&lt;/LI&gt;&lt;/OL&gt;&lt;/PRE&gt;&lt;P&gt;stdout:&lt;/P&gt;&lt;PRE&gt;&lt;OL&gt;&lt;LI&gt;2019-04-16 15:55:43,864 - Host checks started. 2019-04-16 15:55:43,864 - Check execute list: db_connection_check 2019-04-16 15:55:43,864 - DB connection check started. WARNING: File /var/lib/ambari-agent/cache/DBConnectionVerification.jar already exists, assuming it was downloaded before WARNING: File /var/lib/ambari-agent/cache/mysql-connector-java.jar already exists, assuming it was downloaded before 2019-04-16 15:55:43,866 - call['/usr/jdk64/jdk1.8.0_112/bin/java -cp /var/lib/ambari-agent/cache/DBConnectionVerification.jar:/var/lib/ambari-agent/cache/mysql-connector-java.jar -Djava.library.path=/var/lib/ambari-agent/cache org.apache.ambari.server.DBConnectionVerification "jdbc:mysql://master.rh.bigdata.cluster/hive" "hive" [PROTECTED] com.mysql.jdbc.Driver'] {} 2019-04-16 15:55:44,473 - call returned (1, "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.\nERROR: Unable to connect to the DB. Please check DB connection properties.\ncom.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure\n\nThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.") 2019-04-16 15:55:44,474 - DB connection check completed. 2019-04-16 15:55:44,476 - Host checks completed. 2019-04-16 15:55:44,477 - Check db_connection_check was unsuccessful. Exit code: 1. Message: 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. ERROR: Unable to connect to the DB. Please check DB connection properties. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure &lt;/LI&gt;&lt;LI&gt;The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. &lt;/LI&gt;&lt;LI&gt;Command failed after 1 tries&lt;/LI&gt;&lt;/OL&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 22:59:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238337#M200148</guid>
      <dc:creator>adil_bakkouri_g</dc:creator>
      <dc:date>2019-08-17T22:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238338#M200149</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://adil%20bakkouri/" target="_blank"&gt;&lt;EM&gt;@Adil BAKKOURI&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt; &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The attached /var/log/ambari-server/ambari-server-check-database.log shows you are trying to connect to postgres which is the embedded database.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;My guess is your ambari Server is using the embedded postgres database and NOT MySQL so what you need to do after installing and configuring MySQL and Hive is&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Install the mySQL driver adapt the commands according to your OS&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;yum install -y mysql-connector-java&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Make the jars available for hive etc this won't effect the Postgres installation&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Now continue with the Ambari hive setup it should succeed NOW!!!!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 20:09:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238338#M200149</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-05-10T20:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238339#M200150</link>
      <description>&lt;P&gt;Hello &lt;A rel="user nofollow noopener noreferrer" href="https://community.hortonworks.com/users/1271/sheltong.html" target="_blank"&gt;Geoffrey Shelton Okot&lt;/A&gt;  ,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I tried with the "an existing Mysql database" but still have the same error, i also tried with the ip address and the localhost in the URL of the database but still nothing! here a screenshot of my conf&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107956-existing-db.jpg" style="width: 920px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14097i6982C240213DE779/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107956-existing-db.jpg" alt="107956-existing-db.jpg" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;PS : i cant see your screenshot can you upload it again ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 22:58:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238339#M200150</guid>
      <dc:creator>adil_bakkouri_g</dc:creator>
      <dc:date>2019-08-17T22:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238340#M200151</link>
      <description>&lt;P&gt;Hi  &lt;A rel="user nofollow noopener noreferrer" href="https://community.hortonworks.com/users/1271/sheltong.html" target="_blank"&gt;Geoffrey Shelton Okot&lt;/A&gt; ,&lt;BR /&gt;&lt;BR /&gt;first I want to thank you for your answer,&lt;BR /&gt;&lt;BR /&gt;I deleted hive and restarted all instalations and configurations as you said and the tuto explain but still the same error at the end.&lt;BR /&gt;&lt;BR /&gt;Here some screenshoots of the conf:&lt;BR /&gt;&lt;BR /&gt;mysql and systeme time : &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107943-time-mysql.jpg" style="width: 544px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14093iDE2CB4C3FEC84EEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107943-time-mysql.jpg" alt="107943-time-mysql.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;user and database on mysql :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107922-usr-database-mysql.jpg" style="width: 488px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14094i71968F72AE7347B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107922-usr-database-mysql.jpg" alt="107922-usr-database-mysql.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;hive conf on ambari : &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107953-hive-conf.jpg" style="width: 896px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14095i29A0909B91F88212/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107953-hive-conf.jpg" alt="107953-hive-conf.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I found this warning on &lt;STRONG&gt;/var/log/ambari-server/ambari-server-check-database.log&lt;/STRONG&gt; :&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107938-checkdb-mysql.jpg" style="width: 1890px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14096i432B50EEE4907AB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107938-checkdb-mysql.jpg" alt="107938-checkdb-mysql.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 22:58:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238340#M200151</guid>
      <dc:creator>adil_bakkouri_g</dc:creator>
      <dc:date>2019-08-17T22:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238341#M200152</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer nofollow noopener noreferrer" href="http://adil%20bakkouri/" target="_blank"&gt;&lt;EM&gt;@Adil BAKKOURI&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You have done everything correctly but you are not selecting the existing database you created &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; See attached screenshot all should work !!!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107954-mysql-hive-setup.png" style="width: 1087px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14092i2B607D253C3FBADB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107954-mysql-hive-setup.png" alt="107954-mysql-hive-setup.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please use the values of the hive DB created previously it should pick the correct URL and host !!&lt;/EM&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 22:58:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238341#M200152</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-08-17T22:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238342#M200153</link>
      <description>&lt;P&gt;hello,&lt;BR /&gt;Mysql-connector-java is updated&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107981-connector-update.jpg" style="width: 884px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14088iDC5571AF7020D5D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107981-connector-update.jpg" alt="107981-connector-update.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ambari-server driver and db :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107973-connector-ambari-server.jpg" style="width: 1873px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14089iB7166F02ED061697/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107973-connector-ambari-server.jpg" alt="107973-connector-ambari-server.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;still have the warning on my ambari-server start&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107982-connector-db-check.jpg" style="width: 1884px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14090i426F0464FB54A113/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107982-connector-db-check.jpg" alt="107982-connector-db-check.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;and finally the failed connection rom ambari :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107974-still-not.jpg" style="width: 981px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14091iE1C193FE39061013/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107974-still-not.jpg" alt="107974-still-not.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;and here's the stderr &amp;amp; stdout :&lt;/P&gt;&lt;P&gt;stderr:&lt;/P&gt;&lt;PRE&gt;&lt;OL&gt;&lt;LI&gt;2019-04-16 15:55:44,477 - Check db_connection_check was unsuccessful. Exit code: 1. Message: 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. ERROR: Unable to connect to the DB. Please check DB connection properties. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure &lt;/LI&gt;&lt;LI&gt;The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. &lt;/LI&gt;&lt;LI&gt;Traceback (most recent call last):  File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 530, in &amp;lt;module&amp;gt;    CheckHost().execute()  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 367, in execute    method(env)  File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 207, in actionexecute    raise Fail(error_message) resource_management.core.exceptions.Fail: Check db_connection_check was unsuccessful. Exit code: 1. Message: 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. ERROR: Unable to connect to the DB. Please check DB connection properties. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure &lt;/LI&gt;&lt;LI&gt;The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.&lt;/LI&gt;&lt;/OL&gt;&lt;/PRE&gt;&lt;P&gt;stdout:&lt;/P&gt;&lt;PRE&gt;&lt;OL&gt;&lt;LI&gt;2019-04-16 15:55:43,864 - Host checks started. 2019-04-16 15:55:43,864 - Check execute list: db_connection_check 2019-04-16 15:55:43,864 - DB connection check started. WARNING: File /var/lib/ambari-agent/cache/DBConnectionVerification.jar already exists, assuming it was downloaded before WARNING: File /var/lib/ambari-agent/cache/mysql-connector-java.jar already exists, assuming it was downloaded before 2019-04-16 15:55:43,866 - call['/usr/jdk64/jdk1.8.0_112/bin/java -cp /var/lib/ambari-agent/cache/DBConnectionVerification.jar:/var/lib/ambari-agent/cache/mysql-connector-java.jar -Djava.library.path=/var/lib/ambari-agent/cache org.apache.ambari.server.DBConnectionVerification "jdbc:mysql://master.rh.bigdata.cluster/hive" "hive" [PROTECTED] com.mysql.jdbc.Driver'] {} 2019-04-16 15:55:44,473 - call returned (1, "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.\nERROR: Unable to connect to the DB. Please check DB connection properties.\ncom.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure\n\nThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.") 2019-04-16 15:55:44,474 - DB connection check completed. 2019-04-16 15:55:44,476 - Host checks completed. 2019-04-16 15:55:44,477 - Check db_connection_check was unsuccessful. Exit code: 1. Message: 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. ERROR: Unable to connect to the DB. Please check DB connection properties. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure &lt;/LI&gt;&lt;LI&gt;The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. &lt;/LI&gt;&lt;LI&gt;Command failed after 1 tries&lt;/LI&gt;&lt;/OL&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 22:57:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238342#M200153</guid>
      <dc:creator>adil_bakkouri_g</dc:creator>
      <dc:date>2019-08-17T22:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238343#M200154</link>
      <description>&lt;P&gt;Hi  &lt;A rel="user nofollow noopener noreferrer" href="https://community.hortonworks.com/users/1271/sheltong.html" target="_blank"&gt;Geoffrey Shelton Okot&lt;/A&gt;, &lt;BR /&gt;&lt;BR /&gt;Yeah i tried with an existing database, didnt work too , i tried with the ip adress and with localhost too ! the error is the same !&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107955-existing-db.jpg" style="width: 920px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14087iB00E9AB201D14A3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107955-existing-db.jpg" alt="107955-existing-db.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;PS:i cant see ur screenshot&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 22:57:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238343#M200154</guid>
      <dc:creator>adil_bakkouri_g</dc:creator>
      <dc:date>2019-08-17T22:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238344#M200155</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://adil%20bakkouri/" target="_blank"&gt;&lt;EM&gt;@Adil BAKKOURI&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Have you seen my latest update?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 20:09:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238344#M200155</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-05-10T20:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238345#M200156</link>
      <description>&lt;P&gt;Hi  &lt;A rel="user nofollow noopener noreferrer" href="https://community.hortonworks.com/users/1271/sheltong.html" target="_blank"&gt;Geoffrey Shelton Okot&lt;/A&gt;, &lt;BR /&gt;&lt;BR /&gt;Yeah i tried with an existing database, didnt work too , i tried with the ip adress and with localhost too ! the error is the same !&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107955-existing-db.jpg" style="width: 920px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14086iA87E9076E848675A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107955-existing-db.jpg" alt="107955-existing-db.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;PS:i cant see ur screenshot&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 22:57:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238345#M200156</guid>
      <dc:creator>adil_bakkouri_g</dc:creator>
      <dc:date>2019-08-17T22:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238346#M200157</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://adil%20bakkouri/" target="_blank"&gt;&lt;EM&gt;@Adil BAKKOURI&lt;/EM&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;What's your OS and Version? I have done hundreds of HDP installation never got this blockage!! What's the current error?&lt;BR /&gt;Can you share the below logs?&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;hivemetastore.log hiveserver2.log&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;This should be a driver issue please share any error&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 20:09:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238346#M200157</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-05-10T20:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetastore &amp; Hiveserver2 Failed to start On HortonWorks Hadoop cluster ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238347#M200158</link>
      <description>&lt;P&gt;Hello yeah i tried all the solution. its weird !!! &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have this :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NAME="Ubuntu"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VERSION="16.04.6 LTS (Xenial Xerus)"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID=ubuntu&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID_LIKE=debian&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PRETTY_NAME="Ubuntu 16.04.6 LTS"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VERSION_ID="16.04"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HOME_URL="http://www.ubuntu.com/"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUPPORT_URL="http://help.ubuntu.com/"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VERSION_CODENAME=xenial&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UBUNTU_CODENAME=xenial&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I still get the same error i posted at first !&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 20:09:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetastore-Hiveserver2-Failed-to-start-On-HortonWorks/m-p/238347#M200158</guid>
      <dc:creator>adil_bakkouri_g</dc:creator>
      <dc:date>2019-05-10T20:09:57Z</dc:date>
    </item>
  </channel>
</rss>

