public class TaskLogsTruncater
extends java.lang.Object
UserLogManager
.Constructor and Description |
---|
TaskLogsTruncater(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
static boolean |
isTruncaterJvm()
Return true if the current JVM is for truncation only.
|
static void |
main(java.lang.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.
|
public TaskLogsTruncater(org.apache.hadoop.conf.Configuration conf)
public static boolean isTruncaterJvm()
public boolean shouldTruncateLogs(JVMInfo lInfo) throws java.io.IOException
lInfo
- java.io.IOException
public void truncateLogs(JVMInfo lInfo)
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
Copyright © 2009 The Apache Software Foundation