HBASE-15824 LocalHBaseCluster gets bind exception in master info port - ADDENDUM
This commit is contained in:
parent
3bd9220f0c
commit
c1ada0a373
|
@ -144,9 +144,6 @@ public class LocalHBaseCluster {
|
|||
// Always have masters and regionservers come up on port '0' so we don't
|
||||
// clash over default ports.
|
||||
conf.set(HConstants.MASTER_PORT, "0");
|
||||
if (conf.getInt(HConstants.MASTER_INFO_PORT, 0) != -1) {
|
||||
conf.set(HConstants.MASTER_INFO_PORT, "0");
|
||||
}
|
||||
conf.set(HConstants.REGIONSERVER_PORT, "0");
|
||||
if (conf.getInt(HConstants.REGIONSERVER_INFO_PORT, 0) != -1) {
|
||||
conf.set(HConstants.REGIONSERVER_INFO_PORT, "0");
|
||||
|
|
|
@ -86,6 +86,9 @@ public class MiniHBaseCluster extends HBaseCluster {
|
|||
throws IOException, InterruptedException {
|
||||
super(conf);
|
||||
conf.set(HConstants.MASTER_PORT, "0");
|
||||
if (conf.getInt(HConstants.MASTER_INFO_PORT, 0) != -1) {
|
||||
conf.set(HConstants.MASTER_INFO_PORT, "0");
|
||||
}
|
||||
|
||||
// Hadoop 2
|
||||
CompatibilityFactory.getInstance(MetricsAssertHelper.class).init();
|
||||
|
|
Loading…
Reference in New Issue