In CM you can retrieve the file that is pushed out from the RM instance information page.
Go to the Yarn service -> Instances (in the bar on top) -> Select a RM instance from the list on the right -> Process (in the top bar again). There should be a list of all the configuration and environment files there that you can download.
If they do not show up click the Show link under Configuration Files/Environment.
Hope that helps,