Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-2489

Make the "Filesystem needs to be upgraded" error message more useful.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 0.90.0
    • util
    • None
    • Reviewed

    Description

      The other day, when starting HBase I got this error:

      2010-04-23 09:38:14,847 ERROR org.apache.hadoop.hbase.master.HMaster: Failed to start master
      org.apache.hadoop.hbase.util.FileSystemVersionException: File system needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase migrate' script.
              at org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:187)
      

      I was puzzled until I realized, after adding extra debug statements in the code, that I forgot to properly set hbase.rootdir after re-deploying my dev environment. I think the message above was misleading and I'm proposing a trivial patch to make it a little bit better:

      2010-04-23 09:48:29,000 ERROR org.apache.hadoop.hbase.master.HMaster: Failed to start master
      org.apache.hadoop.hbase.util.FileSystemVersionException: File system needs to be upgraded.  You have version null and I want version 7.  Run the '${HBASE_HOME}/bin/hbase migrate' script.
              at org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:189)
      

      Attachments

        Issue Links

          Activity

            People

              tsuna Benoit Sigoure
              tsuna Benoit Sigoure
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: