hadoop - Find port number where HDFS is listening -
hadoop - Find port number where HDFS is listening - i want access hdfs qualified names such : hadoop fs -ls hdfs://machine-name:8020/user i access hdfs with hadoop fs -ls /user however, writing test cases should work on different distributions(hdp, cloudera, mapr...etc) involves accessing hdfs files qualified names. i understand hdfs://machine-name:8020 defined in core-site.xml fs.default.name . seems different on different distributions. example, hdfs maprfs on mapr. ibm biginsights don't have core-site.xml in $hadoop_home/conf . there doesn't seem way hadoop tells me what's defined in fs.default.name it's command line options. how can value defined in fs.default.name reliably command line? the test running on namenode, machine name easy. getting port number(8020) bit difficult. tried lsof, netstat.. still couldn't find reliable way. following command available in apache hadoop 2.0 can used getting values hadoop configuration pro...