hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Hammerbacher (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-23) Hive should fail to start if it cannot get an instance of the filesystem
Date Wed, 12 Nov 2008 04:55:44 GMT

    [ https://issues.apache.org/jira/browse/HIVE-23?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646798#action_12646798
] 

Jeff Hammerbacher commented on HIVE-23:
---------------------------------------

Hey,

Any chance we could toss a more informative error message in here for the next release? I've
seen a few new users stumble on this error, as it's pretty cryptic.

Later,
Jeff

> 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: Hadoop Hive
>          Issue Type: Bug
>            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.


Mime
View raw message