java.net.BindException

Can't assign requested address: Service 'sparkDriver' failed after 16 retries (starting from 0)! Consider explicitly setting the appropriate port for the service 'sparkDriver' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries.


Samebug tips3

It might be that there's another process connecting to the same port you're trying to use, try to kill it or change the connection port.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web4349

Solution icon of stackoverflow
Can't assign requested address: Service 'sparkDriver' failed after 16 retries (starting from 0)! Consider explicitly setting the appropriate port for the service 'sparkDriver' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries.

Solution icon of stackoverflow
Cannot assign requested address: Service 'sparkDriver' failed after 16 retries (starting from 0)! Consider explicitly setting the appropriate port for the service 'sparkDriver' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries.

Solution icon of github
via GitHub by npaluskar
, 1 year ago
Cannot assign requested address: Service 'sparkDriver' failed after 16 retries! Consider explicitly setting the appropriate port for the service 'sparkDriver' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries.

Solution icon of github
via GitHub by yasassri
, 4 months ago
Cannot assign requested address: Service 'sparkDriver' failed after 16 retries! Consider explicitly setting the appropriate port for the service 'sparkDriver' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries.

Solution icon of stackoverflow
Cannot assign requested address: bind: Service 'sparkDriver' failed after 16 retries! Consider explicitly setting the appropriate port for the service 'sparkDriver' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries.

Solution icon of stackoverflow
Cannot assign requested address: Service 'Driver' failed after 16 retries! Consider explicitly setting the appropriate port for the service 'Driver' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries.

Solution icon of stackoverflow
via Stack Overflow by yee379
, 10 months ago
Cannot assign requested address: Service 'Driver' failed after 16 retries! Consider explicitly setting the appropriate port for the service 'Driver' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries.

Solution icon of stackoverflow
via Stack Overflow by jgp
, 1 year ago
Cannot assign requested address: Service 'sparkMaster' failed after 16 retries! Consider explicitly setting the appropriate port for the service 'sparkMaster' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries.

Solution icon of stackoverflow
via Stack Overflow by Jia
, 10 months ago
Can't assign requested address: Service 'sparkDriver' failed after 16 retries!

Solution icon of stackoverflow
Can't assign requested address: Service 'sparkDriver' failed after 16 retries!

Stack trace

  • java.net.BindException: Can't assign requested address: Service 'sparkDriver' failed after 16 retries (starting from 0)! Consider explicitly setting the appropriate port for the service 'sparkDriver' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries. at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:433)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

2 times, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 3 days ago
Samebug visitor profile picture
Unknown user
Once, 6 days ago
Once, 6 days ago
149 more bugmates