<?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: Oozie Spark action cant interact with Hive in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Spark-action-cant-interact-with-Hive/m-p/52431#M56933</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The --files tag is broken in 5.10.0 from Oozie because of &lt;A href="https://issues.apache.org/jira/browse/OOZIE-2547" target="_self"&gt;OOZIE-2547&lt;/A&gt;. It was fixed by&amp;nbsp;&lt;SPAN class="issue-link-key"&gt;&lt;A href="https://issues.apache.org/jira/browse/OOZIE-2806" target="_blank"&gt;OOZIE-2806&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/OOZIE-2802" target="_blank"&gt;&amp;nbsp;OOZIE-2802&lt;/A&gt;&amp;nbsp;which will be available in 5.10.1. Until that, a workaround is to put a copy of hive-site.xml into the Oozie Spark sharelib and add the hive sharelib to the spark action by defining oozie.action.sharelib.for.spark=spark,hive in the job.properties.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="issue-link-key"&gt;The Spark action work fine with --files tag in 5.9.x versions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="issue-link-key"&gt;The actual sharelib can be located by the oozie admin -shareliblist spark command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="issue-link-key"&gt;After putting the hive-site.xml to the folder the oozie admin -sharelibupdate command should be executed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="issue-link-key"&gt;I hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="issue-link-key"&gt;gp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2017 09:22:40 GMT</pubDate>
    <dc:creator>gezapeti</dc:creator>
    <dc:date>2017-03-21T09:22:40Z</dc:date>
    <item>
      <title>Oozie Spark action cant interact with Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Spark-action-cant-interact-with-Hive/m-p/52113#M56931</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have many Oozie workflows in Hue which has spark actions that interacts with Hive. We have added hive-site.xml to the workflows and everything worked fine with Cloudera 5.7.1. We have just updated to Cloudera 5.10 with the newest parcels and Oozie Spark actions can’t reach Hive warehouse anymore. We tried to add hive-site.xml to the workflows, set --files hdfs://&amp;lt;path to hive-site.xml&amp;gt; at the "Options list" and set hive.metastore.uris at the properties but nothing worked. If we start these spark apps with spark-submit or with spark shell it works fine. We also tried to reach Hive warehouse from Oozie Spark action at another total different cluster (with CDH 5.10) but this bug exists there too.&lt;/P&gt;&lt;P&gt;We are using a Postgres database for Hive metastore.&lt;/P&gt;&lt;P&gt;Can anybody create a working Oozie Spark action that reach Hive with &amp;nbsp;CDH&amp;nbsp;5.7 &amp;lt; ?&lt;/P&gt;&lt;P&gt;This issue comes up many times in the last few months here in Cloudera’s forum but there is no solution so any help will be very appreciated! Thanks&lt;/P&gt;&lt;PRE&gt;[main] WARN  org.apache.hadoop.hive.metastore.HiveMetaStore  - Retrying creating default database after error: Error creating transactional connection factory
javax.jdo.JDOFatalInternalException: Error creating transactional connection factory
	at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:587)
	at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:781)&lt;BR /&gt;....&lt;/PRE&gt;&lt;PRE&gt;Caused by: org.datanucleus.exceptions.NucleusException: Attempt to invoke the "BONECP" plugin to create a ConnectionPool gave an error : The specified datastore driver ("org.apache.derby.jdbc.EmbeddedDriver") was not found in the CLASSPATH. Please check your CLASSPATH specification, and the name of the driver.
	at org.datanucleus.store.rdbms.ConnectionFactoryImpl.generateDataSources(ConnectionFactoryImpl.java:237)
	at org.datanucleus.store.rdbms.ConnectionFactoryImpl.initialiseDataSources(ConnectionFactoryImpl.java:110)
	at org.datanucleus.store.rdbms.ConnectionFactoryImpl.&amp;lt;init&amp;gt;(ConnectionFactoryImpl.java:82)
	... 101 more
