[ 
https://issues.apache.org/jira/browse/TRAFODION-2141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15410747#comment-15410747
 ] 

ASF GitHub Bot commented on TRAFODION-2141:
-------------------------------------------

Github user selvaganesang commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/641#discussion_r73793253
  
    --- Diff: core/sql/src/main/java/org/trafodion/sql/TrafRegionStats.java ---
    @@ -128,5 +155,90 @@ public TrafRegionStats (HTable table, Admin admin) 
throws IOException {
                 }
                 
         }
    +
    +
    +    public TrafRegionStats () throws IOException {
    +        Configuration config = HBaseConfiguration.create();
    +
    +        hbAdmin = new HBaseAdmin(config);
    +    }
    +
    +    public boolean Open () throws IOException {
    +        
    +        clusterStatus = hbAdmin.getClusterStatus();
    --- End diff --
    
    HBaseAdmin is deprecated and its use is avoided. Please change it to use 
Admin instead. You need to pass the connection object and then use 
connection.getAdmin()


> Provide cluster view of region stats over all regions.
> ------------------------------------------------------
>
>                 Key: TRAFODION-2141
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2141
>             Project: Apache Trafodion
>          Issue Type: Improvement
>            Reporter: Anoop Sharma
>            Assignee: Anoop Sharma
>            Priority: Minor
>
> Add support to return hbase stats over all regions and region
> servers by providing cluster view of returned stats.
> In addition, add a new column, region_server, to current region
> stats virtual table.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to