Repository: hadoop Updated Branches: refs/heads/trunk 585768667 -> faaddb6ec
HDFS-7805. NameNode recovery prompt should be printed on console (Surendra Singh Lilhore via Colin P. McCabe) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/faaddb6e Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/faaddb6e Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/faaddb6e Branch: refs/heads/trunk Commit: faaddb6ecb44cdc9ef82a2ab392f64fc2561e938 Parents: 5857686 Author: Colin Patrick Mccabe <[email protected]> Authored: Mon Feb 23 19:00:10 2015 -0800 Committer: Colin Patrick Mccabe <[email protected]> Committed: Mon Feb 23 19:00:10 2015 -0800 ---------------------------------------------------------------------- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hadoop/hdfs/server/namenode/MetaRecoveryContext.java | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/faaddb6e/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index b4cd953..7283c0f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1011,6 +1011,9 @@ Release 2.7.0 - UNRELEASED HDFS-7807. libhdfs htable.c: fix htable resizing, add unit test (cmccabe) + HDFS-7805. NameNode recovery prompt should be printed on console (Surendra + Singh Lilhore via Colin P. McCabe) + BREAKDOWN OF HDFS-7584 SUBTASKS AND RELATED JIRAS HDFS-7720. Quota by Storage Type API, tools and ClientNameNode http://git-wip-us.apache.org/repos/asf/hadoop/blob/faaddb6e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/MetaRecoveryContext.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/MetaRecoveryContext.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/MetaRecoveryContext.java index 80312b8..8831b49 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/MetaRecoveryContext.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/MetaRecoveryContext.java @@ -61,9 +61,9 @@ public final class MetaRecoveryContext { public String ask(String prompt, String firstChoice, String... choices) throws IOException { while (true) { - LOG.info(prompt); + System.err.print(prompt); if (force > FORCE_NONE) { - LOG.info("automatically choosing " + firstChoice); + System.out.println("automatically choosing " + firstChoice); return firstChoice; } StringBuilder responseBuilder = new StringBuilder(); @@ -82,7 +82,7 @@ public final class MetaRecoveryContext { return c; } } - LOG.error("I'm sorry, I cannot understand your response.\n"); + System.err.print("I'm sorry, I cannot understand your response.\n"); } }
