You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-49206][CORE][UI] Add Environment Variables table to Master EnvironmentPage
### What changes were proposed in this pull request?
This PR aims to add `Environment Variables` table to Master `EnvironmentPage` via a new configuration, `spark.master.ui.visibleEnvVarPrefixes`.
### Why are the changes needed?
To allow users to expose and show the environment variables of Spark Master.
### Does this PR introduce _any_ user-facing change?
Yes, but this is a new table on `Spark Master` UI's `EnvironmentPage`.
### How was this patch tested?
Pass the CIs with newly added test case.
**DEFAULT**
```
$ sbin/start-master.sh
```

**Expose `AWS_`**
```
$ AWS_CA_BUNDLE=/tmp/root-ca.pem \
AWS_ENDPOINT_URL=https://s3express-usw2-az1.us-west-2.amazonaws.com \
SPARK_MASTER_OPTS="-Dspark.master.ui.visibleEnvVarPrefixes=AWS_" \
sbin/start-master.sh
```

### Was this patch authored or co-authored using generative AI tooling?
No.
Closesapache#47714 from dongjoon-hyun/SPARK-49206.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: yangjie01 <[email protected]>
0 commit comments