You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Edward Capriolo (Updated) (JIRA)" <ji...@apache.org> on 2011/12/10 18:17:39 UTC

[jira] [Updated] (HIVE-2644) Produce better error message when warehouse is not writable

     [ https://issues.apache.org/jira/browse/HIVE-2644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Capriolo updated HIVE-2644:
----------------------------------

    Affects Version/s: 0.8.0
    
> Produce better error message when warehouse is not writable
> -----------------------------------------------------------
>
>                 Key: HIVE-2644
>                 URL: https://issues.apache.org/jira/browse/HIVE-2644
>             Project: Hive
>          Issue Type: Task
>    Affects Versions: 0.8.0
>            Reporter: Edward Capriolo
>
> This error is caused my not having a /user/hive/warehouse in local mode and because it is not writeable. We can possibly check this a precondition and produce a nicer error.
> {noformat}
> [edward@tablitha hive-0.8.0-bin]$ bin/hive
> Logging initialized using configuration in jar:file:/home/edward/hive-0.8.0-bin/lib/hive-common-0.8.0.jar!/hive-log4j.properties
> Hive history file=/tmp/edward/hive_job_log_edward_201112101317_904348940.txt
> hive> create table abc (a int, b int);
> FAILED: Error in metadata: MetaException(message:Got exception: java.io.FileNotFoundException File file:/user/hive/warehouse/abc does not exist.)
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> dfs -ls /user/hive/warehouse
>     > ;
> hive> create table abcd (a int, b int);
> FAILED: Error in metadata: MetaException(message:Got exception: java.io.FileNotFoundException File file:/user/hive/warehouse/abcd does not exist.)
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> exit;
> [edward@tablitha hive-0.8.0-bin]$ bin/hive^C
> [edward@tablitha hive-0.8.0-bin]$ su -
> Password: 
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira