File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
hbase-server/src/main/java/org/apache/hadoop/hbase/mob Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 3131import org .apache .hadoop .hbase .client .Admin ;
3232import org .apache .hadoop .hbase .client .ColumnFamilyDescriptor ;
3333import org .apache .hadoop .hbase .client .CompactionState ;
34- import org .apache .hadoop .hbase .client .Connection ;
3534import org .apache .hadoop .hbase .client .RegionInfo ;
3635import org .apache .hadoop .hbase .client .TableDescriptor ;
3736import org .apache .hadoop .hbase .client .TableState ;
@@ -81,8 +80,7 @@ protected void chore() {
8180
8281 boolean reported = false ;
8382
84- try (Connection conn = master .getConnection (); Admin admin = conn .getAdmin ();) {
85-
83+ try (Admin admin = master .getConnection ().getAdmin ()) {
8684 TableDescriptors htds = master .getTableDescriptors ();
8785 Map <String , TableDescriptor > map = htds .getAll ();
8886 for (TableDescriptor htd : map .values ()) {
You can’t perform that action at this time.
0 commit comments