Forráskód Böngészése

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

(cherry picked from commit c31cb879a3595f76d01408e6d066a0bde20be043)
Andrew Wang 8 éve
szülő
commit
5c819585f2

+ 1 - 0
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/mover/Mover.java

@@ -171,6 +171,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();