Most likely someone has compiled in your production hadoop tree. The default is to include the build subdirectory in the classpath ahead of the jars, and the compile process changes the version number.
I haven't looked at 0.20 but up through 0.19, src/saveVersion.sh handles this. On Thu, May 14, 2009 at 5:54 AM, Abhishek Verma <[email protected]>wrote: > Hi Starry, > > I noticed the same problem when I copied hadoop-metrics.properties from my > old hadoop-0.19 conf along with the other files. Make sure you are using > the > right version of the conf files. > > Hope that helps. > > -Abhishek. > > On Thu, May 14, 2009 at 7:48 AM, Starry SHI <[email protected]> wrote: > > > Nobody has encountered with these problems: "Error > > register getProtocolVersion" and "Error > > register getBuildVersion"? > > > > Starry > > > > /* Tomorrow is another day. So is today. */ > > > > > > > > On Tue, May 12, 2009 at 13:27, Starry SHI <[email protected]> wrote: > > > Hi, all. Today I noticed that my hadoop cluster (r0.20.0+jdk1.6) threw > > > some errors in RPC handling. Below is part of the content of namenode > > > log file: > > > > > > 2009-05-12 10:27:08,200 INFO org.apache.hadoop.ipc.Server: Error > > > register getProtocolVersion > > > java.lang.IllegalArgumentException: Duplicate > > metricsName:getProtocolVersion > > > at > > > org.apache.hadoop.metrics.util.MetricsRegistry.add(MetricsRegistry.java:56) > > > at > > > org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.<init>(MetricsTimeVaryingRate.java:89) > > > at > > > org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.<init>(MetricsTimeVaryingRate.java:99) > > > at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:523) > > > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:959) > > > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:955) > > > at java.security.AccessController.doPrivileged(Native Method) > > > at javax.security.auth.Subject.doAs(Subject.java:396) > > > at org.apache.hadoop.ipc.Server$Handler.run(Server.java:953) > > > 2009-05-12 10:27:08,200 INFO org.apache.hadoop.ipc.Server: Error > > > register getProtocolVersion > > > java.lang.IllegalArgumentException: Duplicate > > metricsName:getProtocolVersion > > > at > > > org.apache.hadoop.metrics.util.MetricsRegistry.add(MetricsRegistry.java:56) > > > at > > > org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.<init>(MetricsTimeVaryingRate.java:89) > > > at > > > org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.<init>(MetricsTimeVaryingRate.java:99) > > > at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:523) > > > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:959) > > > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:955) > > > at java.security.AccessController.doPrivileged(Native Method) > > > at javax.security.auth.Subject.doAs(Subject.java:396) > > > at org.apache.hadoop.ipc.Server$Handler.run(Server.java:953) > > > 2009-05-12 10:27:08,200 INFO org.apache.hadoop.ipc.Server: Error > > > register getProtocolVersion > > > java.lang.IllegalArgumentException: Duplicate > > metricsName:getProtocolVersion > > > at > > > org.apache.hadoop.metrics.util.MetricsRegistry.add(MetricsRegistry.java:56) > > > at > > > org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.<init>(MetricsTimeVaryingRate.java:89) > > > at > > > org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.<init>(MetricsTimeVaryingRate.java:99) > > > at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:523) > > > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:959) > > > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:955) > > > at java.security.AccessController.doPrivileged(Native Method) > > > at javax.security.auth.Subject.doAs(Subject.java:396) > > > at org.apache.hadoop.ipc.Server$Handler.run(Server.java:953) > > > 2009-05-12 10:27:08,276 INFO org.apache.hadoop.ipc.Server: Error > > > register getBuildVersion > > > java.lang.IllegalArgumentException: Duplicate > metricsName:getBuildVersion > > > at > > > org.apache.hadoop.metrics.util.MetricsRegistry.add(MetricsRegistry.java:56) > > > at > > > org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.<init>(MetricsTimeVaryingRate.java:89) > > > at > > > org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.<init>(MetricsTimeVaryingRate.java:99) > > > at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:523) > > > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:959) > > > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:955) > > > at java.security.AccessController.doPrivileged(Native Method) > > > at javax.security.auth.Subject.doAs(Subject.java:396) > > > at org.apache.hadoop.ipc.Server$Handler.run(Server.java:953) > > > > > > I noticed that the similar error appears on the log in every datanode. > > > Can anybody tell me how to fix this? > > > > > > I have patched this: > > > https://issues.apache.org/jira/browse/HADOOP-5139, but the error still > > > exist. I really don't know what to do and am expecting for your help! > > > > > > Best regards, > > > Starry > > > > > > /* Tomorrow is another day. So is today. */ > > > > > > -- Alpha Chapters of my book on Hadoop are available http://www.apress.com/book/view/9781430219422 www.prohadoopbook.com a community for Hadoop Professionals
