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

...s https
Actually the yarn versioning thing is:  Alpha is branch 0.23 and 2.x up til 2.1.x .
stable is 2.2.x and beyond

see http://spark.apache.org/docs/latest/building-with-maven.html#specifying-the-hadoop-version

since YARN-1203 went into 2.2 its fine to only special case in alpha but do the easy thing for stable.