[ 
https://issues.apache.org/jira/browse/HADOOP-15784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

yunfei liu updated HADOOP-15784:
--------------------------------
    Affects Version/s: 2.8.2
           Attachment: HADOOP-15784-1.patch
               Status: Patch Available  (was: Open)

> Tracing in Hadoop failed because of  Unknown protocol: 
> org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-15784
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15784
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.8.2
>            Reporter: yunfei liu
>            Priority: Major
>         Attachments: HADOOP-15784-1.patch
>
>
> I'm trying to use tracing feature in Hadoop according to this document 
> [Enabling Dapper-like Tracing in 
> Hadoop|https://hadoop.apache.org/docs/r2.8.5/hadoop-project-dist/hadoop-common/Tracing.html]
> when executing command 
> {code:java}
> hadoop trace -list -host localhost:8020
> {code}
>  it failed with exception 
> {code:java}
> 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)
> {code}
> 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
> {code:java}
> [hdfs@yunfeil ~]$ hadoop trace -list -host localhost:8020
> ID  CLASS                                     
> 1   org.apache.htrace.impl.ZipkinSpanReceiver 
> {code}
> the code change is as the patch 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to