Hello,
I recently had an issue that i tried to solve by debugging into the source code for Hadoop, but
i had a difficult time figuring out which version of the source to use.
according to this page: http://hortonworks.com/blog/announcing-hdp-2-2/
HDP 2.1 uses hadoop 2.4.0.
Well, I recently ran into the issue described in this bug report:
https://issues.apache.org/jira/browse/HDFS-2515
With this stack trace.
2014-11-19 05:37:09,580 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: NameNode metrics system started
2014-11-19 05:37:09,589 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: java.lang.IllegalArgumentException: Does not contain a valid host:port authority: file:///
at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:164)
at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:214)
at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:246)
at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:282)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:571)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1504)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1513)
I consulted grepcode for the source for this class in version 2.4.0 of hadoop, and hit upon this URL >
However the line numbers seem way off. For example,
initialize is supposed to be at this line: (NameNode.java:282)
But if you look in the above URL you will see initialize() begins on line 493. So, I’m doing something
wrong here, but not sure what.
Any advice or tips much appreciated.
Final Note:
I managed to get the original issue resolved even though i couldn’t figure out exactly which version of the
source to look at. But I’d still like to learn how to get the right source.
= chris