hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Isaacson <...@cloudera.com>
Subject Re: hadoop - running examples
Date Thu, 08 Nov 2012 23:33:01 GMT
On Thu, Nov 8, 2012 at 1:48 PM, Kartashov, Andy <Andy.Kartashov@mpac.ca> wrote:
> When running examples, you bring them into HDFS. Say, you need to make some correction
to a file, you need to make them on local FS and run $hadoop fs -put ... again. You cannot
just make changes to files inside HDFS except for "touchz" a file, correct?

If you need to change existing data, you do need to write a new file,
or delete the old file then re-write it.  So as far as that goes, yes,
you cannot just make changes.

However, files can be appended to in HDFS, although I am not aware of
a "hdfs dfs -append" command to do append from the commandline. So
it's not quite correct to say that touchz is the only thing to change
an existing file.


View raw message