소스 검색

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

bc Wong 14 년 전
부모
커밋
dae55a7d7f
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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,
     }