hadoop getmerge command concatenates the files in the source directory into the destination file. The syntax of the getmerge shell command is shown below:
hadoop fs -getmerge <src> <localdst> [addnl]
The addnl option is for adding new line character at the end of each file.
hadoop fs -getmerge <src> <localdst> [addnl]
The addnl option is for adding new line character at the end of each file.