Browse Source

[test] Use random ports for pseudo-distributed DN in testing

bc Wong 13 years ago
parent
commit
dae55a7d7f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      desktop/libs/hadoop/src/hadoop/pseudo_hdfs4.py

+ 3 - 0
desktop/libs/hadoop/src/hadoop/pseudo_hdfs4.py

@@ -388,6 +388,9 @@ class PseudoHdfs4(object):
       'dfs.http.address': self._dfs_http_address,
       'dfs.namenode.safemode.extension': 1,
       'dfs.namenode.safemode.threshold-pct': 0,
+      'dfs.datanode.address': 'localhost:0',
+      'dfs.datanode.http.address': 'localhost:0',
+      'dfs.datanode.ipc.address': 'localhost:0',
       'dfs.replication': 1,
       'dfs.safemode.min.datanodes': 1,
     }