<configuration>
	<property>
		<name>yarn.nodemanager.aux-services</name>
		<value>mapreduce_shuffle</value>
	</property>
	<property>
		<name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
		<value>org.apache.hadoop.mapred.ShuffleHandler</value>
	</property>
	<property>
		<name>yarn.resourcemanager.resource-tracker.address</name>
		<value>${yarn-resourcemanager}:8025</value>
	</property>
	<property>
		<name>yarn.resourcemanager.scheduler.address</name>
		<value>${yarn-resourcemanager}:8030</value>
	</property>
	<property>
		<name>yarn.resourcemanager.address</name>
		<value>${yarn-resourcemanager}:8032</value>
	</property>
</configuration>

<configuration>
	<property>
		<name>yarn.nodemanager.aux-services</name>
		<value>mapreduce_shuffle</value>
	</property>
	<property>
		<name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
		<value>org.apache.hadoop.mapred.ShuffleHandler</value>
	</property>
	<property>
		<name>yarn.resourcemanager.resource-tracker.address</name>
		<value>${yarn-resourcemanager}:8025</value>
	</property>
	<property>
		<name>yarn.resourcemanager.scheduler.address</name>
		<value>${yarn-resourcemanager}:8030</value>
	</property>
	<property>
		<name>yarn.resourcemanager.address</name>
		<value>${yarn-resourcemanager}:8032</value>
	</property>
	<property>
		<name>yarn.resourcemanager.webapp.address</name>
		<value>${yarn-resourcemanager}:8089</value>
	</property>
</configuration>

Add webapp.address to see Spark UI
Add webapp.address to see Spark UI