HBASE-25554 NPE when init RegionMover (#2927)
Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
3896e10728
commit
fe0d888633
|
@ -84,7 +84,6 @@ public class RegionMover extends AbstractHBaseTool implements Closeable {
|
||||||
public static final int DEFAULT_MOVE_RETRIES_MAX = 5;
|
public static final int DEFAULT_MOVE_RETRIES_MAX = 5;
|
||||||
public static final int DEFAULT_MOVE_WAIT_MAX = 60;
|
public static final int DEFAULT_MOVE_WAIT_MAX = 60;
|
||||||
public static final int DEFAULT_SERVERSTART_WAIT_MAX = 180;
|
public static final int DEFAULT_SERVERSTART_WAIT_MAX = 180;
|
||||||
private final RackManager rackManager;
|
|
||||||
|
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(RegionMover.class);
|
private static final Logger LOG = LoggerFactory.getLogger(RegionMover.class);
|
||||||
|
|
||||||
|
@ -100,6 +99,7 @@ public class RegionMover extends AbstractHBaseTool implements Closeable {
|
||||||
private int port;
|
private int port;
|
||||||
private Connection conn;
|
private Connection conn;
|
||||||
private Admin admin;
|
private Admin admin;
|
||||||
|
private RackManager rackManager;
|
||||||
|
|
||||||
private RegionMover(RegionMoverBuilder builder) throws IOException {
|
private RegionMover(RegionMoverBuilder builder) throws IOException {
|
||||||
this.hostname = builder.hostname;
|
this.hostname = builder.hostname;
|
||||||
|
@ -122,7 +122,6 @@ public class RegionMover extends AbstractHBaseTool implements Closeable {
|
||||||
}
|
}
|
||||||
|
|
||||||
private RegionMover() {
|
private RegionMover() {
|
||||||
rackManager = new RackManager(conf);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue