You should also lift the other code from tool around parsing the hadoop args, it will allow using -Dio.sort.mb and such from the command line args when launching the script