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

[hbase-operator-tools] Merging regions failed when the table is not default namespace

    XMLWordPrintableJSON

    Details

      Description

      Suppose there is a table "test:test_table", if you want to merge regions and run the command:

      /opt/hbase/bin/hbase org.apache.hbase.RegionsMerger test:test_table 10
      

      Then you will get error:

      [main] ERROR org.apache.hbase.RegionsMerger - Merging regions failed:[main] ERROR org.apache.hbase.RegionsMerger - Merging regions failed:java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: test:test_table 
          at org.apache.hadoop.fs.Path.initialize(Path.java:259) ~[hadoop-common-3.2.0.jar:?] 
          at org.apache.hadoop.fs.Path.<init>(Path.java:217) ~[hadoop-common-3.2.0.jar:?] 
          at org.apache.hadoop.fs.Path.<init>(Path.java:125) ~[hadoop-common-3.2.0.jar:?] 
          at org.apache.hbase.RegionsMerger.getTablePath(RegionsMerger.java:93) ~[hbase-tools-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT] 
          at org.apache.hbase.RegionsMerger.mergeRegions(RegionsMerger.java:163) ~[hbase-tools-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT] 
          at org.apache.hbase.RegionsMerger.run(RegionsMerger.java:237) [hbase-tools-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT] 
          at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76) [hadoop-common-3.2.0.jar:?] 
          at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90) [hadoop-common-3.2.0.jar:?] 
          at org.apache.hbase.RegionsMerger.main(RegionsMerger.java:247) [hbase-tools-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]Caused by: java.net.URISyntaxException: Relative path in absolute URI: test:test_table 
          at java.net.URI.checkPath(URI.java:1823) ~[?:1.8.0_121] 
          at java.net.URI.<init>(URI.java:745) ~[?:1.8.0_121] 
          at org.apache.hadoop.fs.Path.initialize(Path.java:256) ~[hadoop-common-3.2.0.jar:?]
         ... 8 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                DeanZ Baiqiang Zhao
                Reporter:
                DeanZ Baiqiang Zhao
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: