Explorar o código

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

bc Wong %!s(int64=14) %!d(string=hai) anos
pai
achega
dae55a7d7f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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,
     }