MAPREDUCE-6571. JobEndNotification info logs are missing in AM container syslog (haibochen via rkanter)
This commit is contained in:
parent
f53b481ffe
commit
6b4a9970f1
@ -151,7 +151,6 @@
|
||||
import org.apache.hadoop.yarn.security.client.ClientToAMTokenSecretManager;
|
||||
import org.apache.hadoop.yarn.util.Clock;
|
||||
import org.apache.hadoop.yarn.util.SystemClock;
|
||||
import org.apache.log4j.LogManager;
|
||||
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
|
||||
@ -1277,14 +1276,9 @@ protected void serviceStart() throws Exception {
|
||||
}
|
||||
}
|
||||
|
||||
protected void shutdownTaskLog() {
|
||||
TaskLog.syncLogsShutdown(logSyncer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop() {
|
||||
super.stop();
|
||||
shutdownTaskLog();
|
||||
}
|
||||
|
||||
private boolean isRecoverySupported() throws IOException {
|
||||
@ -1824,14 +1818,9 @@ private static interface ExceptionAction<T> {
|
||||
T call(Configuration conf) throws Exception;
|
||||
}
|
||||
|
||||
protected void shutdownLogManager() {
|
||||
LogManager.shutdown();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void serviceStop() throws Exception {
|
||||
super.serviceStop();
|
||||
shutdownLogManager();
|
||||
}
|
||||
|
||||
public ClientService getClientService() {
|
||||
|
@ -816,19 +816,5 @@ public static ContainerTokenIdentifier newContainerTokenIdentifier(
|
||||
return token.decodeIdentifier();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void shutdownTaskLog() {
|
||||
// Avoid closing the logging system during unit tests,
|
||||
// otherwise subsequent MRApp instances in the same test
|
||||
// will fail to log anything.
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void shutdownLogManager() {
|
||||
// Avoid closing the logging system during unit tests,
|
||||
// otherwise subsequent MRApp instances in the same test
|
||||
// will fail to log anything.
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user