From bbf158de74234fa6d70ba8a868a445f74f9ffb15 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. --- .../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 7eac87d92eb..1a2c889e41d 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 @@ -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();