TaskLogsTruncater (Hadoop 0.20.2-cdh3u0 API)
Date: 2011-03-25

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.hadoop.mapred
Class TaskLogsTruncater

    java.lang.Object
      org.apache.hadoop.mapred.TaskLogsTruncater

    public class TaskLogsTruncater

extends Object

The class for truncating the user logs. Should be used only by `UserLogManager`.

Constructor Summary
`TaskLogsTruncater(Configuration conf)`

Method Summary
`static boolean` | `isTruncaterJvm()` Return true if the current JVM is for truncation only.
`static void` | `main(String[] args)`
`boolean` | `shouldTruncateLogs(JVMInfo lInfo)` Check the log file sizes generated by the attempts that ran in a particular JVM
`void` | `truncateLogs(JVMInfo lInfo)` Process the removed task's logs.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TaskLogsTruncater

    public TaskLogsTruncater(Configuration conf)

Method Detail

### isTruncaterJvm

    public static boolean isTruncaterJvm()

  Return true if the current JVM is for truncation only.

### shouldTruncateLogs

    public boolean shouldTruncateLogs(JVMInfo lInfo)
                               throws IOException

  Check the log file sizes generated by the attempts that ran in a particular JVM

  Parameters:
    `lInfo` -
  Returns:
  Throws:
    `IOException`

### truncateLogs

    public void truncateLogs(JVMInfo lInfo)

  Process the removed task's logs. This involves truncating them to retainSize.

### main

    public static void main(String[] args)
                     throws IOException

  Throws:
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2009 The Apache Software Foundation