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

Fix table.jsp in regards to splitting a region/table with an optional splitkey



    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.90.0
    • Fix Version/s: 2.0.0
    • Component/s: master
    • Labels:
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      UI pages for splitting/merging now operate by taking a row key prefix from the user rather than a full region name.
    • Tags:


      After HBASE-3328 and HBASE-3437 went in there is also the table.jsp that needs updating to support the same features. Also, at the same time update the wording, for example

      This action will force a split of all eligible regions of the table, or, if a key is supplied, only the region containing the given key. An eligible region is one that does not contain any references to other regions. Split requests for noneligible regions will be ignored.

      I think it means it splits either all regions (that are splittable) or a specific one. It says though "the region containing the given key", that seems wrong in any event. Currently we do a split on the tablename when nothing was specified or else do an internal get(region), which is an exact match on the rows in .META.. In other words you need to match the region name exactly or else it fails. It reports it has accepted the request but logs internally

      2011-01-21 15:37:24,340 INFO org.apache.hadoop.hbase.client.HBaseAdmin: No server in .META. for csfsef; pair=null

      Error reporting could be better but because of the async nature this is more difficult, yet it would be nice there is some concept of a Future to be able to poll the result if needed.

      Finally, when you go back to the previous page after submitting the split the entered values show up in the "compact" input fields, at least on my Chrome. The inputs in both forms are named the same so it seems to confuse it. This could be improved a lot by making the landing page reload the main one automatically or refresh on reload instead of submitting the request again.


        1. HBASE-3462-BM-01.patch
          3 kB
          Balazs Meszaros
        2. HBASE-3462-BM-01.patch
          3 kB
          Michael Stack



            • Assignee:
              meszibalu Balazs Meszaros
              larsgeorge Lars George
            • Votes:
              0 Vote for this issue
              4 Start watching this issue


              • Created: