Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.20.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed

      Description

      Somewhat like Hadoop's JobClient.getClusterStatus().

      Provides status information to clients:

      • The names of region servers in the cluster.
      • The average cluster load.
      • The number of regions deployed on the cluster.
      • The number of requests since last report.
      • Detailed region server loading and resource usage information: A list of HServerInfo, containing load information as HServerLoad, containing per-region load information as HServerLoad.RegionLoad.
      1. hbase-1454-2.patch
        13 kB
        Andrew Purtell
      2. hbase-1454-1.patch
        8 kB
        Andrew Purtell

        Activity

        Hide
        Andrew Purtell added a comment -

        Patch withdrawn. Working on a version -2 with shell tool support.

        Show
        Andrew Purtell added a comment - Patch withdrawn. Working on a version -2 with shell tool support.
        Hide
        stack added a comment -

        +1

        Thats nice Andrew.

        Show
        stack added a comment - +1 Thats nice Andrew.
        Hide
        Andrew Purtell added a comment -

        Committed to trunk.

        Show
        Andrew Purtell added a comment - Committed to trunk.
        Hide
        Andrew Purtell added a comment -

        Committed a minor formatting update for shell support:

        Help:

         status    Show cluster status. Can be 'summary', 'simple', or 'detailed'. The
                   default is 'summary'. Examples:
        
                   hbase> status
                   hbase> status 'simple'
                   hbase> status 'summary'
                   hbase> status 'detailed'
        

        Summary format:

        hbase(main):002:0> status
        3 servers, 0 dead, 45.3333 average load
        

        Simple format:

        hbase(main):003:0> status 'simple'
        3 live servers
            test03:60020 1243482181202
                requests=1193, regions=45, usedHeap=463, maxHeap=998
            test04:60020 1243482181203
                requests=1836, regions=45, usedHeap=642, maxHeap=998
            test02:60020 1243482181204
                requests=1482, regions=46, usedHeap=734, maxHeap=998
        0 dead servers
        

        Detailed format:

        hbase(main):004:0> status 'detailed'
        3 live servers
            test03:60020 1243482181202
                requests=3486, regions=45, usedHeap=469, maxHeap=998
                content,d7e24a912b69b0c312440cf5cb40bf70,1243522630977
                    stores=3, storefiles=6, memcacheSize=1, storefileIndexSize=0
                content,0996e06c55ed93f99ef0ae9f2e0e627e,1243514799522
                    stores=3, storefiles=9, memcacheSize=9, storefileIndexSize=0
                content,6038a15ca3fb9cfa4b1bc02791eba224,1243519043603
                    stores=3, storefiles=7, memcacheSize=15, storefileIndexSize=0
                [...]
            test04:60020 1243482181203
                requests=4471, regions=45, usedHeap=651, maxHeap=998
                content,5a177f3c7e0148e6bc5a6df5f91a8d1e,1243511119662
                    stores=3, storefiles=6, memcacheSize=8, storefileIndexSize=0
                content,2abc43d76793842dbbef06ccfe4dd2ab,1243507380373
                    stores=3, storefiles=9, memcacheSize=14, storefileIndexSize=0
                content,d2f35ddc8f32dc03c7ce5c4892ed57e7,1243524775729
                    stores=3, storefiles=6, memcacheSize=14, storefileIndexSize=0
                [...]
            test02:60020 1243482181204
                requests=4353, regions=46, usedHeap=739, maxHeap=998
                content,d984a5a4d9de9800cb7fd2c90a67cd3c,1243519734765
                    stores=3, storefiles=6, memcacheSize=9, storefileIndexSize=0
                content,66310be569feabcad7710e37cd7c1eb7,1243515202180
                    stores=3, storefiles=7, memcacheSize=1, storefileIndexSize=0
                content,c0c3f32888ca87ef78d255a48f9f4f99,1243511200845
                    stores=3, storefiles=5, memcacheSize=1, storefileIndexSize=0
                [...]
        0 dead servers
        
        Show
        Andrew Purtell added a comment - Committed a minor formatting update for shell support: Help: status Show cluster status. Can be 'summary', 'simple', or 'detailed'. The default is 'summary'. Examples: hbase> status hbase> status 'simple' hbase> status 'summary' hbase> status 'detailed' Summary format: hbase(main):002:0> status 3 servers, 0 dead, 45.3333 average load Simple format: hbase(main):003:0> status 'simple' 3 live servers test03:60020 1243482181202 requests=1193, regions=45, usedHeap=463, maxHeap=998 test04:60020 1243482181203 requests=1836, regions=45, usedHeap=642, maxHeap=998 test02:60020 1243482181204 requests=1482, regions=46, usedHeap=734, maxHeap=998 0 dead servers Detailed format: hbase(main):004:0> status 'detailed' 3 live servers test03:60020 1243482181202 requests=3486, regions=45, usedHeap=469, maxHeap=998 content,d7e24a912b69b0c312440cf5cb40bf70,1243522630977 stores=3, storefiles=6, memcacheSize=1, storefileIndexSize=0 content,0996e06c55ed93f99ef0ae9f2e0e627e,1243514799522 stores=3, storefiles=9, memcacheSize=9, storefileIndexSize=0 content,6038a15ca3fb9cfa4b1bc02791eba224,1243519043603 stores=3, storefiles=7, memcacheSize=15, storefileIndexSize=0 [...] test04:60020 1243482181203 requests=4471, regions=45, usedHeap=651, maxHeap=998 content,5a177f3c7e0148e6bc5a6df5f91a8d1e,1243511119662 stores=3, storefiles=6, memcacheSize=8, storefileIndexSize=0 content,2abc43d76793842dbbef06ccfe4dd2ab,1243507380373 stores=3, storefiles=9, memcacheSize=14, storefileIndexSize=0 content,d2f35ddc8f32dc03c7ce5c4892ed57e7,1243524775729 stores=3, storefiles=6, memcacheSize=14, storefileIndexSize=0 [...] test02:60020 1243482181204 requests=4353, regions=46, usedHeap=739, maxHeap=998 content,d984a5a4d9de9800cb7fd2c90a67cd3c,1243519734765 stores=3, storefiles=6, memcacheSize=9, storefileIndexSize=0 content,66310be569feabcad7710e37cd7c1eb7,1243515202180 stores=3, storefiles=7, memcacheSize=1, storefileIndexSize=0 content,c0c3f32888ca87ef78d255a48f9f4f99,1243511200845 stores=3, storefiles=5, memcacheSize=1, storefileIndexSize=0 [...] 0 dead servers

          People

          • Assignee:
            Andrew Purtell
            Reporter:
            Andrew Purtell
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development