Update for Spark 2.x
Some libraries have been rewritten from scratch, and many obsolete *.port properties *.port now deprecated (see SPARK-10997 / SPARK-20605 / SPARK-12588 / SPARK-17678 / etc)
For Spark 2.1, for example, the port ranges on which the driver will listen to the traffic executor,
- between
spark.driver.port and spark.driver.port + spark.port.maxRetries - between
spark.driver.blockManager.port and spark.driver.blockManager.port + spark.port.maxRetries
And the range of ports on which artists will listen to driver traffic and / or traffic from other artists,
- between
spark.blockManager.port and spark.blockManager.port + spark.port.maxRetries
The "maxRetries" property allows you to run multiple Spark jobs in parallel; if the base port is already in use, then the new task will try to use the next, etc., if the entire range is no longer in use.
A source:
https://spark.apache.org/docs/2.1.1/configuration.html#networking
https://spark.apache.org/docs/2.1.1/security.html under "Port Settings"
source share