AnsweredAssumed Answered

killed jobs result in wasted memory

Question asked by jerdavis on May 23, 2013
Latest reply on May 24, 2013 by jerdavis
I have LOTS of MR jobs that are just hanging out taking up memory and CPU, but not doing any processing. The OutOfMemory is probably more effect than cause.. Usually these 'zombie' processes take up memory that isn't accounted for by the job tracker, and thus we end up going OOM.
I'm running v.

Doing an lsof allows me to track them back to the job

    ps -eo pid,euser,s,pcpu,pmem,bsdstart,fname
     7206 me S 88.9  1.7  00:38 java
     9869 me S 89.3  1.7  00:40 java
    10880 me S 82.5  1.6  22:45 java
    11108 me S 82.8  1.6  22:45 java
    17994 me S 86.1  1.6  20:25 java
    24245 me S 88.9  1.6  00:52 java
    25576 me S 88.8  1.6  00:56 java

        Exception in thread "Thread for syncLogs" java.lang.IllegalStateException: Shutdown in progress
                at java.lang.ApplicationShutdownHooks.add(
                at java.lang.Runtime.addShutdownHook(
                at org.apache.hadoop.fs.FileSystem$Cache.getInternal(
                at org.apache.hadoop.fs.FileSystem$Cache.get(
                at org.apache.hadoop.fs.FileSystem.get(
                at org.apache.hadoop.fs.FileSystem.getLocal(
                at org.apache.hadoop.mapred.CentralTaskLogUtil.renameFile(
                at org.apache.hadoop.mapred.TaskLog.writeToIndexFile(
                at org.apache.hadoop.mapred.TaskLog.syncLogs(
                at org.apache.hadoop.mapred.Child$
    2013-05-23 01:07:18,714 WARN org.apache.hadoop.mapred.Child: Error running child
    cascading.flow.FlowException: internal error during mapper execution
            at org.apache.hadoop.mapred.MapTask.runOldMapper(
            at org.apache.hadoop.mapred.Child$
            at Method)
            at org.apache.hadoop.mapred.Child.main(
    Caused by: java.lang.OutOfMemoryError: Java heap space
            at java.util.Arrays.copyOf(
            at java.lang.AbstractStringBuilder.expandCapacity(
            at java.lang.AbstractStringBuilder.append(
            at java.lang.StringBuffer.append(
            at cascading.util.Util.join(
            at cascading.util.Util.join(
            at cascading.util.Util.join(
            at cascading.util.Util.join(
            at cascading.util.Util.join(
            at cascading.scheme.util.DelimitedParser.parseLine(
            at cascading.scheme.hadoop.TextDelimited.source(
            at cascading.tuple.TupleEntrySchemeIterator.getNext(
            at cascading.tuple.TupleEntrySchemeIterator.hasNext(
            ... 7 more
    java    3613 upstream  cwd    DIR              253,0         0    1577925 /tmp/mapr-hadoop/mapred/local/taskTracker/us/jobcache/job_201305061420_20440/attempt_201305061420_20440_m_000075_1/work (deleted)