[SPARK-3286] - Cannot view ApplicationMaster UI when Yarn’s url scheme i...

...s https
Pulling over my comment from the previous pr - https://github.com/apache/spark/pull/2206

This won't work with yarn alpha. 

yes so unfortunately I went and verified that hadoop 0.23 can't have the scheme. It automatically adds the scheme itself (just supports http://).

This is already calling down into stable/alpha versions of YarnRMClientImpl.register. We could potentially pass whole uri, including scheme and then have the alpha version strip off the scheme.

Also you modified the call in runDriver to registerAM which covers client mode, I assume the same change needs to happen in runExecutorLauncher for yarn client mode.