Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-11958

Ozone: Ensure KSM is initiated using ProtobufRpcEngine

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • HDFS-7240
    • ozone
    • None
    • Reviewed

    Description

      Reproduce Steps

      1. Launch an ozone cluster
      2. Create a volume via commandline
        hdfs oz -createVolume http://ozone1.fyre.ibm.com:9864/volume-wwei-0 -user root
        

      it failed with following error

      SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
      java.lang.RuntimeException: java.lang.NoSuchFieldException: versionID
       at org.apache.hadoop.ipc.RPC.getProtocolVersion(RPC.java:182)
          at org.apache.hadoop.ipc.WritableRpcEngine$Invocation.<init>(WritableRpcEngine.java:114)
          at org.apache.hadoop.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:247)
          at com.sun.proxy.$Proxy18.createVolume(Unknown Source)
      ...
      Caused by: java.lang.NoSuchFieldException: versionID
          at java.lang.Class.getField(Class.java:1703)
          at org.apache.hadoop.ipc.RPC.getProtocolVersion(RPC.java:178)
          ... 25 more
      

      This was because keySpaceManagerClient in ObjectStoreHandler currently is not properly initiated, it should be using ProtobufRpcEngine instead of WritableRpcEngine which is deprecated.

      Attachments

        1. HDFS-11958-HDFS-7240.001.patch
          0.9 kB
          Weiwei Yang

        Activity

          People

            cheersyang Weiwei Yang
            cheersyang Weiwei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: