hive 虚拟机下执行 HQL 被killed退出

在学习大数据过程中,使用装有CentOS7的虚拟机(内存512MB)运行Hive时,HQL查询被killed且无明显错误信息。通过增大虚拟机内存至1GB解决问题,表明内存不足可能是导致Hive异常退出的原因。当遇到类似情况且日志无误时,可检查虚拟机内存配置。

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

背景:学习大数据,装了个虚拟机,搭载centos7的迷你,内存分配的512MB

hive> select A.name,A.time
    > from
    > (select name,time,sum(count) from sale group by name, time) A join
    > (select name,time,sum(count) from sale group by name, time) B
    > on A.name=B.name
    > where A.time >= B.time
    > group by A.name,A.time
    > order by A.name,A.time;
WARNING: Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions. Consider using a different execution engine (i.e. spark, tez) or using Hive 1.X releases.
Query ID = root_20170227013835_5b837518-4c01-4dd5-8097-99d9dfdd39d7
Total jobs = 7
Launching Job 1 out of 7
Number of reduce tasks not specified. Estimated from input data size: 1
In order to change the average load for a reducer (in bytes):
  set hive.exec.reducers.bytes.per.reducer=<number>
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值