You get a single Out-put File by Setting a single Reducer in your code .
Job.setNumberOfReducer(1);
Will work for your requirement , but costly
OR
Static method to execute a shell command.
Covers most of the simple cases without requiring the user to implement the Shell interface.
Parameters:
env the map of environment key=value
cmd shell command to execute.
Returns:
the output of the executed command.
org.apache.hadoop.util.Shell.execCommand(String[])