Otis Gospodnetic wrote:
Konstantin & Co, please correct me if I'm wrong, but looking at
hadoop-default.xml makes me think that dfs.http.address is only the URL for the NN
*Web UI*. In other words, this is where we people go look at the NN.
The secondary NN must then be using only the Primary NN URL specified in fs.default.name.
This URL looks like hdfs://name-node-hostname-here/. Something in Hadoop then knows the
exact port for the Primary NN based on the URI schema (e.g. "hdfs://") in this
URL.
Is this correct?
Yes. The default port for an HDFS URI is 8020 (NameNode.DEFAULT_PORT).
The value of fs.default.name is used by HDFS. When starting the
namenode or datanodes, this must be an HDFS URI. If this names an
explicit port, then that will be used, otherwise the default, 8020 will
be used.
The default port for HTTP URIs is 80, but the namenode typically runs
its web UI on 50070 (the default for dfs.http.address).
Doug