<?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 hive action failing with NullPointer exception in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-action-failing-with-NullPointer-exception/m-p/124290#M22651</link>
    <description>&lt;P&gt;Please post your workflow and ditectory tree. I have a sample app using hcatalog with pig, difference for you would be to replace pig with hive. Pleas make sure you have hive-site.xml and proper permissions on the files. &lt;A href="https://github.com/dbist/oozie/tree/master/apps/hcatalog" target="_blank"&gt;https://github.com/dbist/oozie/tree/master/apps/hcatalog&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 13 Mar 2016 01:20:29 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-03-13T01:20:29Z</dc:date>
    <item>
      <title>Oozie hive action failing with NullPointer exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-action-failing-with-NullPointer-exception/m-p/124289#M22650</link>
      <description>&lt;P&gt;Facing this issue while running Oozie hive action, though same sql  query works fine from hive shell.&lt;/P&gt;&lt;P&gt;HDP version : 2.3.4.0&lt;/P&gt;&lt;PRE&gt;Vertex killed, vertexName=Reducer 2, vertexId=vertex_1457421589107_0056_1_01, diagnostics=[Vertex received Kill in INITED state., Vertex vertex_1457421589107_0056_1_01 [Reducer 2] killed/failed due to:OTHER_VERTEX_FAILURE]
