[ https://issues.apache.org/jira/browse/HDFS-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Bockelman updated HDFS-860: --------------------------------- Attachment: HDFS-860.patch Attaching a simple patch to get around this problem - silently suppress the error if you call truncate with non-zero size. This patch should be considered carefully; for our local community, the benefit (scp can be used to copy files onto a remote HDFS mount) outweighs the cost (breaking error codes for the truncate call). I primarily wanted to get this issue and patch documented for others to potentially use (and to make sure it has proper licensing :) > fuse-dfs truncate behavior causes issues with scp > ------------------------------------------------- > > Key: HDFS-860 > URL: https://issues.apache.org/jira/browse/HDFS-860 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Brian Bockelman > Priority: Minor > Attachments: HDFS-860.patch > > > For whatever reason, scp issues a "truncate" once it's written a file to > truncate the file to the # of bytes it has written (i.e., if a file is X > bytes, it calls truncate(X)). > This fails on the current fuse-dfs. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.