[ https://issues.apache.org/jira/browse/HIVE-23?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12974969#action_12974969 ]
Edward Capriolo commented on HIVE-23: ------------------------------------- I like how pig tries to connect to HDFS and JT and fires off a status message. Should we do the same? > Hive should fail to start if it cannot get an instance of the filesystem > ------------------------------------------------------------------------ > > Key: HIVE-23 > URL: https://issues.apache.org/jira/browse/HIVE-23 > Project: Hive > Issue Type: Bug > Components: Clients > Reporter: Jeff Hammerbacher > > Hey, > If I try to start Hive without my HDFS instance running, and Hive isn't able > to start it up on its own, it should fail. Instead, I get a working Hive > shell, but any query returns > FAILED: Unknown exception : null > FAILED: Unknown exception : null > If I check "/tmp/{user.name}/hive.log", the error shows that the fs object > was never assigned correctly, resulting in an NPE when it is referenced: > 2008-10-29 17:01:08,659 ERROR ql.Driver (SessionState.java:printError(242)) - > FAILED: Unknown exception : null > java.lang.NullPointerException > at org.apache.hadoop.hive.ql.Context.removeScratchDir(Context.java:72) > at org.apache.hadoop.hive.ql.Driver.close(Driver.java:287) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:131) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:147) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:244) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.util.RunJar.main(RunJar.java:165) > at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) > at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68) > Either the error message needs to be more informative or Hive should fail if > it can't find the persistent store it needs. I can imagine wanting to run the > Hive shell against the metastore only, so perhaps straight failure without > the fs isn't the best option. Up to the Hive team. > Regards, > Jeff -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.