|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.TaskLogsTruncater
public class TaskLogsTruncater
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 |
---|
public TaskLogsTruncater(Configuration conf)
Method Detail |
---|
public static boolean isTruncaterJvm()
public boolean shouldTruncateLogs(JVMInfo lInfo) throws IOException
lInfo
-
IOException
public void truncateLogs(JVMInfo lInfo)
public static void main(String[] args) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |