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

locate_region shell command

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.2.0, 2.0.0
    • shell
    • None

    Description

      Sometimes it is helpful to get the region location given a specified key, without having to scan meta and look at the keys.

      so, having in the shell something like:

      hbase(main):008:0> locate_region 'testtb', 'z'
      HOST                         REGION                                                                           
       localhost:42006             {ENCODED => 7486fee0129f0e3a3e671fec4a4255d5, 
                                    NAME => 'testtb,m,1449508841130.7486fee0129f0e3a3e671fec4a4255d5.',
                                    STARTKEY => 'm', ENDKEY => ''}                  
      1 row(s) in 0.0090 seconds
      

      Attachments

        1. HBASE-14941_branch-1.patch
          4 kB
          Matteo Bertozzi
        2. HBASE-14941-v1_branch-1.patch
          4 kB
          Matteo Bertozzi
        3. HBASE-14941-v2_branch-1.patch
          5 kB
          Matteo Bertozzi

        Activity

          People

            mbertozzi Matteo Bertozzi
            mbertozzi Matteo Bertozzi
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: