前景提要
HDC调试需求开发(15万预算),能者速来!>>>
服务器centos7.2
hive版本0.12
hadoop版本2.7.6
----------------分割线-----------------
创建table的时候,用的外部表,放置于mysql,其中使用了partitioned by 关键字 ( partitioned by (logdate string,hour string)
)。
具体代码片段为: create external table people(id int,name string) partitioned by (logdate string,hour string) row format delimited fields terminated by ',';
--------------------------------
但是!! 往表里面存入数据时就报错为 hive.partition doesn't exists !!!! java.sql.SQLSyntaxErrorException: Table 'hive.PARTITIONS' doesn't exist
mysql那边看了,hive数据库生成了,但确实没有partition表。只有下图。
select * 之后确实是我添加的partition字段
可是没办法改这个表的名字为partition啊(似乎是因为mysql关键字存在partition)!!
那我该如何存取数据进入这个hive表??
求帮助,谢谢。