Skip to content

Commit 2c2beb7

Browse files
authored
HADOOP-19358. Update command usage of appendToFile. (#7209)
Contributed by fuchaohong
1 parent b55c9c7 commit 2c2beb7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,16 @@ See the [Commands Manual](./CommandsManual.html) for generic shell options.
3737
appendToFile
3838
------------
3939

40-
Usage: `hadoop fs -appendToFile <localsrc> ... <dst> `
40+
Usage: `hadoop fs -appendToFile [-n] <localsrc> ... <dst>`
4141

4242
Append single src, or multiple srcs from local file system to the destination file system. Also reads input from stdin and appends to destination file system.
4343

44+
Options
45+
46+
* The `-n` option represents that use NEW_BLOCK create flag to append file.
47+
48+
Example:
49+
4450
* `hadoop fs -appendToFile localfile /user/hadoop/hadoopfile`
4551
* `hadoop fs -appendToFile localfile1 localfile2 /user/hadoop/hadoopfile`
4652
* `hadoop fs -appendToFile localfile hdfs://nn.example.com/hadoop/hadoopfile`

0 commit comments

Comments
 (0)