HDFS-11958. Ozone: Ensure KSM is initiated using ProtobufRpcEngine. Contributed by Weiwei Yang.
This commit is contained in:
parent
423c4bde74
commit
62a1fa1af0
|
@ -114,6 +114,8 @@ public final class ObjectStoreHandler implements Closeable {
|
||||||
NetUtils.getDefaultSocketFactory(conf),
|
NetUtils.getDefaultSocketFactory(conf),
|
||||||
Client.getRpcTimeout(conf)));
|
Client.getRpcTimeout(conf)));
|
||||||
|
|
||||||
|
RPC.setProtocolEngine(conf, KeySpaceManagerProtocolPB.class,
|
||||||
|
ProtobufRpcEngine.class);
|
||||||
long ksmVersion =
|
long ksmVersion =
|
||||||
RPC.getProtocolVersion(KeySpaceManagerProtocolPB.class);
|
RPC.getProtocolVersion(KeySpaceManagerProtocolPB.class);
|
||||||
InetSocketAddress ksmAddress = OzoneClientUtils.getKsmAddress(conf);
|
InetSocketAddress ksmAddress = OzoneClientUtils.getKsmAddress(conf);
|
||||||
|
|
Loading…
Reference in New Issue