You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Wei-Chiu Chuang (JIRA)" <ji...@apache.org> on 2019/08/16 00:09:00 UTC
[jira] [Assigned] (HADOOP-15784) Tracing in Hadoop failed because
of Unknown protocol:
org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService
[ https://issues.apache.org/jira/browse/HADOOP-15784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wei-Chiu Chuang reassigned HADOOP-15784:
----------------------------------------
Assignee: yunfei liu
> 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
> Components: tracing
> Affects Versions: 2.8.2
> Reporter: yunfei liu
> Assignee: 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.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org