HBASE-17425 Fixed deprecated calls in TestUpdateConfiguration
This commit is contained in:
parent
e880946f53
commit
c98bab51de
|
@ -49,7 +49,7 @@ public class TestUpdateConfiguration {
|
|||
@Test
|
||||
public void testOnlineConfigChange() throws IOException {
|
||||
LOG.debug("Starting the test");
|
||||
Admin admin = TEST_UTIL.getHBaseAdmin();
|
||||
Admin admin = TEST_UTIL.getAdmin();
|
||||
ServerName server = TEST_UTIL.getHBaseCluster().getRegionServer(0).getServerName();
|
||||
admin.updateConfiguration(server);
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ public class TestUpdateConfiguration {
|
|||
// update hbase-site.xml by overwriting it
|
||||
Files.copy(cnf2Path, cnfPath, StandardCopyOption.REPLACE_EXISTING);
|
||||
|
||||
Admin admin = TEST_UTIL.getHBaseAdmin();
|
||||
Admin admin = TEST_UTIL.getAdmin();
|
||||
ServerName server = TEST_UTIL.getHBaseCluster().getMaster().getServerName();
|
||||
admin.updateConfiguration(server);
|
||||
Configuration conf = TEST_UTIL.getMiniHBaseCluster().getMaster().getConfiguration();
|
||||
|
|
Loading…
Reference in New Issue