Final answer:
No, Spark can run on YARN without installation on all nodes.
Step-by-step explanation:
When running Spark applications on a YARN cluster, it is not necessary to install Spark on all the nodes. Spark can run on YARN without requiring installation on every node.
Spark leverages YARN's ability to distribute computing tasks across the cluster. Spark's Application Master runs on one of the nodes in the cluster, referred to as the driver node or master node. This node needs to have Spark installed. The other nodes, referred to as executor nodes, do not need to have Spark installed. They only need access to the Spark installation on the driver node.