gpt4 book ai didi

hadoop - 配置单元错误 : parseexception missing EOF

转载 作者:可可西里 更新时间:2023-11-01 14:11:52 28 4
gpt4 key购买 nike

我不确定我在这里做错了什么:

hive> CREATE TABLE default.testtbl(int1 INT,string1 STRING)  
stored as orc
tblproperties ("orc.compress"="NONE")
LOCATION "/user/hive/test_table";

FAILED: ParseException line 1:107 missing EOF at 'LOCATION' near ')'

虽然下面的查询工作得很好:

hive>  CREATE TABLE default.testtbl(int1 INT,string1 STRING)  
stored as orc
tblproperties ("orc.compress"="NONE");
OK
Time taken: 0.106 seconds

我是不是漏掉了什么。任何指针都会有所帮助。谢谢!

最佳答案

尝试将“LOCATION”放在“tblproperties”前面,如下所示,对我有用。

CREATE TABLE default.testtbl(int1 INT,string1 STRING)  
stored as orc
LOCATION "/user/hive/test_table"
tblproperties ("orc.compress"="NONE");

似乎连“Programming Hive”一书中的示例 SQL 都弄错了顺序。建表命令请引用官方定义:

https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-CreateTable

关于hadoop - 配置单元错误 : parseexception missing EOF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22463444/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com