[ https://issues.apache.org/jira/browse/ATLAS-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15261986#comment-15261986 ]
Vimal Sharma commented on ATLAS-556: ------------------------------------ I tried reproducing this issue with the following versions: atlas-0.7 hive-1.2.1 hadoop-2.7.2 It seems that the issue has been fixed in a previous patch of Atlas. I have requested Michael(reporter of the issue) to comment if he still gets an error. > Hive hook fails for select without table > ---------------------------------------- > > Key: ATLAS-556 > URL: https://issues.apache.org/jira/browse/ATLAS-556 > Project: Atlas > Issue Type: Bug > Reporter: Shwetha G S > Assignee: Vimal Sharma > Fix For: 0.7-incubating > > > Reported from: From > https://community.hortonworks.com/questions/21766/hive-queries-without-from-clause-seem-to-fail-when.html > Command: select 42 > {noformat} > 2016-03-09 11:30:05,669 WARN - [main:] ~ Failed to get database > _dummy_database, returning NoSuchObjectException (ObjectStore:568) > FAILED: Hive Internal Error: java.lang.NullPointerException(null) > java.lang.NullPointerException > at > org.apache.atlas.hive.hook.HiveHook.createOrUpdateEntities(HiveHook.java:325) > at > org.apache.atlas.hive.hook.HiveHook.registerProcess(HiveHook.java:387) > at > org.apache.atlas.hive.hook.HiveHook.fireAndForget(HiveHook.java:224) > at org.apache.atlas.hive.hook.HiveHook.run(HiveHook.java:182) > at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1520) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1195) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1059) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1049) > at > org.apache.atlas.hive.hook.HiveHookIT.runCommand(HiveHookIT.java:75) > at > org.apache.atlas.hive.hook.HiveHookIT.testSelect2(HiveHookIT.java:265) > 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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) > at org.testng.internal.Invoker.invokeMethod(Invoker.java:673) > at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:842) > at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1166) > at > org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) > at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) > at org.testng.TestRunner.runWorkers(TestRunner.java:1178) > at org.testng.TestRunner.privateRun(TestRunner.java:757) > at org.testng.TestRunner.run(TestRunner.java:608) > at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) > at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) > at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) > at org.testng.SuiteRunner.run(SuiteRunner.java:240) > at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) > at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) > at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158) > at org.testng.TestNG.runSuitesLocally(TestNG.java:1083) > at org.testng.TestNG.run(TestNG.java:999) > at > org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:115) > at > org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:129) > at > org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:113) > at > org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111) > at > org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) > at > org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) > at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)