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

Print a message when an invalid hbase.rootdir is passed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.90.5
    • Fix Version/s: 0.90.6, 0.92.1, 0.94.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      As seen on the mailing list: http://comments.gmane.org/gmane.comp.java.hadoop.hbase.user/24124

      If hbase.rootdir doesn't specify a folder on hdfs we crash while opening a path to .oldlogs:

      2012-02-02 23:07:26,292 FATAL org.apache.hadoop.hbase.master.HMaster: Unhandled exception. Starting shutdown.
      java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: hdfs://sv4r11s38:9100.oldlogs
              at org.apache.hadoop.fs.Path.initialize(Path.java:148)
              at org.apache.hadoop.fs.Path.<init>(Path.java:71)
              at org.apache.hadoop.fs.Path.<init>(Path.java:50)
              at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:112)
              at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:448)
              at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:326)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: java.net.URISyntaxException: Relative path in absolute URI: hdfs://sv4r11s38:9100.oldlogs
              at java.net.URI.checkPath(URI.java:1787)
              at java.net.URI.<init>(URI.java:735)
              at org.apache.hadoop.fs.Path.initialize(Path.java:145)
              ... 6 more
      

      It could also crash anywhere else, this just happens to be the first place we use hbase.rootdir. We need to verify that it's an actual folder.

        Attachments

        1. hbase-5327.txt
          2 kB
          Jimmy Xiang
        2. hbase-5327_v2.txt
          4 kB
          Jimmy Xiang

          Activity

            People

            • Assignee:
              jxiang Jimmy Xiang
              Reporter:
              jdcryans Jean-Daniel Cryans
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: