fixed issue where the exit code was always going to return 0 in the shell scripts. Now hadoop command exit code is saved to a variable and that variable is the exit code used