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 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