Sfoglia il codice sorgente

[test] Test cluster to set FS_DEFAULTFS.

bc Wong 13 anni fa
parent
commit
456ef8ea83
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 3
      desktop/libs/hadoop/src/hadoop/pseudo_hdfs4.py

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

@@ -459,9 +459,7 @@ def shared_cluster():
 
     # Fix config to reflect the cluster setup.
     closers = [
-      hadoop.conf.HDFS_CLUSTERS['default'].NN_HOST.set_for_testing('localhost'),
-      hadoop.conf.HDFS_CLUSTERS['default'].NN_HTTP_PORT.set_for_testing(cluster.dfs_http_port),
-      hadoop.conf.HDFS_CLUSTERS['default'].NN_HDFS_PORT.set_for_testing(cluster.namenode_port),
+      hadoop.conf.HDFS_CLUSTERS['default'].FS_DEFAULTFS.set_for_testing(cluster.fs_default_name),
       hadoop.conf.MR_CLUSTERS['default'].JT_HOST.set_for_testing('localhost'),
       hadoop.conf.MR_CLUSTERS['default'].JT_THRIFT_PORT.set_for_testing(cluster.jt_thrift_port),
     ]