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