Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
2.8.2
-
None
-
None
Description
I'm trying to use tracing feature in Hadoop according to this document Enabling Dapper-like Tracing in Hadoop
when executing command
hadoop trace -list -host localhost:8020
it failed with exception
Exception in thread "main" org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): Unknown protocol: org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService
at org.apache.hadoop.ipc.Client.getRpcResponse(Client.java:1495)
at org.apache.hadoop.ipc.Client.call(Client.java:1441)
at org.apache.hadoop.ipc.Client.call(Client.java:1351)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:235)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:116)
at com.sun.proxy.$Proxy8.listSpanReceivers(Unknown Source)
at org.apache.hadoop.tracing.TraceAdminProtocolTranslatorPB.listSpanReceivers(TraceAdminProtocolTranslatorPB.java:59)
at org.apache.hadoop.tracing.TraceAdmin.listSpanReceivers(TraceAdmin.java:73)
at org.apache.hadoop.tracing.TraceAdmin.run(TraceAdmin.java:192)
at org.apache.hadoop.tracing.TraceAdmin.main(TraceAdmin.java:210)
after examining the source code , I change the protocalName in TraceAdminProtocolPB.java from org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService to org.apache.hadoop.tracing.TraceAdminProtocol , and the tracing function finally work well
[hdfs@yunfeil ~]$ hadoop trace -list -host localhost:8020 ID CLASS 1 org.apache.htrace.impl.ZipkinSpanReceiver
the code change is as the patch