title: How to configure Apache Spark random worker ports for tight firewalls?
body: <p>I am using Apache Spark to run machine learning algorithms and other big data tasks. Previously, I was using spark cluster standalone mode running spark master and worker on the same machine. Now, I added multiple worker machines and due to a tight firewall, I have to edit the random port of worker. Can anyone help how to change random spark ports and tell me exactly what configuration file needs to be edited? I read the spark documentation and it says <code>spark-defaults.conf</code> should be configured but I don't know how I can configure this file for particularly changing random ports of spark.</p>