【发布时间】:2015-12-21 12:50:24
【问题描述】:
我使用 HBaseTestingUtility 进行集成测试。我想让 Zookeeper 监听 2181 端口
HBaseTestingUtility testUtil = new HBaseTestingUtility();
testUtil.getConfiguration().set("hbase.zookeeper.property.clientPort", "2181");
MiniHBaseCluster cluster = testUtil.startMiniCluster();
但是,每次测试运行时,Zookeeper 都会在随机端口上监听。
LOG: Started MiniZK Cluster and connect 1 ZK server on client port: 62251
这里有什么问题?
【问题讨论】:
标签: configuration hbase apache-zookeeper hbasetestingutility