大数据 在hive与HBASE联合使用时,hive insert into 出现异常错误

在尝试将Hive与HBase整合时遇到问题,当使用`insert into`语句向与HBase关联的Hive表添加数据时,出现类型不匹配的异常错误。错误的根本原因是查询导入的表中存在不兼容的数据类型字段。为解决此问题,需要检查并修正或删除这些不匹配的字段,确保所有字段类型与HBase和Hive表定义一致,之后重新执行插入操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在练习HBASE与hive联合使用时 hive无法向与hbase关联的表中添加数据。

  • 报出错误如下:
hive (default)> insert into table hive_hbase_emp_table select * from emp;
Query ID = hadoop_20200703024258_990646f2-d56d-4915-9d4b-b18712baad15
Total jobs = 1
Launching Job 1 out of 1
Number of reduce tasks is set to 0 since there's no reduce operator
Starting Job = job_1593714898131_0001, Tracking URL = http://hrbu30:8088/proxy/application_1593714898131_0001/
Kill Command = /opt/ha/hadoop/bin/hadoop job  -kill job_1593714898131_0001
Hadoop job information for Stage-0: number of mappers: 1; number of reducers: 0
2020-07-03 02:43:14,108 Stage-0 map = 0%,  reduce = 0%
2020-07-03 02:43:46,558 Stage-0 map = 100%,  reduce = 0%
Ended Job = job_1593714898131_0001 with errors
Error during job, obtaining debugging information...
Examining task ID: task_1593714898131_0001_m_000000 (and more) from job job_1593714898131_000
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值