Currently, YarnConfiguration.NM_ADMIN_USER_ENV does not do parameter expansion. That is, you cannot specify an environment variable such as
and have it be expanded to $JAVA_HOME inside the container.
We have a need for this in specifying different java gc options for java processing running inside yarn containers based on which version of java is being used.
YARN-11386 Fix issue with classpath resolution