我正在尝试在 Hive 中创建一个外部表,但不断收到以下错误:
create external table foobar (a STRING, b STRING) row format delimited fields terminated by "\t" stored as textfile location "/tmp/hive_test_1375711405.45852.txt";
Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask (state=08S01,code=1)
Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask (state=08S01,code=1)
Aborting command set because "force" is false and command failed: "create external table foobar (a STRING, b STRING) row format delimited fields terminated by "\t" stored as textfile location "/tmp/hive_test_1375711405.45852.txt";"
的内容/tmp/hive_test_1375711405.45852.txt
是:
abc\tdef
我通过beeline
使用 Thrift 的命令行界面进行连接HiveServer2
。
系统:
- Hadoop 2.0.0-cdh4.3.0
- 蜂巢 0.10.0-cdh4.3.0
- 直线 0.10.0-cdh4.3.0
- 客户端操作系统 - Red Hat Enterprise Linux Server 6.4 版(圣地亚哥)