Skip to content

Commit

Permalink
HDFS-16140. TestBootstrapAliasmap fails by BindException. (#3229)
Browse files Browse the repository at this point in the history
Reviewed-by: Hui Fei <ferhui@apache.org>
  • Loading branch information
aajisaka authored Jul 26, 2021
1 parent 5d76549 commit d710ec8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public class TestBootstrapAliasmap {
public void setup() throws Exception {
Configuration conf = new Configuration();
MiniDFSCluster.setupNamenodeProvidedConfiguration(conf);
// use free port instead of default 50200 port
conf.set(DFSConfigKeys.DFS_PROVIDED_ALIASMAP_INMEMORY_RPC_ADDRESS,
"127.0.0.1:" + NetUtils.getFreeSocketPort());
cluster = new MiniDFSCluster.Builder(conf)
.numDataNodes(1)
.build();
Expand Down

0 comments on commit d710ec8

Please sign in to comment.