HDFS-7805. NameNode recovery prompt should be printed on console (Surendra Singh Lilhore via Colin P. McCabe)
This commit is contained in:
parent
585768667e
commit
faaddb6ecb
|
@ -1011,6 +1011,9 @@ Release 2.7.0 - UNRELEASED
|
||||||
|
|
||||||
HDFS-7807. libhdfs htable.c: fix htable resizing, add unit test (cmccabe)
|
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
|
BREAKDOWN OF HDFS-7584 SUBTASKS AND RELATED JIRAS
|
||||||
|
|
||||||
HDFS-7720. Quota by Storage Type API, tools and ClientNameNode
|
HDFS-7720. Quota by Storage Type API, tools and ClientNameNode
|
||||||
|
|
|
@ -61,9 +61,9 @@ public final class MetaRecoveryContext {
|
||||||
public String ask(String prompt, String firstChoice, String... choices)
|
public String ask(String prompt, String firstChoice, String... choices)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
while (true) {
|
while (true) {
|
||||||
LOG.info(prompt);
|
System.err.print(prompt);
|
||||||
if (force > FORCE_NONE) {
|
if (force > FORCE_NONE) {
|
||||||
LOG.info("automatically choosing " + firstChoice);
|
System.out.println("automatically choosing " + firstChoice);
|
||||||
return firstChoice;
|
return firstChoice;
|
||||||
}
|
}
|
||||||
StringBuilder responseBuilder = new StringBuilder();
|
StringBuilder responseBuilder = new StringBuilder();
|
||||||
|
@ -82,7 +82,7 @@ public final class MetaRecoveryContext {
|
||||||
return c;
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue