<?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 queries without from clause seem to fail when Atlas HiveHook is enabled in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-queries-without-from-clause-seem-to-fail-when-Atlas/m-p/114763#M77557</link>
    <description>&lt;P&gt;When testing Hive queries in HDP 2.4.0 Sandbox, I noticed that simple queries without a from clause fail.&lt;/P&gt;&lt;P&gt;In the Ambari Hive View, they fail with "Error while processing statement: FAILED: Hive Internal Error: java.lang.NullPointerException(null)"&lt;/P&gt;&lt;P&gt;On the command line, they fail with the following stacktrace: &lt;/P&gt;&lt;PRE&gt;hive&amp;gt; SELECT 42;
FAILED: Hive Internal Error: java.lang.NullPointerException(null)
java.lang.NullPointerException
	at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerDatabase(HiveMetaStoreBridge.java:109)
	at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerTable(HiveMetaStoreBridge.java:270)
	at org.apache.atlas.hive.hook.HiveHook.registerProcess(HiveHook.java:321)
	at org.apache.atlas.hive.hook.HiveHook.fireAndForget(HiveHook.java:214)
	at org.apache.atlas.hive.hook.HiveHook.run(HiveHook.java:172)
	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1585)
	at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1254)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1118)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1108)
	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:216)
	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:168)
	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:379)
	at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:739)
	at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:684)
	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:624)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
&lt;/PRE&gt;&lt;P&gt;When removing the "org.apache.atlas.hive.hook.HiveHook" from "hive.exec.post.hooks" this query works:&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; select 42;
OK
42
Time taken: 6.483 seconds, Fetched: 1 row(s)
&lt;/PRE&gt;</description>
    <pubDate>Tue, 08 Mar 2016 02:15:21 GMT</pubDate>
    <dc:creator>haeusler</dc:creator>
    <dc:date>2016-03-08T02:15:21Z</dc:date>
    <item>
      <title>Hive queries without from clause seem to fail when Atlas HiveHook is enabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-queries-without-from-clause-seem-to-fail-when-Atlas/m-p/114763#M77557</link>
      <description>&lt;P&gt;When testing Hive queries in HDP 2.4.0 Sandbox, I noticed that simple queries without a from clause fail.&lt;/P&gt;&lt;P&gt;In the Ambari Hive View, they fail with "Error while processing statement: FAILED: Hive Internal Error: java.lang.NullPointerException(null)"&lt;/P&gt;&lt;P&gt;On the command line, they fail with the following stacktrace: &lt;/P&gt;&lt;PRE&gt;hive&amp;gt; SELECT 42;
FAILED: Hive Internal Error: java.lang.NullPointerException(null)
java.lang.NullPointerException
	at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerDatabase(HiveMetaStoreBridge.java:109)
	at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerTable(HiveMetaStoreBridge.java:270)
	at org.apache.atlas.hive.hook.HiveHook.registerProcess(HiveHook.java:321)
	at org.apache.atlas.hive.hook.HiveHook.fireAndForget(HiveHook.java:214)
	at org.apache.atlas.hive.hook.HiveHook.run(HiveHook.java:172)
	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1585)
	at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1254)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1118)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1108)
	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:216)
	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:168)
	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:379)
	at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:739)
	at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:684)
	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:624)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
&lt;/PRE&gt;&lt;P&gt;When removing the "org.apache.atlas.hive.hook.HiveHook" from "hive.exec.post.hooks" this query works:&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; select 42;
OK
42
Time taken: 6.483 seconds, Fetched: 1 row(s)
&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Mar 2016 02:15:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-queries-without-from-clause-seem-to-fail-when-Atlas/m-p/114763#M77557</guid>
      <dc:creator>haeusler</dc:creator>
      <dc:date>2016-03-08T02:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hive queries without from clause seem to fail when Atlas HiveHook is enabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-queries-without-from-clause-seem-to-fail-when-Atlas/m-p/114764#M77558</link>
      <description>&lt;P&gt;Thats an issue. Created &lt;A href="https://issues.apache.org/jira/browse/ATLAS-556" target="_blank"&gt;https://issues.apache.org/jira/browse/ATLAS-556&lt;/A&gt; to track this. Thanks for reporting it&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 14:03:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-queries-without-from-clause-seem-to-fail-when-Atlas/m-p/114764#M77558</guid>
      <dc:creator>shwethags</dc:creator>
      <dc:date>2016-03-09T14:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hive queries without from clause seem to fail when Atlas HiveHook is enabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-queries-without-from-clause-seem-to-fail-when-Atlas/m-p/114765#M77559</link>
      <description>&lt;P&gt;I solved it by editing the /etc/hive/conf/hive-site.xml and changing the line&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;org.apache.hadoop.hive.ql.hooks.ATSHook, org.apache.atlas.hive.hook.HiveHook&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;onto&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;org.apache.hadoop.hive.ql.hooks.ATSHook&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;(thus, removing the unnecessaty HiveHook)&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 18:38:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-queries-without-from-clause-seem-to-fail-when-Atlas/m-p/114765#M77559</guid>
      <dc:creator>ibobak</dc:creator>
      <dc:date>2016-04-07T18:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hive queries without from clause seem to fail when Atlas HiveHook is enabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-queries-without-from-clause-seem-to-fail-when-Atlas/m-p/114766#M77560</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2882/michaelhaeusler.html" nodeid="2882"&gt;@Michael Häusler&lt;/A&gt;&lt;P&gt;Do you still get the error while running hive queries without a tablename.&lt;/P&gt;&lt;P&gt;I tried reproducing this error with following versions of software:&lt;/P&gt;&lt;P&gt;atlas-0.7 &lt;/P&gt;&lt;P&gt;hive-1.2.1 &lt;/P&gt;&lt;P&gt;hadoop-2.7.2&lt;/P&gt;&lt;P&gt;The query executed successfully without any exception.&lt;/P&gt;&lt;P&gt;It seems the issue has been fixed in one of the previous patches for Atlas.&lt;/P&gt;&lt;P&gt;Please reply if you still get the error.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 18:19:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-queries-without-from-clause-seem-to-fail-when-Atlas/m-p/114766#M77560</guid>
      <dc:creator>visharma</dc:creator>
      <dc:date>2016-04-28T18:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hive queries without from clause seem to fail when Atlas HiveHook is enabled</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-queries-without-from-clause-seem-to-fail-when-Atlas/m-p/114767#M77561</link>
      <description>&lt;P&gt;I tried each and every possible solution mentioned in this forum and in stackoverflow, but it did not resolve my issue.&lt;/P&gt;&lt;P&gt;Finally, I resolved it by copying all the jars in &amp;lt;atlas package&amp;gt;/hook/hive to lib (create a new lib folder at job.properties level) folder of my oozie workflow&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 03:06:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-queries-without-from-clause-seem-to-fail-when-Atlas/m-p/114767#M77561</guid>
      <dc:creator>bigdataam09</dc:creator>
      <dc:date>2016-05-27T03:06:56Z</dc:date>
    </item>
  </channel>
</rss>

