分享

hive数据能够加载,但是select语句卡顿 有哪位大神在线帮忙看一下

海滩发红 发表于 2017-5-16 10:13:50 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 6345
hive>LOAD DATA LOCAL INPATH '/home/hadoop/upload/SogouQ2.txt' INTO TABLE SOGOUQ2;
Copying data from file:/home/hadoop/upload/SogouQ2.txt
Copying file: file:/home/hadoop/upload/SogouQ2.txt
Loading data to table hive.sogouq2
Table hive.sogouq2 stats: [numFiles=2, numRows=0, totalSize=326191991, rawDataSize=0]
OK
Time taken: 9.264 seconds
hive> select count(*) from SOGOUQ2;
Total jobs = 1
Launching Job 1 out of 1
Number of reduce tasks determined at compile time: 1
In order to change the average load for a reducer (in bytes):
  set hive.exec.reducers.bytes.per.reducer=<number>
In order to limit the maximum number of reducers:
  set hive.exec.reducers.max=<number>
In order to set a constant number of reducers:
  set mapreduce.job.reduces=<number>


已有(2)人评论

跳转到指定楼层
2017 发表于 2017-5-16 12:47:05
卡住原因很多,比如数据倾斜,这个需要等待,或则数据均衡下。也可能是错误,需要看下日志
回复

使用道具 举报

muyannian 发表于 2017-5-16 14:59:46
先select * from SOGOUQ2,看看数据是否正常
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条