HADOOP-17613. Log not flushed fully when daemon shutdown. Contributed by Renukaprasad C.
This commit is contained in:
parent
42ddb5c6fe
commit
3a89471c36
@ -41,6 +41,7 @@
|
|||||||
import org.apache.hadoop.classification.InterfaceStability;
|
import org.apache.hadoop.classification.InterfaceStability;
|
||||||
import org.apache.hadoop.fs.Path;
|
import org.apache.hadoop.fs.Path;
|
||||||
import org.apache.hadoop.net.NetUtils;
|
import org.apache.hadoop.net.NetUtils;
|
||||||
|
import org.apache.log4j.LogManager;
|
||||||
|
|
||||||
import org.apache.hadoop.thirdparty.com.google.common.base.Preconditions;
|
import org.apache.hadoop.thirdparty.com.google.common.base.Preconditions;
|
||||||
import org.apache.hadoop.thirdparty.com.google.common.net.InetAddresses;
|
import org.apache.hadoop.thirdparty.com.google.common.net.InetAddresses;
|
||||||
@ -752,6 +753,7 @@ static void startupShutdownMessage(Class<?> clazz, String[] args,
|
|||||||
public void run() {
|
public void run() {
|
||||||
LOG.info(toStartupShutdownString("SHUTDOWN_MSG: ", new String[]{
|
LOG.info(toStartupShutdownString("SHUTDOWN_MSG: ", new String[]{
|
||||||
"Shutting down " + classname + " at " + hostname}));
|
"Shutting down " + classname + " at " + hostname}));
|
||||||
|
LogManager.shutdown();
|
||||||
}
|
}
|
||||||
}, SHUTDOWN_HOOK_PRIORITY);
|
}, SHUTDOWN_HOOK_PRIORITY);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user