hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: How to copy over using dfs
Date Sat, 28 May 2011 05:29:10 GMT

On Sat, May 28, 2011 at 12:58 AM, Mohit Anchlia <mohitanchlia@gmail.com> wrote:
> If I have to overwrite a file I generally use
> hadoop dfs -rm <file>
> hadoop dfs -copyFromLocal or -put <file>
> Is there a command to overwrite/replace the file instead of doing rm first?

There's no command available right now to do this (best to write a
wrapper script acting as a command, or a custom shell utility

That said, https://issues.apache.org/jira/browse/HDFS-1608 covers the
addition of -f/-overwrite feature and it may be available in future
releases (possibly 0.23+).

Harsh J

View raw message