Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.0.5-alpha
-
None
-
None
Description
When userlog limit is set with something like this:
<property> <name>mapred.userlog.limit.kb</name> <value>2048</value> <description>The maximum size of user-logs of each task in KB. 0 disables the cap. </description> </property>
the log entry will be truncated randomly for the jobs.
The log size is left between 1.2MB to 1.6MB.
Since the log is already limited, avoid the log truncation is crucial for user.
The other issue with the current impl(org.apache.hadoop.yarn.ContainerLogAppender) is that log entries will not flush to file until the container shutdown and logmanager close all appenders. If user likes to see the log during task execution, it doesn't support it.
Will propose a patch to add a flush mechanism and also flush the log when task is done.
Attachments
Attachments
Issue Links
- duplicates
-
MAPREDUCE-5693 Restore MRv1 behavior for log flush
- Closed
-
MAPREDUCE-5672 Provide optional RollingFileAppender for container log4j (syslog)
- Closed
- is related to
-
MAPREDUCE-5672 Provide optional RollingFileAppender for container log4j (syslog)
- Closed