Vertex killed, vertexName=Reducer 3, vertexId=vertex_1457421589107_0056_1_02, diagnostics=[Vertex received Kill in INITED state., Vertex vertex_1457421589107_0056_1_02 [Reducer 3] killed/failed due to:OTHER_VERTEX_FAILURE]
DAG did not succeed due to VERTEX_FAILURE. failedVertices:1 killedVertices:2
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask. Vertex failed, vertexName=Map 1, vertexId=vertex_1457421589107_0056_1_00, diagnostics=[Vertex vertex_1457421589107_0056_1_00 [Map 1] killed/failed due to:ROOT_INPUT_INIT_FAILURE, Vertex Input: employee initializer failed, vertex=vertex_1457421589107_0056_1_00 [Map 1], java.lang.RuntimeException: java.lang.NullPointerException
	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:208)
	at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:320)
	at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:295)
	at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:160)
	at org.apache.hadoop.hbase.client.ClientScanner.&amp;lt;init&amp;gt;(ClientScanner.java:155)
	at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:821)
	at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:193)
	at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:89)
	at org.apache.hadoop.hbase.client.MetaScanner.allTableRegions(MetaScanner.java:324)
	at org.apache.hadoop.hbase.client.HRegionLocator.getAllRegionLocations(HRegionLocator.java:88)
	at org.apache.hadoop.hbase.util.RegionSizeCalculator.init(RegionSizeCalculator.java:94)
	at org.apache.hadoop.hbase.util.RegionSizeCalculator.&amp;lt;init&amp;gt;(RegionSizeCalculator.java:81)
	at org.apache.hadoop.hbase.mapreduce.TableInputFormatBase.getSplits(TableInputFormatBase.java:256)
	at org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat.getSplitsInternal(HiveHBaseTableInputFormat.java:502)
	at org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat.getSplits(HiveHBaseTableInputFormat.java:434)
	at org.apache.hadoop.hive.ql.io.HiveInputFormat.addSplitsForGroup(HiveInputFormat.java:305)
	at org.apache.hadoop.hive.ql.io.HiveInputFormat.getSplits(HiveInputFormat.java:407)
	at org.apache.hadoop.hive.ql.exec.tez.HiveSplitGenerator.initialize(HiveSplitGenerator.java:155)
	at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable$1.run(RootInputInitializerManager.java:255)
	at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable$1.run(RootInputInitializerManager.java:248)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
	at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable.call(RootInputInitializerManager.java:248)
	at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable.call(RootInputInitializerManager.java:235)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
	at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.getMetaReplicaNodes(ZooKeeperWatcher.java:399)
	at org.apache.hadoop.hbase.zookeeper.MetaTableLocator.blockUntilAvailable(MetaTableLocator.java:552)
	at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getMetaRegionLocation(ZooKeeperRegistry.java:61)
	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateMeta(ConnectionManager.java:1191)
	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1158)
	at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:300)
	at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:151)
	at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:59)
	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200)
	... 28 more
]Vertex killed, vertexName=Reducer 2, vertexId=vertex_1457421589107_0056_1_01, diagnostics=[Vertex received Kill in INITED state., Vertex vertex_1457421589107_0056_1_01 [Reducer 2] killed/failed due to:OTHER_VERTEX_FAILURE]Vertex killed, vertexName=Reducer 3, vertexId=vertex_1457421589107_0056_1_02, diagnostics=[Vertex received Kill in INITED state., Vertex vertex_1457421589107_0056_1_02 [Reducer 3] killed/failed due to:OTHER_VERTEX_FAILURE]DAG did not succeed due to VERTEX_FAILURE. failedVertices:1 killedVertices:2
Intercepting System.exit(2)
Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [2]&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Mar 2016 00:51:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-action-failing-with-NullPointer-exception/m-p/124289#M22650</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-03-13T00:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie hive action failing with NullPointer exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-action-failing-with-NullPointer-exception/m-p/124290#M22651</link>
      <description>&lt;P&gt;Please post your workflow and ditectory tree. I have a sample app using hcatalog with pig, difference for you would be to replace pig with hive. Pleas make sure you have hive-site.xml and proper permissions on the files. &lt;A href="https://github.com/dbist/oozie/tree/master/apps/hcatalog" target="_blank"&gt;https://github.com/dbist/oozie/tree/master/apps/hcatalog&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2016 01:20:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-action-failing-with-NullPointer-exception/m-p/124290#M22651</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-03-13T01:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie hive action failing with NullPointer exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-action-failing-with-NullPointer-exception/m-p/124291#M22652</link>
      <description>&lt;P&gt;I am wondering if it could be be cause of Hbase configuration not being available in the HS2 oozie action.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 00:34:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-action-failing-with-NullPointer-exception/m-p/124291#M22652</guid>
      <dc:creator>thejas</dc:creator>
      <dc:date>2016-03-15T00:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie hive action failing with NullPointer exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-action-failing-with-NullPointer-exception/m-p/124292#M22653</link>
      <description>&lt;P&gt;I also faced the same exception and it worked after I added hbase-site.xml to the oozie hive sharelib path (/user/oozie/share/lib/lib_&amp;lt;&amp;gt;/hive)&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 01:55:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-action-failing-with-NullPointer-exception/m-p/124292#M22653</guid>
      <dc:creator>ArtiW</dc:creator>
      <dc:date>2016-03-24T01:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie hive action failing with NullPointer exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-action-failing-with-NullPointer-exception/m-p/124293#M22654</link>
      <description>&lt;P&gt;You can do what &lt;A rel="user" href="https://community.cloudera.com/users/503/awadhwani.html" nodeid="503"&gt;@Arti Wadhwani&lt;/A&gt; said or you can add hbase-site.xml under &amp;lt;job-xml&amp;gt; in your oozie workflow.xml&lt;/P&gt;&lt;P&gt;Below is the example snippet:&lt;/P&gt;&lt;PRE&gt;    &amp;lt;start to="hive-node"/&amp;gt;
    &amp;lt;action name="hive-node" cred="my_auth,hbaseauth"&amp;gt;
        &amp;lt;hive xmlns="uri:oozie:hive-action:0.2"&amp;gt;
            &amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;
            &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;
            &amp;lt;prepare&amp;gt;
                &amp;lt;delete path="${nameNode}/user/${wf:user()}/${examplesRoot}/output-data/hive"/&amp;gt;
                &amp;lt;mkdir path="${nameNode}/user/${wf:user()}/${examplesRoot}/output-data"/&amp;gt;
            &amp;lt;/prepare&amp;gt;
        &amp;lt;job-xml&amp;gt;hbase-site.xml&amp;lt;/job-xml&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 03 Apr 2016 14:50:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-action-failing-with-NullPointer-exception/m-p/124293#M22654</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-04-03T14:50:55Z</dc:date>
    </item>
  </channel>
</rss>

