Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
When a java.net.BindException is thrown in startServiceOnPort in Utils.scala, it displays the following message, irrespective of the port being used:
java.net.BindException: Address already in use: Service '$serviceName' failed after 16 retries!
For supportability, it would be useful to add port configuration suggestions for the related port being used. For example, if the Spark UI exceeds spark.port.maxRetries, users should see:
java.net.BindException: Address already in use: Service 'SparkUI' failed after 16 retries! Consider setting spark.ui.port to an available port or increasing spark.port.maxRetries.