You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Jeff Hammerbacher (JIRA)" <ji...@apache.org> on 2008/10/30 01:08:44 UTC

[jira] Created: (HADOOP-4544) Hive should fail to start if it cannot get an instance of the filesystem

Hive should fail to start if it cannot get an instance of the filesystem
------------------------------------------------------------------------

                 Key: HADOOP-4544
                 URL: https://issues.apache.org/jira/browse/HADOOP-4544
             Project: Hadoop Core
          Issue Type: Bug
          Components: contrib/hive
            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.