开发者社区> 问答> 正文

郁闷,hive分区怎么就分不好了,求大神解释!!!!!?报错

建表:

hive> create table test4(year string,temperate int,quality string)
    > partitioned by (qua string)                                 
    > row format delimited                                        
    > fields terminated by '\t';



加载数据:

hive> load data local inpath '/home/du/hive/sample.txt'
    > into table test4
    > partition (qua='1');



数据:

2010	35	1
2011	36	2
2012	33	1
2013	32	2
2014	30	1



报错信息:

Failed with exception MetaException(message:javax.jdo.JDODataStoreException: Required table missing : "PARTITIONS" in Catalog "" Schema "". DataNucleus requires this table to perform its persistence operations. Either your MetaData is incorrect, or you need to enable "datanucleus.autoCreateTables"



跪求大神解释啊!!!!!!!

展开
收起
爱吃鱼的程序员 2020-06-15 19:26:00 386 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    有可能是中文乱码的问题,把数据格式改成utf-8试试

    2020-06-15 19:26:15
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Hive Bucketing in Apache Spark 立即下载
spark替代HIVE实现ETL作业 立即下载
2019大数据技术公开课第五季—Hive迁移到MaxCompute最佳实践 立即下载