GitHub user skyluc opened a pull request:
https://github.com/apache/spark/pull/12613
[SPARK-14849][CORE]Always set an address for the executor
As specified in
[SPARK-14849](https://issues.apache.org/jira/browse/SPARK-14849), the `address`
in the `NettyRpcEnv` for the executor is not set when running in standalone
mode. To compensate, the driver try to guess the IP address of the executor
during registration. But in a NAT situation, the IP address visible in the
connection is not the one that should be used.
This address is sent back to the executor, and used later to describe the
location of blocks.
The change is too always set the address as the `host` value, and to remove
the code on the driver side which is trying to guess the right IP address. This
kind of guessing is wrong in a NAT configuration, a possibly others.
Manually tested on the configuration describe on the ticket, and on a
standard Mesos cluster.
Testing on a Yarn cluster would be useful, to check that there is no
unexpected effects.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/skyluc/spark issue/nat-standalone
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12613.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 #12613
----
commit 1cf83220fa9e826a1c15708ed990103182b1f403
Author: Luc Bourlier <[email protected]>
Date: 2016-04-08T12:36:19Z
Always set an address for the executor
----
---
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]