-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-40904][K8S] Support zsh in K8s entrypoint.sh
#38380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
zsh in K8s entrypoint.sh
|
All tests passed. Could you review this, please, @viirya ? |
viirya
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. How about just leave one line (non-readarray case)?
|
Thank you, @viirya . The |
|
Merged to master for Apache Spark 3.4.0. |
HyukjinKwon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM2
|
Thank you, @HyukjinKwon ! |
### What changes were proposed in this pull request?
This PR aims to support `zsh` in K8s `entrypoint.sh`.
### Why are the changes needed?
`zsh` doesn't support `readarray`.
```
% readarray
zsh: command not found: readarray
```
Instead, `zsh` supports the following way.
```
% SPARK_EXECUTOR_JAVA_OPTS=("${(f)$(< /tmp/java_opts.txt)}")
% echo $SPARK_EXECUTOR_JAVA_OPTS[]
-Djava.net.preferIPv6Addresses=false -XX:+IgnoreUnrecognizedVMOptions --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/sun.nio.cs=ALL-UNNAMED --add-opens=java.base/sun.security.action=ALL-UNNAMED --add-opens=java.base/sun.util.calendar=ALL-UNNAMED --add-opens=java.security.jgss/sun.security.krb5=ALL-UNNAMED -Dspark.driver.blockManager.port=7079 -Dspark.driver.port=7078
```
### Does this PR introduce _any_ user-facing change?
No. This PR only introduces additional behavior when there is no `readarray` command.
### How was this patch tested?
Pass the K8s CIs.
Closes apache#38380 from dongjoon-hyun/SPARK-40904.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
What changes were proposed in this pull request?
This PR aims to support
zshin K8sentrypoint.sh.Why are the changes needed?
zshdoesn't supportreadarray.Instead,
zshsupports the following way.Does this PR introduce any user-facing change?
No. This PR only introduces additional behavior when there is no
readarraycommand.How was this patch tested?
Pass the K8s CIs.