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

...https
This check was originally introduced in YARN-1203.   So from Hadoop-2.2 onwards , it uses the scheme passed by AppMaster.