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

enables Thrift client to get the Region location

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • Thrift
    • None

    Description

      The current thrift interface has the getTableRegions() interface like below.

        list<TRegionInfo> getTableRegions(
          /** table name */
          1:Text tableName)
          throws (1:IOError io)
      
      struct TRegionInfo {
        1:Text startKey,
        2:Text endKey,
        3:i64 id,
        4:Text name,
        5:byte version
      }
      

      But the method don't have the region location information (where the region is located).

      I want to add the Thrift interfaces like below in HTable.java.

      public Map<HRegionInfo, HServerAddress> getRegionsInfo() throws IOException
      
      public HRegionLocation getRegionLocation(final String row)
      

      Attachments

        1. HBASE3577-2.patch
          6 kB
          Kazuki Ohta
        2. HBASE3577-1.patch
          6 kB
          Kazuki Ohta

        Activity

          People

            Unassigned Unassigned
            kzk Kazuki Ohta
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: