Thanks for posting this interesting question, Vivek.
I was very intrigued, and I dug up some code for Apache Hadoop 1.2.1 - the initial section for each of the master and slave; But there were no additional port bindings except the standard documented one.
I did a couple of experiments on ways to run namenode and monitor ports using netstat -nltpa
1) hasoop --config ../ conf namenode -regular
2) Direct call of the main class Namenode
3) Add default value core-default.xml and run namenode
My observation was for No. 2 and No. 3, only standard ports appeared, so I looked at java options, and that was bingo.
Comment all below in hadoop-env.sh and then run hasoop, you will see only the standard port, so the additional ports that you see are all JMX bin ports
export HADOOP_NAMENODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_NAMENODE_OPTS" export HADOOP_SECONDARYNAMENODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_SECONDARYNAMENODE_OPTS" export HADOOP_DATANODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_DATANODE_OPTS" export HADOOP_BALANCER_OPTS="-Dcom.sun.management.jmxremote $HADOOP_BALANCER_OPTS" export HADOOP_JOBTRACKER_OPTS="-Dcom.sun.management.jmxremote $HADOOP_JOBTRACKER_OPTS"
Hope this helps.
mbaxi source share