比如我的版本是2.8.4
官网文档是:
http://hadoop.apache.org/docs/r2.8.4/
基本配置文件:包括一般的端口
hdfs-default.xml dfs.namenode.secondary.http-address 0.0.0.0:50090 The secondary namenode http server address and port. dfs.namenode.secondary.https-address 0.0.0.0:50091 The secondary namenode HTTPS server address and port. dfs.datanode.address 0.0.0.0:50010 The datanode server address and port for data transfer. dfs.datanode.http.address 0.0.0.0:50075 The datanode http server address and port. dfs.datanode.ipc.address 0.0.0.0:50020 The datanode ipc server address and port. dfs.datanode.http.internal-proxy.port 0 The datanode's internal web proxy port. By default it selects a random port available in runtime. dfs.datanode.handler.count 10 The number of server threads for the datanode. dfs.namenode.http-address 0.0.0.0:50070