Fix to previous trunk merge - RPC's addProtocol method now needs an RpcKind
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-1623@1210638 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8a4db4d331
commit
6491444357
|
@ -163,7 +163,8 @@ class NameNodeRpcServer implements NamenodeProtocols {
|
||||||
RefreshUserMappingsProtocol.class, this);
|
RefreshUserMappingsProtocol.class, this);
|
||||||
this.serviceRpcServer.addProtocol(RpcKind.RPC_WRITABLE,
|
this.serviceRpcServer.addProtocol(RpcKind.RPC_WRITABLE,
|
||||||
GetUserMappingsProtocol.class, this);
|
GetUserMappingsProtocol.class, this);
|
||||||
this.serviceRpcServer.addProtocol(HAServiceProtocol.class, this);
|
this.serviceRpcServer.addProtocol(RpcKind.RPC_WRITABLE,
|
||||||
|
HAServiceProtocol.class, this);
|
||||||
|
|
||||||
this.serviceRPCAddress = this.serviceRpcServer.getListenerAddress();
|
this.serviceRPCAddress = this.serviceRpcServer.getListenerAddress();
|
||||||
nn.setRpcServiceServerAddress(conf, serviceRPCAddress);
|
nn.setRpcServiceServerAddress(conf, serviceRPCAddress);
|
||||||
|
@ -188,7 +189,8 @@ class NameNodeRpcServer implements NamenodeProtocols {
|
||||||
RefreshUserMappingsProtocol.class, this);
|
RefreshUserMappingsProtocol.class, this);
|
||||||
this.clientRpcServer.addProtocol(RpcKind.RPC_WRITABLE,
|
this.clientRpcServer.addProtocol(RpcKind.RPC_WRITABLE,
|
||||||
GetUserMappingsProtocol.class, this);
|
GetUserMappingsProtocol.class, this);
|
||||||
this.clientRpcServer.addProtocol(HAServiceProtocol.class, this);
|
this.clientRpcServer.addProtocol(RpcKind.RPC_WRITABLE,
|
||||||
|
HAServiceProtocol.class, this);
|
||||||
|
|
||||||
|
|
||||||
// set service-level authorization security policy
|
// set service-level authorization security policy
|
||||||
|
|
Loading…
Reference in New Issue