GitHub user bdzimmer opened a pull request:
https://github.com/apache/spark/pull/7345
[SPARK-8982][Core] Worker hostnames not showing in Master web ui when
launched with start-slaves.sh
If a "--host" argument is not provided to Worker, WorkerArguments uses
Utils.localHostName to find the host name. SPARK-6440 changed the functionality
of Utils.localHostName to retrieve the local IP address instead of host name.
Since start-slave.sh does not provide the "--host" argument, clusters
started with start-slaves.sh now show IP addresses instead of hostnames in the
Master web UI. This is inconvenient when starting and debugging small clusters.
A simple fix would be to find the local machine's hostname in
start-slave.sh and pass it as the "--host" argument. I'm not sure if this fix
is appropriate for general use, so I'm interested in feedback.
This contribution is my original work and I license the work to the project
under the project's open source license.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bdzimmer/spark spark-8982
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/7345.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 #7345
----
commit 9c4127aacefefc8ed1232a9f51b79f640901ad4a
Author: Ben Zimmer <[email protected]>
Date: 2015-07-10T18:00:05Z
Update start-slave.sh
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]