HBASE-17425 Fixed deprecated calls in TestUpdateConfiguration
This commit is contained in:
parent
62ccc340fd
commit
aec5581885
|
@ -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