HDFS-11840. Log HDFS Mover exception message of exit to its own log. Contributed by LiXin Ge.
This commit is contained in:
parent
df7d952f12
commit
bbf158de74
|
@ -180,6 +180,7 @@ public class Mover {
|
||||||
return ExitStatus.ILLEGAL_ARGUMENTS;
|
return ExitStatus.ILLEGAL_ARGUMENTS;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
System.out.println(e + ". Exiting ...");
|
System.out.println(e + ". Exiting ...");
|
||||||
|
LOG.error(e + ". Exiting ...");
|
||||||
return ExitStatus.IO_EXCEPTION;
|
return ExitStatus.IO_EXCEPTION;
|
||||||
} finally {
|
} finally {
|
||||||
dispatcher.shutdownNow();
|
dispatcher.shutdownNow();
|
||||||
|
|
Loading…
Reference in New Issue