一 前言
在eclipse中编译调试hive 时出现以下问题
启动clidriver程序在 console执行命令如下
hive> create table xxxx(id int);
create table xxxx(id int);
FAILED: Error in metadata: MetaException(message:file:/user/hive/warehouse/xxxx is not a directory or unable to create one)
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
日志内容如下
2013-05-14 19:44:12,440 ERROR exec.Task (SessionState.java:printError(401)) - FAILED: Error in metadata: MetaException(message:file:/user/hive/warehouse/xxxx is not a directory or unable to create one)
org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:file:/user/hive/warehouse/xxxx is not a directory or unable to create one)
at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:603)
at org.apache.hadoop.hive.ql.exec.DDLTask.createTable(DDLTa