<?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 Hive issue. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-issue/m-p/128576#M39254</link>
    <description>&lt;P&gt;Hdp version:-HDP 2.4.2.0-258.&lt;/P&gt;&lt;P&gt;I am running follwing command :-&lt;/P&gt;&lt;P&gt;hive --service metatool -listFSRoot  &lt;/P&gt;&lt;P&gt;but getting error:-&lt;/P&gt;&lt;P&gt;ava.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://hdp-test/hive?createDatabaseIfNotExist=true, username = hive. Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: ------&lt;/P&gt;&lt;P&gt;java.sql.SQLException: Access denied for user 'hive'@'hdp-test' (using password: YES)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)&lt;/P&gt;&lt;P&gt;and also :-&lt;/P&gt;&lt;P&gt;/usr/hdp/2.4.2.0-258/hive/bin/schematool -dbType mysql -info&lt;/P&gt;&lt;P&gt;WARNING: Use "yarn jar" to launch YARN applications.&lt;/P&gt;&lt;P&gt;Metastore connection URL: jdbc:mysql://hdp-test/hive?createDatabaseIfNotExist=true&lt;/P&gt;&lt;P&gt;Metastore Connection Driver : com.mysql.jdbc.Driver&lt;/P&gt;&lt;P&gt;Metastore connection User: hive&lt;/P&gt;&lt;P&gt;org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.&lt;/P&gt;&lt;P&gt;*** schemaTool failed ***&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2016 16:59:20 GMT</pubDate>
    <dc:creator>ashneesharma88</dc:creator>
    <dc:date>2016-08-31T16:59:20Z</dc:date>
    <item>
      <title>Hive issue.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-issue/m-p/128576#M39254</link>
      <description>&lt;P&gt;Hdp version:-HDP 2.4.2.0-258.&lt;/P&gt;&lt;P&gt;I am running follwing command :-&lt;/P&gt;&lt;P&gt;hive --service metatool -listFSRoot  &lt;/P&gt;&lt;P&gt;but getting error:-&lt;/P&gt;&lt;P&gt;ava.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://hdp-test/hive?createDatabaseIfNotExist=true, username = hive. Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: ------&lt;/P&gt;&lt;P&gt;java.sql.SQLException: Access denied for user 'hive'@'hdp-test' (using password: YES)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)&lt;/P&gt;&lt;P&gt;and also :-&lt;/P&gt;&lt;P&gt;/usr/hdp/2.4.2.0-258/hive/bin/schematool -dbType mysql -info&lt;/P&gt;&lt;P&gt;WARNING: Use "yarn jar" to launch YARN applications.&lt;/P&gt;&lt;P&gt;Metastore connection URL: jdbc:mysql://hdp-test/hive?createDatabaseIfNotExist=true&lt;/P&gt;&lt;P&gt;Metastore Connection Driver : com.mysql.jdbc.Driver&lt;/P&gt;&lt;P&gt;Metastore connection User: hive&lt;/P&gt;&lt;P&gt;org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.&lt;/P&gt;&lt;P&gt;*** schemaTool failed ***&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 16:59:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-issue/m-p/128576#M39254</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2016-08-31T16:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hive issue.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-issue/m-p/128577#M39255</link>
      <description>&lt;P&gt;This issue is resolved after exporting the HIVE home directory:-&lt;/P&gt;&lt;P&gt;export HIVE_CONF_DIR=/etc/hive/2.4.2.0-258/0/conf&lt;/P&gt;&lt;P&gt;After exporting the directory i got following output&lt;/P&gt;&lt;P&gt;Initializing HiveMetaTool..&lt;/P&gt;&lt;P&gt;16/09/01 06:53:54 INFO metastore.ObjectStore: ObjectStore, initialize called&lt;/P&gt;&lt;P&gt;16/09/01 06:53:54 INFO DataNucleus.Persistence: Property hive.metastore.integral.jdo.pushdown unknown - will be ignored&lt;/P&gt;&lt;P&gt;16/09/01 06:53:54 INFO DataNucleus.Persistence: Property datanucleus.cache.level2 unknown - will be ignored&lt;/P&gt;&lt;P&gt;16/09/01 06:53:55 INFO metastore.ObjectStore: Setting MetaStore object pin classes with hive.metastore.cache.pinobjtypes="Table,Database,Type,FieldSchema,Order"&lt;/P&gt;&lt;P&gt;16/09/01 06:53:56 INFO DataNucleus.Datastore: The class "org.apache.hadoop.hive.metastore.model.MFieldSchema" is tagged as "embedded-only" so does not have its own datastore table.&lt;/P&gt;&lt;P&gt;16/09/01 06:53:56 INFO DataNucleus.Datastore: The class "org.apache.hadoop.hive.metastore.model.MOrder" is tagged as "embedded-only" so does not have its own datastore table.&lt;/P&gt;&lt;P&gt;16/09/01 06:53:56 INFO DataNucleus.Datastore: The class "org.apache.hadoop.hive.metastore.model.MFieldSchema" is tagged as "embedded-only" so does not have its own datastore table.&lt;/P&gt;&lt;P&gt;16/09/01 06:53:56 INFO DataNucleus.Datastore: The class "org.apache.hadoop.hive.metastore.model.MOrder" is tagged as "embedded-only" so does not have its own datastore table.&lt;/P&gt;&lt;P&gt;16/09/01 06:53:56 INFO DataNucleus.Query: Reading in results for query "org.datanucleus.store.rdbms.query.SQLQuery@0" since the connection used is closing&lt;/P&gt;&lt;P&gt;16/09/01 06:53:56 INFO metastore.MetaStoreDirectSql: Using direct SQL, underlying DB is MYSQL&lt;/P&gt;&lt;P&gt;16/09/01 06:53:56 INFO metastore.ObjectStore: Initialized ObjectStore&lt;/P&gt;&lt;P&gt;Listing FS Roots..&lt;/P&gt;&lt;P&gt;hdfs://hdptest/db_new.db&lt;/P&gt;&lt;P&gt;hdfs://hdptest/db_new1.db&lt;/P&gt;&lt;P&gt;hdfs://hdptest/demo_database.db&lt;/P&gt;&lt;P&gt;And for second command output is :-&lt;/P&gt;&lt;P&gt;/usr/hdp/2.4.2.0-258/hive/bin/schematool -dbType mysql -info&lt;/P&gt;&lt;P&gt;WARNING: Use "yarn jar" to launch YARN applications.&lt;/P&gt;&lt;P&gt;Metastore connection URL: jdbc:mysql://hdp-test/hive?createDatabaseIfNotExist=true&lt;/P&gt;&lt;P&gt;Metastore Connection Driver : com.mysql.jdbc.Driver&lt;/P&gt;&lt;P&gt;Metastore connection User: hive&lt;/P&gt;&lt;P&gt;Hive distribution version: 1.2.1000&lt;/P&gt;&lt;P&gt;Metastore schema version: 1.2.1000&lt;/P&gt;&lt;P&gt;schemaTool completed&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 13:55:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-issue/m-p/128577#M39255</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2016-09-01T13:55:36Z</dc:date>
    </item>
  </channel>
</rss>

