Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.99.0
-
None
-
None
-
Reviewed
Description
Where feasible, the code should be updated to use the HConnection factory method for the admin interface. For instance, the following:
HBaseAdmin admin = new HBaseAdmin(conf);
would be changed to:
Admin admin = HConnectionManager.createConnection(conf).getAdmin();
This would also require updates to admin calls that refer to a tablename as byte[] or String.
admin.enableTable("mytable");
would change to:
admin.enableTable(TableName.valueOf("mytable"));
Attachments
Attachments
Issue Links
- breaks
-
HBASE-11664 Build broken - TestVisibilityWithCheckAuths
- Closed
- relates to
-
HBASE-11630 Refactor TestAdmin to use Admin interface instead of HBaseAdmin
- Closed
-
HBASE-10602 Cleanup HTable public interface
- Closed