Hadoop进程占CPU 800%
一、现象
Hadoop进程CPU占800%
二、查问题
1、TOP
z 高亮
H 显示线程
<> 翻页
2、Jstatack
sudo -u admin jstack 97932 | less
2014-03-20 21:45:45
Full thread dump OpenJDK (Taobao) 64-Bit Server VM (20.0-b12-internal mixed mode):
"Attach Listener" daemon prio=10 tid=0x00007f6640a15800 nid=0xf350 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Thread-218" prio=10 tid=0x00007f663c909800 nid=0x1813b runnable [0x0000000042ffd000]
java.lang.Thread.State: RUNNABLE
at java.util.HashMap.getEntry(HashMap.java:347)
at java.util.HashMap.containsKey(HashMap.java:335)
at java.util.HashSet.contains(HashSet.java:184)
at org.apache.hadoop.hive.ql.QueryPlan.updateCountersInQueryPlan(QueryPlan.java:306)
at org.apache.hadoop.hive.ql.QueryPlan.getQueryPlan(QueryPlan.java:421)
at org.apache.hadoop.hive.ql.QueryPlan.toString(QueryPlan.java:593)
at org.apache.hadoop.hive.ql.history.HiveHistory.logPlanProgress(HiveHistory.java:510)
at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:168)
at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
at org.apache.hadoop.hive.ql.exec.TaskRunner.run(TaskRunner.java:47)
"Thread-217" prio=10 tid=0x00007f663d75b800 nid=0x1813a runnable [0x0000000043b08000]
java.lang.Thread.State: RUNNABLE
at java.util.HashMap.getEntry(HashMap.java:347)
at java.util.HashMap.containsKey(HashMap.java:335)
at java.util.HashSet.contains(HashSet.java:184)
at org.apache.hadoop.hive.ql.QueryPlan.updateCountersInQueryPlan(QueryPlan.java:306)
at org.apache.hadoop.hive.ql.QueryPlan.getQueryPlan(QueryPlan.java:421)
at org.apache.hadoop.hive.ql.QueryPlan.toString(QueryPlan.java:593)
at org.apache.hadoop.hive.ql.history.HiveHistory.logPlanProgress(HiveHistory.java:510)
at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:168)
at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
at org.apache.hadoop.hive.ql.exec.TaskRunner.run(TaskRunner.java:47)
"Thread-152" prio=10 tid=0x00007f663cc68000 nid=0x180f7 runnable [0x0000000040904000]
java.lang.Thread.State: RUNNABLE
at java.util.HashMap.getEntry(HashMap.java:347)
at java.util.HashMap.containsKey(HashMap.java:335)
at java.util.HashSet.contains(HashSet.java:184)
at org.apache.hadoop.hive.ql.QueryPlan.updateCountersInQueryPlan(QueryPlan.java:306)
at org.apache.hadoop.hive.ql.QueryPlan.getQueryPlan(QueryPlan.java:421)
at org.apache.hadoop.hive.ql.QueryPlan.toString(QueryPlan.java:593)
at org.apache.hadoop.hive.ql.history.HiveHistory.logPlanProgress(HiveHistory.java:510)
3、进程名
ps aux | grep 97932
三、结论
hive执行的时候死循环了
相关阅读: