You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (Jira)" <ji...@apache.org> on 2022/04/16 13:04:00 UTC

[jira] [Commented] (HADOOP-18204) java.io.IOException: Version Mismatch (Expected: 28, Received: 520 )

    [ https://issues.apache.org/jira/browse/HADOOP-18204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17523095#comment-17523095 ] 

Steve Loughran commented on HADOOP-18204:
-----------------------------------------

sounds like an hdfs issue. which version are you seeing this on?

> java.io.IOException: Version Mismatch (Expected: 28, Received: 520 )
> --------------------------------------------------------------------
>
>                 Key: HADOOP-18204
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18204
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: hdfs-client
>    Affects Versions: 3.3.0, 3.3.1, 3.2.3, 3.3.2
>         Environment: NAME="openEuler"
> VERSION="20.03 (LTS-SP1)"
> ID="openEuler"
> VERSION_ID="20.03"
>            Reporter: cnnc
>            Priority: Major
>              Labels: libhdfs, libhdfscpp
>         Attachments: test1M.cpp
>
>   Original Estimate: 504h
>  Remaining Estimate: 504h
>
> 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)
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org