hive 建表后加载数据报错 FAILED: ParseException line 10:51 missing EOF

博客作者分享了一次使用Hive时遇到的错误,问题在于Parquet压缩设置不正确。官方示例中要求'parquet.compression'属性必须放在最后。修正后的Hive创建表语句成功执行,表名为student_tb_txt3,存储位置在'/mnt/data/bigdata/hive/warehouse/student_tb_txt/',并使用Snappy压缩。执行DDL任务耗时0.421秒。
摘要由CSDN通过智能技术生成

好久没有玩hive了上来就给我报错
在这里插入图片描述
查了下原因:官网给的例子,也是要求tblproperties(‘parquet.compression’=‘snappy’)属性,需要放在最后面
修改后的如下

 create table if not exists default.student_tb_txt3(
s_no string comment '学号',
s_name string comment '姓名',
s_birth string comment '生日',
s_age bigint comment '年龄',
s_sex string comment '性别',
s_score bigint comment '综合能力得分',
s_desc string comment '自我介绍'
)row format delimited fields terminated by '\t'
location '/mnt/data/bigdata/hive/warehouse/student_tb_txt/'
tblproperties('parquet.compression'='snappy');


INFO  : Starting task [Stage-0:DDL] in serial mode
INFO  : Completed executing command(queryId=hive_20210712181440_5213b453-9963-4552-9833-11dd4b9c33bc); Time taken: 0.421 seconds
INFO  : OK

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值