[ 
https://issues.apache.org/jira/browse/HDFS-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Allen Wittenauer resolved HDFS-45.
----------------------------------

    Resolution: Not a Problem

This is no longer necessary with protobuf rpc.

> DFS client should throw version mismatch errors in case of a changed 
> functionality
> ----------------------------------------------------------------------------------
>
>                 Key: HDFS-45
>                 URL: https://issues.apache.org/jira/browse/HDFS-45
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Amar Kamat
>
> I started a hadoop cluster, built with the (latest) trunk  and tried doing 
> _dfs -put_ with the (dfs) clients from the (older/stale) trunk. The client 
> went ahead and tried to upload the data onto the cluster and failed with the 
> following error
> {noformat}
> -bash-3.00$ ./bin/hadoop dfs -put file file
> 08/08/22 05:11:06 INFO hdfs.DFSClient: Exception in createBlockOutputStream 
> java.io.IOException: Could not read from stream
> 08/08/22 05:11:06 INFO hdfs.DFSClient: Abandoning block 
> blk_5748330682182803489_1002
> 08/08/22 05:11:12 INFO hdfs.DFSClient: Exception in createBlockOutputStream 
> java.io.IOException: Could not read from stream
> 08/08/22 05:11:12 INFO hdfs.DFSClient: Abandoning block 
> blk_7482082538144151768_1002
> 08/08/22 05:11:18 INFO hdfs.DFSClient: Exception in createBlockOutputStream 
> java.io.IOException: Could not read from stream
> 08/08/22 05:11:18 INFO hdfs.DFSClient: Abandoning block 
> blk_-3132217232090937466_1002
> 08/08/22 05:11:24 INFO hdfs.DFSClient: Exception in createBlockOutputStream 
> java.io.IOException: Could not read from stream
> 08/08/22 05:11:24 INFO hdfs.DFSClient: Abandoning block 
> blk_-6473055472384366978_1002
> 08/08/22 05:11:30 WARN hdfs.DFSClient: DataStreamer Exception: 
> java.io.IOException: Unable to create new block.
>         at 
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.nextBlockOutputStream(DFSClient.java:2504)
>         at 
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.access$2000(DFSClient.java:1810)
>         at 
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:1990)
> put: Filesystem closed
> {noformat}
> It would be better if somehow the client detects that its not *made* for this 
> master and softly/simply bail out.
> ----
> Note that I *did not* do it on purpose but forgot to replace the older 
> installation with the newer one.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to