Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-49197][CORE] Redact
Spark Command
output in launcher
module
### What changes were proposed in this pull request? This PR aims to redact `Spark Command` output in `launcher` module. ### Why are the changes needed? When `launcher` module shows `Spark Command`, there is no redaction. Although Spark Cluster is supposed to be in a secure environment, this could be collected by a centralized log system. We need to do a proper redaction. **EXAMPLE (Spark History Server)** ``` $ SPARK_NO_DAEMONIZE=1 \ SPARK_HISTORY_OPTS="-Dspark.ui.filters=org.apache.spark.ui.JWSFilter -Dspark.org.apache.spark.ui.JWSFilter.param.secretKey=VmlzaXQgaHR0cHM6Ly9zcGFyay5hcGFjaGUub3JnIHRvIGRvd25sb2FkIEFwYWNoZSBTcGFyay4=" \ sbin/start-history-server.sh ``` **BEFORE** ``` Spark Command: /Users/dongjoon/.jenv/versions/17/bin/java -cp /Users/dongjoon/APACHE/spark-merge/conf/:/Users/dongjoon/APACHE/spark-merge/assembly/target/scala-2.13/jars/slf4j-api-2.0.14.jar:/Users/dongjoon/APACHE/spark-merge/assembly/target/scala-2.13/jars/* \ -Dspark.ui.filters=org.apache.spark.ui.JWSFilter \ -Dspark.org.apache.spark.ui.JWSFilter.param.secretKey=VmlzaXQgaHR0cHM6Ly9zcGFyay5hcGFjaGUub3JnIHRvIGRvd25sb2FkIEFwYWNoZSBTcGFyay4= \ -Xmx1g \ org.apache.spark.deploy.history.HistoryServer ``` **AFTER** ``` ... Spark Command: /Users/dongjoon/.jenv/versions/17/bin/java -cp /Users/dongjoon/APACHE/spark-merge/conf/:/Users/dongjoon/APACHE/spark-merge/assembly/target/scala-2.13/jars/slf4j-api-2.0.14.jar:/Users/dongjoon/APACHE/spark-merge/assembly/target/scala-2.13/jars/* \ -Dspark.ui.filters=org.apache.spark.ui.JWSFilter \ -Dspark.org.apache.spark.ui.JWSFilter.param.secretKey=*********(redacted) \ -Xmx1g \ org.apache.spark.deploy.history.HistoryServer ``` ### Does this PR introduce _any_ user-facing change? This only changes the log messages during startup. ### How was this patch tested? Pass the CIs with newly added test case. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#47704 from dongjoon-hyun/SPARK-49197. Authored-by: Dongjoon Hyun <dhyun@apple.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com> (cherry picked from commit 93cf355) Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
- Loading branch information