Caused by: org.datanucleus.store.rdbms.datasource.DatastoreDriverNotFoundException: The specified datastore driver ("org.apache.derby.jdbc.EmbeddedDriver") was not found in the CLASSPATH. Please check your CLASSPATH specification, and the name of the driver.
	at org.datanucleus.store.rdbms.datasource.AbstractDataSourceFactory.loadDriver(AbstractDataSourceFactory.java:58)
	at org.datanucleus.store.rdbms.datasource.BoneCPDataSourceFactory.makePooledDataSource(BoneCPDataSourceFactory.java:61)
	at org.datanucleus.store.rdbms.ConnectionFactoryImpl.generateDataSources(ConnectionFactoryImpl.java:217)
	... 103 more&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 13:47:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Spark-action-cant-interact-with-Hive/m-p/52113#M56931</guid>
      <dc:creator>zokis</dc:creator>
      <dc:date>2026-04-21T13:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Spark action cant interact with Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Spark-action-cant-interact-with-Hive/m-p/52161#M56932</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing the exact same problem while connecting to hive using a spark action with oozie. the spark program works perfectly when it is executed from edge node &amp;nbsp;with client mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Caused by: org.datanucleus.exceptions.NucleusException: Attempt to invoke the "BONECP" plugin to create a ConnectionPool gave an error : The specified datastore driver ("org.apache.derby.jdbc.EmbeddedDriver") was not found in the CLASSPATH. Please check your CLASSPATH specification, and the name of the driver.
	at org.datanucleus.store.rdbms.ConnectionFactoryImpl.generateDataSources(ConnectionFactoryImpl.java:237)
	at org.datanucleus.store.rdbms.ConnectionFactoryImpl.initialiseDataSources(ConnectionFactoryImpl.java:110)
	at org.datanucleus.store.rdbms.ConnectionFactoryImpl.&amp;lt;init&amp;gt;(ConnectionFactoryImpl.java:82)
	... 74 more
Caused by: org.datanucleus.store.rdbms.datasource.DatastoreDriverNotFoundException: The specified datastore driver ("org.apache.derby.jdbc.EmbeddedDriver") was not found in the CLASSPATH. Please check your CLASSPATH specification, and the name of the driver.
	at org.datanucleus.store.rdbms.datasource.AbstractDataSourceFactory.loadDriver(AbstractDataSourceFactory.java:58)
	at org.datanucleus.store.rdbms.datasource.BoneCPDataSourceFactory.makePooledDataSource(BoneCPDataSourceFactory.java:61)
	at org.datanucleus.store.rdbms.ConnectionFactoryImpl.generateDataSources(ConnectionFactoryImpl.java:217)
	... 76 more&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Mar 2017 13:55:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Spark-action-cant-interact-with-Hive/m-p/52161#M56932</guid>
      <dc:creator>ravisankar</dc:creator>
      <dc:date>2017-03-14T13:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Spark action cant interact with Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Spark-action-cant-interact-with-Hive/m-p/52431#M56933</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The --files tag is broken in 5.10.0 from Oozie because of &lt;A href="https://issues.apache.org/jira/browse/OOZIE-2547" target="_self"&gt;OOZIE-2547&lt;/A&gt;. It was fixed by&amp;nbsp;&lt;SPAN class="issue-link-key"&gt;&lt;A href="https://issues.apache.org/jira/browse/OOZIE-2806" target="_blank"&gt;OOZIE-2806&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/OOZIE-2802" target="_blank"&gt;&amp;nbsp;OOZIE-2802&lt;/A&gt;&amp;nbsp;which will be available in 5.10.1. Until that, a workaround is to put a copy of hive-site.xml into the Oozie Spark sharelib and add the hive sharelib to the spark action by defining oozie.action.sharelib.for.spark=spark,hive in the job.properties.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="issue-link-key"&gt;The Spark action work fine with --files tag in 5.9.x versions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="issue-link-key"&gt;The actual sharelib can be located by the oozie admin -shareliblist spark command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="issue-link-key"&gt;After putting the hive-site.xml to the folder the oozie admin -sharelibupdate command should be executed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="issue-link-key"&gt;I hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="issue-link-key"&gt;gp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 09:22:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Spark-action-cant-interact-with-Hive/m-p/52431#M56933</guid>
      <dc:creator>gezapeti</dc:creator>
      <dc:date>2017-03-21T09:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Spark action cant interact with Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Spark-action-cant-interact-with-Hive/m-p/52446#M56934</link>
      <description>&lt;P&gt;Thanks Gezapeti for the solution and the explanation, it's working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 14:30:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Spark-action-cant-interact-with-Hive/m-p/52446#M56934</guid>
      <dc:creator>zokis</dc:creator>
      <dc:date>2017-03-21T14:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Spark action cant interact with Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Spark-action-cant-interact-with-Hive/m-p/52450#M56935</link>
      <description>&lt;P&gt;Just don't forget that the hive-site.xml has to updated every time a hive config was changed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;After updating to a newer version, the workflow has to be updated to use the --files again.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 15:25:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Spark-action-cant-interact-with-Hive/m-p/52450#M56935</guid>
      <dc:creator>gezapeti</dc:creator>
      <dc:date>2017-03-21T15:25:58Z</dc:date>
    </item>
  </channel>
</rss>

