[ 
https://issues.apache.org/jira/browse/HADOOP-15336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16417812#comment-16417812
 ] 

Sherwood Zheng commented on HADOOP-15336:
-----------------------------------------

The problem happens when I was testing the router. The client and router were 
3.2 and name node was 2.7. The problem is that 2.7 NN would return null for 
keyProviderUri, which would cause NPE when the router is calling 
setKeyProviderUri(), which happens during the router is preparing the result to 
send back to the client, here is the error trace on the router side. It is a 
backward compatiability issue in a sense that the client side talking to the 
namenode should handle the case when the keyProviderUri is returned as null. 

org.apache.hadoop.ipc.RemoteException(java.lang.NullPointerException): 
java.lang.NullPointerException

 at 
org.apache.hadoop.hdfs.protocol.proto.HdfsProtos$FsServerDefaultsProto$Builder.setKeyProviderUri(HdfsProtos.java:37035)

 at 
org.apache.hadoop.hdfs.protocolPB.PBHelperClient.convert(PBHelperClient.java:2159)

 at 
org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getServerDefaults(ClientNamenodeProtocolServerSideTranslatorPB.java:444)

 at 
org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)

 at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:523)

 at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:991)

 at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:869)

 at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:815)

 at java.security.AccessController.doPrivileged(Native Method)

 at javax.security.auth.Subject.doAs(Subject.java:422)

 at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1682)

 at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2675)

 

 

 

> NPE for FsServerDefaults.getKeyProviderUri() for clientProtocol communication 
> between 2.7 and 3.2
> -------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-15336
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15336
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.1.0, 3.2.0
>            Reporter: Sherwood Zheng
>            Assignee: Sherwood Zheng
>            Priority: Major
>              Labels: backward-incompatible, common
>




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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to