[GitHub] spark pull request #16851: [SPARK-19508][Core] Improve error message when bi...

2017-02-20 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/spark/pull/16851


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark pull request #16851: [SPARK-19508][Core] Improve error message when bi...

2017-02-07 Thread viirya
GitHub user viirya opened a pull request:

https://github.com/apache/spark/pull/16851

[SPARK-19508][Core] Improve error message when binding service fails

## What changes were proposed in this pull request?

Utils provides a helper function to bind service on port. This function can 
bind the service to a random free port. However, if the binding fails on a 
random free port, the retrying and final exception messages look confusing.


17/02/06 16:25:43 WARN Utils: Service 'sparkDriver' could not bind on 
port 0. Attempting port 1.
17/02/06 16:25:43 WARN Utils: Service 'sparkDriver' could not bind on 
port 0. Attempting port 1.
17/02/06 16:25:43 WARN Utils: Service 'sparkDriver' could not bind on 
port 0. Attempting port 1.
17/02/06 16:25:43 WARN Utils: Service 'sparkDriver' could not bind on 
port 0. Attempting port 1.
17/02/06 16:25:43 WARN Utils: Service 'sparkDriver' could not bind on 
port 0. Attempting port 1.
...
17/02/06 16:25:43 ERROR SparkContext: Error initializing SparkContext.
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.

## How was this patch tested?

Jenkins tests.

Please review http://spark.apache.org/contributing.html before opening a 
pull request.


You can merge this pull request into a Git repository by running:

$ git pull https://github.com/viirya/spark-1 better-log-message

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/spark/pull/16851.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #16851


commit 1fce3d563d0d57f2fc0d2b3cb1c925588c915f5c
Author: Liang-Chi Hsieh 
Date:   2017-02-08T06:57:36Z

A trivial change to improve error messages.




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org