From fd76bab6696becacaca67b747ceb50017e619889 Mon Sep 17 00:00:00 2001 From: Benoit Sigoure Date: Mon, 26 Apr 2010 00:43:06 -0700 Subject: [PATCH] Improve the error message 'File system needs to be upgraded'. By specifying which version was found and which version is wanted, what needs to be done may appear to be clearer to the user. --- .../java/org/apache/hadoop/hbase/util/FSUtils.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java b/core/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java index 3e6e59a..2454cb1 100644 --- a/core/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java +++ b/core/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java @@ -179,8 +179,10 @@ public class FSUtils { // version is deprecated require migration // Output on stdout so user sees it in terminal. - String msg = "File system needs to be upgraded. Run " + - "the '${HBASE_HOME}/bin/hbase migrate' script."; + String msg = "File system needs to be upgraded." + + " You have version " + version + + " and I want version " + HConstants.FILE_SYSTEM_VERSION + + ". Run the '${HBASE_HOME}/bin/hbase migrate' script."; if (message) { System.out.println("WARNING! " + msg); } -- 1.7.1.rc1.3.g1a40