我使用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这里有什么问题?
发布于 2015-10-16 21:16:33
试试这个:
HBaseTestingUtility testUtil = new HBaseTestingUtility();
testUtil.getConfiguration().set("test.hbase.zookeeper.property.clientPort", "2181");
MiniHBaseCluster cluster = testUtil.startMiniCluster();https://stackoverflow.com/questions/32752513
复制相似问题