Not able to access Spark web UI url for yarn application manager

spark-shell --master yarn
I am unable to access the spark web UI URL when trying to connect to application master using above command
but able to access when using spark-shell