From 5c819585f2cbaae4ba6f8e03961c9bf40ed85842 Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Tue, 6 Jun 2017 14:57:48 -0700 Subject: [PATCH] HDFS-11840. Log HDFS Mover exception message of exit to its own log. Contributed by LiXin Ge. (cherry picked from commit c31cb879a3595f76d01408e6d066a0bde20be043) --- .../src/main/java/org/apache/hadoop/hdfs/server/mover/Mover.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/mover/Mover.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/mover/Mover.java index df42c4f3424..d5cdfb2b474 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/mover/Mover.java +++ b/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();