Hey,
This Hadoop fs command appends single sources or multiple sources from local file system to the file system at the destination. It also reads input from standard input and adds it to the destination file system.
You can use this command usage:
hadoop fs -appendToFile <localsource> ... <dst
You can use this example as well:
hadoop fs -appendToFile /home/dataflair/Desktop/sample /user/dataflair/dir1