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

...s https
I would rather this done with something more reliable like URI class and just removing the scheme if it has one.   

Also can you add a comment about we are removing it because hadoop doesn't handle the scheme.