HBASE-17425 Fixed deprecated calls in TestUpdateConfiguration

This commit is contained in:
Jan Hentschel 2017-01-04 22:13:39 +01:00
parent 62ccc340fd
commit aec5581885
1 changed files with 2 additions and 2 deletions

View File

@ -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();