HBASE-79 When HBase needs to be migrated, it should display a message on
stdout, not just in the logs git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@629203 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
377fb93ca7
commit
9b37593ad6
|
@ -57,6 +57,8 @@ Hbase Change Log
|
|||
HBASE-444 hbase is very slow at determining table is not present
|
||||
HBASE-438 XMLOutputter state should be initialized.
|
||||
HBASE-414 Move client classes into client package
|
||||
HBASE-79 When HBase needs to be migrated, it should display a message on
|
||||
stdout, not just in the logs
|
||||
|
||||
Branch 0.1
|
||||
|
||||
|
|
|
@ -273,8 +273,13 @@ public class HMaster extends Thread implements HConstants, HMasterInterface,
|
|||
fs.mkdirs(rootdir);
|
||||
FSUtils.setVersion(fs, rootdir);
|
||||
} else if (!FSUtils.checkVersion(fs, rootdir)) {
|
||||
throw new IOException("File system needs upgrade. Run " +
|
||||
"the '${HBASE_HOME}/bin/hbase migrate' script");
|
||||
// Output on stdout so user sees it in terminal.
|
||||
String message = "The HBase data files stored on the FileSystem are " +
|
||||
"from an earlier version of HBase. You need to run " +
|
||||
"'${HBASE_HOME}/bin/hbase migrate' to bring your installation +
|
||||
"up-to-date.";
|
||||
System.out.println("WARNING! " + message + " Master shutting down...");
|
||||
throw new IOException(message);
|
||||
}
|
||||
|
||||
if (!fs.exists(rootRegionDir)) {
|
||||
|
|
Loading…
Reference in New Issue