Changes to get mapred to work with YARN