If I'm reading this correctly, you're using this to specify the config in the case of yarn-cluster. If that's true, I think this is not the right location to solve that narrow problem. Instead, I'd add an argument to ApplicationMasterArguments. 