<?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: Accessing Hive cli is hung forever with java.sql.SQLException in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-Hive-cli-is-hung-forever-with-java-sql/m-p/108522#M16050</link>
    <description>&lt;P&gt;adding the client fixed the problem? &lt;A rel="user" href="https://community.cloudera.com/users/1321/venkatagangavarapu.html" nodeid="1321"&gt;@Venkata Sridhar Gangavarapu&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Jan 2016 04:51:11 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-01-23T04:51:11Z</dc:date>
    <item>
      <title>Accessing Hive cli is hung forever with java.sql.SQLException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-Hive-cli-is-hung-forever-with-java-sql/m-p/108518#M16046</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I could not access Hive CLI with below error messages&lt;/P&gt;&lt;P&gt;16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: Overriding datanucleus.identifierFactory value null from  jpox.properties with datanucleus1
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: Overriding javax.jdo.option.ConnectionURL value null from  jpox.properties with jdbc:derby:;databaseName=/var/lib/hive/metastore/metastore_db;create=true
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: Overriding javax.jdo.option.DetachAllOnCommit value null from  jpox.properties with true
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: Overriding hive.metastore.integral.jdo.pushdown value null from  jpox.properties with false
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: Overriding datanucleus.storeManagerType value null from  jpox.properties with rdbms
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: Overriding datanucleus.transactionIsolation value null from  jpox.properties with read-committed
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: Overriding javax.jdo.PersistenceManagerFactoryClass value null from  jpox.properties with org.datanucleus.api.jdo.JDOPersistenceManagerFactory
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: Overriding javax.jdo.option.Multithreaded value null from  jpox.properties with true
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: datanucleus.rdbms.useLegacyNativeValueStrategy = true
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: hive.metastore.integral.jdo.pushdown = false
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: datanucleus.autoStartMechanismMode = checked
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: javax.jdo.option.Multithreaded = true
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: datanucleus.identifierFactory = datanucleus1
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: datanucleus.transactionIsolation = read-committed
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: datanucleus.validateTables = false
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: javax.jdo.option.ConnectionURL = jdbc:derby:;databaseName=/var/lib/hive/metastore/metastore_db;create=true
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: javax.jdo.option.DetachAllOnCommit = true
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: javax.jdo.option.NonTransactionalRead = true
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: datanucleus.fixedDatastore = false
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: datanucleus.validateConstraints = false
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: javax.jdo.option.ConnectionDriverName = org.apache.derby.jdbc.EmbeddedDriver
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: javax.jdo.option.ConnectionUserName = APP
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: datanucleus.validateColumns = false
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: datanucleus.cache.level2 = false
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: datanucleus.plugin.pluginRegistryBundleCheck = LOG
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: datanucleus.cache.level2.type = none
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: javax.jdo.PersistenceManagerFactoryClass = org.datanucleus.api.jdo.JDOPersistenceManagerFactory
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: datanucleus.autoCreateSchema = true
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: datanucleus.storeManagerType = rdbms
16/01/22 12:59:03 [main]: DEBUG metastore.ObjectStore: datanucleus.connectionPoolingType = BONECP
16/01/22 12:59:03 [main]: INFO metastore.ObjectStore: ObjectStore, initialize called
16/01/22 12:59:04 [main]: DEBUG bonecp.BoneCPDataSource: JDBC URL = jdbc:derby:;databaseName=/var/lib/hive/metastore/metastore_db;create=true, Username = APP, partitions = 1, max (per partition) = 10, min (per partition) = 0, idle max age = 60 min, idle test period = 240 min, strategy = DEFAULT
16/01/22 12:59:04 [BoneCP-pool-watch-thread]: ERROR bonecp.PoolWatchThread: Error in trying to obtain a connection. Retrying in 7000ms
java.sql.SQLException: A read-only user or a user in a read-only database is not permitted to disable read-only mode on a connection.
        at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
        at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
        at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
        at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
        at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
        at org.apache.derby.impl.jdbc.EmbedConnection.setReadOnly(Unknown Source)
        at com.jolbox.bonecp.ConnectionHandle.setReadOnly(ConnectionHandle.java:1324)
        at com.jolbox.bonecp.ConnectionHandle.&amp;lt;init&amp;gt;(ConnectionHandle.java:262)
        at com.jolbox.bonecp.PoolWatchThread.fillConnections(PoolWatchThread.java:115)
        at com.jolbox.bonecp.PoolWatchThread.run(PoolWatchThread.java:82)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: A read-only user or a user in a read-only database is not permitted to disable read-only mode on a connection.
        at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
        at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
        ... 13 more
