Skip to content

[SPARK-36538][DOCS] Fix the environment variables part in configuration.md#33777

Closed
yutoacts wants to merge 1 commit intoapache:masterfrom
yutoacts:SPARK-36538
Closed

[SPARK-36538][DOCS] Fix the environment variables part in configuration.md#33777
yutoacts wants to merge 1 commit intoapache:masterfrom
yutoacts:SPARK-36538

Conversation

@yutoacts
Copy link
Contributor

What changes were proposed in this pull request?

Remove incorrect documentation about environment variables on YARN cluster mode from configuration.md.

Why are the changes needed?

The documentation said that environment variables are not reflected through spark-env.sh in YARN cluster mode but I believe they are regardless of deploy-mode.

Does this PR introduce any user-facing change?

Yes, docs changed.

How was this patch tested?

SKIP_API=1 bundle exec jekyll build
envvar

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@yutoacts yutoacts changed the title fixed the environment variables part in configuration.md [SPARK-36538] fixed the environment variables part in configuration.md Aug 18, 2021
@yutoacts yutoacts changed the title [SPARK-36538] fixed the environment variables part in configuration.md [SPARK-36538][DOCS] Fixed the environment variables part in configuration.md Aug 18, 2021
@github-actions github-actions bot added the DOCS label Aug 18, 2021
@yutoacts yutoacts changed the title [SPARK-36538][DOCS] Fixed the environment variables part in configuration.md [SPARK-36538][DOCS] Fix the environment variables part in configuration.md Aug 18, 2021
Since `spark-env.sh` is a shell script, some of these can be set programmatically -- for example, you might
compute `SPARK_LOCAL_IP` by looking up the IP of a specific network interface.

Note: When running Spark on YARN in `cluster` mode, environment variables need to be set using the `spark.yarn.appMasterEnv.[EnvironmentVariableName]` property in your `conf/spark-defaults.conf` file. Environment variables that are set in `spark-env.sh` will not be reflected in the YARN Application Master process in `cluster` mode. See the [YARN-related Spark Properties](running-on-yarn.html#spark-properties) for more information.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, env vars in spark-env.sh are still not reflected in the YARN AM right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I totally misunderstood what it says.. Thank you for the correction.

@yutoacts yutoacts closed this Aug 19, 2021
@yutoacts yutoacts deleted the SPARK-36538 branch September 7, 2021 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants