Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-16632

java.io.IOException: Version Mismatch (Expected: 28, Received: 520 )

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.3.0, 3.3.1, 3.2.3, 3.3.2
    • None
    • hdfs++, native
    • NAME="openEuler"
      VERSION="20.03 (LTS-SP1)"
      ID="openEuler"
      VERSION_ID="20.03"

    Description

      read 1M bytes from hdfs with libhdfspp, and the  datanode-server report an error like:

       

      2022-04-12 20:10:21,872 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: server1:9866:DataXceiver error processing READ_BLOCK operation  src: /90.90.43.114:47956 dst: /90.90.43.114:9866
      java.io.IOException: Version Mismatch (Expected: 28, Received: 520 )
              at org.apache.hadoop.hdfs.protocol.datatransfer.Receiver.readOp(Receiver.java:74)
              at org.apache.hadoop.hdfs.server.datanode.DataXceiver.run(DataXceiver.java:269)
              at java.lang.Thread.run(Thread.java:748)
      2022-04-12 20:13:27,615 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: server1:9866:DataXceiver error processing READ_BLOCK operation  src: /90.90.43.114:48142 dst: /90.90.43.114:9866
      java.io.IOException: Version Mismatch (Expected: 28, Received: 520 )
              at org.apache.hadoop.hdfs.protocol.datatransfer.Receiver.readOp(Receiver.java:74)
              at org.apache.hadoop.hdfs.server.datanode.DataXceiver.run(DataXceiver.java:269)
              at java.lang.Thread.run(Thread.java:748)

       

       

      (1) compile test1M.cpp ,using command:

      g++ test1M.cpp -lprotobuf -lhdfspp_static -lhdfs -lpthread -lsasl2 -lcrypto -llz4 -I./ -L./ -o test1M

       

      (2)and execute test1M with:

      ./test1M  REAL_HDFS_FILE_PATH

       

      (3) check hadoop logs and you will find erro info like :

      java.io.IOException: Version Mismatch (Expected: 28, Received: 520 )
              at org.apache.hadoop.hdfs.protocol.datatransfer.Receiver.readOp(Receiver.java:74)
              at org.apache.hadoop.hdfs.server.datanode.DataXceiver.run(DataXceiver.java:269)
              at java.lang.Thread.run(Thread.java:748)

       

       

       

       

      Attachments

        1. test1M.cpp
          5 kB
          cnnc

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cnnc cnnc
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 504h
                  504h
                  Remaining:
                  Remaining Estimate - 503h 40m
                  503h 40m
                  Logged:
                  Remaining Estimate - 503h 40m
                  20m