In YARN what is the difference between a managed and an unmanaged Application Manager
The setUnmanagedAM(true)
is used for debugging purposes i.e. it runs an application manager in local mode and does not submit it to a cluster so it is easier to step into code and debug.
You can see it in use in the hadoop-yarn-applications-unmanaged-am-launcher.jar that ships with yarn