Maybe I have misunderstood something but do we really need to use reflection to get DEFAULT_YARN_APPLICATION_CLASSPATH? Can't we simply get it as YarnConfiguration.DEFAULT_YARN_APPLICATION_CLASSPATH (similar to YarnConfiguration.YARN_APPLICATION_CLASSPATH)