hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron T. Myers (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-2694) Removal of Avro broke non-PB NN services
Date Fri, 16 Dec 2011 21:56:31 GMT

    [ https://issues.apache.org/jira/browse/HDFS-2694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171232#comment-13171232

Aaron T. Myers commented on HDFS-2694:

Hey Suresh, the patch you provided does not fix the issue. The static initialization of {{WritableRpcEngine}}
is still not running, and so {{org.apache.hadoop.ipc.Server.registerProtocolEngine}} is never
getting called for writable. I just tested this by applying your patch, recompiling, running
an NN, and trying to run `hdfs groups'.
> Removal of Avro broke non-PB NN services
> ----------------------------------------
>                 Key: HDFS-2694
>                 URL: https://issues.apache.org/jira/browse/HDFS-2694
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.24.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HDFS-2694.patch, HDFS-2694.txt, HDFS-2694.txt
> RpcEngine implementations have to register themselves associated with an RpcKind. Both
WritableRpcEngine and ProtobufRpcEngine do this registration in static initialization blocks.
It used to be that the static initializer block for WritableRpcEngine was triggered when AvroRpcEngine
was initialized, since this instantiated a WritableRpcEngine object. With AvroRpcEngine gone,
there's nothing in the NN to trigger the WritableRpcEngine static initialization block. Therefore,
those RPC services which still use Writable and not PB no longer work.
> For example, if I try to run `hdfs groups' on trunk, which uses the GetUserMappingsProtocol,
this error gets spit out:
> {noformat}
> $ hdfs groups
> log4j:ERROR Could not find value for key log4j.appender.NullAppender
> log4j:ERROR Could not instantiate appender named "NullAppender".
> Exception in thread "main" java.io.IOException: Unknown rpc kind RPC_WRITABLE
> 	at org.apache.hadoop.ipc.Client.call(Client.java:1136)
> 	at org.apache.hadoop.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:205)
> 	at $Proxy6.getGroupsForUser(Unknown Source)
> 	at org.apache.hadoop.tools.GetGroupsBase.run(GetGroupsBase.java:71)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:69)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:83)
> 	at org.apache.hadoop.hdfs.tools.GetGroups.main(GetGroups.java:56)
> {noformat}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message