Caused by: ERROR 25505: A read-only user or a user in a read-only database is not permitted to disable read-only mode on a connection.&lt;/P&gt;&lt;P&gt;We are using Mysql for metastore but I see JDBC URl with Derby database. I am not sure if it can be ignored but highlighting if it gives any hint about the issue.&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:59:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-Hive-cli-is-hung-forever-with-java-sql/m-p/108518#M16046</guid>
      <dc:creator>venkata_gangava</dc:creator>
      <dc:date>2022-09-16T09:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Hive cli is hung forever with java.sql.SQLException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-Hive-cli-is-hung-forever-with-java-sql/m-p/108519#M16047</link>
      <description>&lt;P&gt;Hey, I found the root cause for the problem. hive-site.xml file is not getting updated by Ambari for some reason but it is updated on another server where hive client is installed. I have copied the file to server where Hive master servcies are running and it works fine now.&lt;/P&gt;&lt;P&gt;Now, another problem. Why is Ambari not updating the hive-site.xml file on master server?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 04:16:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-Hive-cli-is-hung-forever-with-java-sql/m-p/108519#M16047</guid>
      <dc:creator>venkata_gangava</dc:creator>
      <dc:date>2016-01-23T04:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Hive cli is hung forever with java.sql.SQLException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-Hive-cli-is-hung-forever-with-java-sql/m-p/108520#M16048</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1321/venkatagangavarapu.html" nodeid="1321"&gt;@Venkata Sridhar Gangavarapu&lt;/A&gt;&lt;P&gt;go to the problematic node and install hive client via Ambari.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 04:25:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-Hive-cli-is-hung-forever-with-java-sql/m-p/108520#M16048</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-23T04:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Hive cli is hung forever with java.sql.SQLException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-Hive-cli-is-hung-forever-with-java-sql/m-p/108521#M16049</link>
      <description>&lt;P&gt;Done and it addressed the problem. I somehow missed it but thanks once again Artem Ervits..!!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 04:50:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-Hive-cli-is-hung-forever-with-java-sql/m-p/108521#M16049</guid>
      <dc:creator>venkata_gangava</dc:creator>
      <dc:date>2016-01-23T04:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Hive cli is hung forever with java.sql.SQLException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-Hive-cli-is-hung-forever-with-java-sql/m-p/108522#M16050</link>
      <description>&lt;P&gt;adding the client fixed the problem? &lt;A rel="user" href="https://community.cloudera.com/users/1321/venkatagangavarapu.html" nodeid="1321"&gt;@Venkata Sridhar Gangavarapu&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 04:51:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-Hive-cli-is-hung-forever-with-java-sql/m-p/108522#M16050</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-23T04:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Hive cli is hung forever with java.sql.SQLException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-Hive-cli-is-hung-forever-with-java-sql/m-p/108523#M16051</link>
      <description>&lt;P&gt;Yes..!!&lt;/P&gt;&lt;P&gt;It solved the problem&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 04:53:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-Hive-cli-is-hung-forever-with-java-sql/m-p/108523#M16051</guid>
      <dc:creator>venkata_gangava</dc:creator>
      <dc:date>2016-01-23T04:53:27Z</dc:date>
    </item>
  </channel>
</rss>

