trafodion-codereview mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From selvaganesang <...@git.apache.org>
Subject [GitHub] incubator-trafodion pull request #641: [JIRA TRAFODION-2141] Cluster view of...
Date Sat, 06 Aug 2016 23:00:58 GMT
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()


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message