Is it possible to store the output of the hadoop dfs -getmerge command to another machine?
hadoop dfs -getmerge
The reason is that there is no enough space in my local machi
This will do exactly what you need:
hadoop fs -cat /user/hduser/Job-output/* | ssh user@remotehost.com "cat >mergedOutput.txt"
fs -cat will read all files in sequence and output them to stdout.
ssh will pass them to a file on remote machine (note that scp will not accept stdin as input)