[
https://issues.apache.org/jira/browse/HADOOP-7478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Harsh J updated HADOOP-7478:
----------------------------
Resolution: Cannot Reproduce
Status: Resolved (was: Patch Available)
No longer an issue on trunk after the shell changes.
{code}
$ hadoop fs -put /etc/foo foo
…
13/07/14 05:40:44 ERROR hdfs.DFSClient: Failed to close file
/user/test/foo._COPYING_
org.apache.hadoop.ipc.RemoteException(java.io.IOException): File
/user/test/foo._COPYING_ could only be replicated to 0 nodes instead of
minReplication (=1). There are 2 datanode(s) running and 2 node(s) are
excluded in this operation.
…
$ hadoop fs -ls /user/test/foo._COPYING_
ls: `/user/test/foo._COPYING_': No such file or directory
$ hadoop fs -ls /user/test/foo
ls: `/user/test/foo': No such file or directory
{code}
> 0-byte files retained in the dfs while the FSshell -put is unsuccessful
> -----------------------------------------------------------------------
>
> Key: HADOOP-7478
> URL: https://issues.apache.org/jira/browse/HADOOP-7478
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 0.23.0
> Reporter: XieXianshan
> Assignee: XieXianshan
> Priority: Trivial
> Attachments: HADOOP-7478.patch
>
>
> The process of putting file into dfs is approximately as follows:
> 1) create a file in the dfs
> 2) copy from one stream to the file
> But the problem is that the file is still retained in the dfs when the
> process 2) is terminated abnormally with unexpected exceptions,such as there
> is no DataNode alive.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira