当我尝试创建外部ORC表并提供位置时,我得到以下错误。该错误似乎与{
"blah": {
"CLUSTERS": [
{
"name":"toto"
},
{
"name": "titi"
}
]
}
}
有关。如果取出tblproperties
并运行它,它运行正常。但是,我必须使用alter table命令将tblproperties
更新为SNAPPY。有人面临类似问题吗?我不确定如果它的蜂巢中有错误,是否有JIRA打开。任何投入都表示赞赏。感谢。
tblproperties
答案 0 :(得分:5)
您可以尝试下面的create语句。它对我有用:)
hive (vijay)>
> create external table Addresses (
> name string,
> street string,
> city string,
> state string,
> zip int
> ) stored as orc
> LOCATION '/user/vijay/address_orc'
> tblproperties ("orc.compress"="SNAPPY");
OK
Time taken: 0.212 seconds
hive (vijay)> describe Addresses;
OK
# col_name data_type comment
name string from deserializer
street string from deserializer
city string from deserializer
state string from deserializer
zip int from deserializer
注意 tblproperties在LOCATION
之后作为最后一行提到