HDFS-11840. Log HDFS Mover exception message of exit to its own log. Contributed by LiXin Ge.

This commit is contained in:
Andrew Wang 2017-06-06 14:57:48 -07:00 committed by Xiaoyu Yao
parent df7d952f12
commit bbf158de74
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ public class Mover {
return ExitStatus.ILLEGAL_ARGUMENTS;
} catch (IOException e) {
System.out.println(e + ". Exiting ...");
LOG.error(e + ". Exiting ...");
return ExitStatus.IO_EXCEPTION;
} finally {
dispatcher.shutdownNow();