diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ObjectStoreHandler.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ObjectStoreHandler.java index a5d11c9f84..0bcb0588d4 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ObjectStoreHandler.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ObjectStoreHandler.java @@ -114,6 +114,8 @@ public ObjectStoreHandler(Configuration conf) throws IOException { NetUtils.getDefaultSocketFactory(conf), Client.getRpcTimeout(conf))); + RPC.setProtocolEngine(conf, KeySpaceManagerProtocolPB.class, + ProtobufRpcEngine.class); long ksmVersion = RPC.getProtocolVersion(KeySpaceManagerProtocolPB.class); InetSocketAddress ksmAddress = OzoneClientUtils.getKsmAddress(conf);