This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 00a92d328576 [SPARK-46817][CORE] Fix `spark-daemon.sh` usage by adding 
`decommission` command
00a92d328576 is described below

commit 00a92d328576c39b04cfd0fdd8a30c5a9bc37e36
Author: Dongjoon Hyun <dh...@apple.com>
AuthorDate: Tue Jan 23 16:38:45 2024 -0800

    [SPARK-46817][CORE] Fix `spark-daemon.sh` usage by adding `decommission` 
command
    
    ### What changes were proposed in this pull request?
    
    This PR aims to fix `spark-daemon.sh` usage by adding `decommission` 
command.
    
    ### Why are the changes needed?
    
    This was missed when SPARK-20628 added `decommission` command at Apache 
Spark 3.1.0. The command has been used like the following.
    
    
https://github.com/apache/spark/blob/0356ac00947282b1a0885ad7eaae1e25e43671fe/sbin/decommission-worker.sh#L41
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, this is only a change on usage message.
    
    ### How was this patch tested?
    
    Manual review.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #44856 from dongjoon-hyun/SPARK-46817.
    
    Authored-by: Dongjoon Hyun <dh...@apple.com>
    Signed-off-by: Dongjoon Hyun <dh...@apple.com>
---
 sbin/spark-daemon.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/spark-daemon.sh b/sbin/spark-daemon.sh
index 3cfd5acfe2b5..28d205f03e0f 100755
--- a/sbin/spark-daemon.sh
+++ b/sbin/spark-daemon.sh
@@ -31,7 +31,7 @@
 #   SPARK_NO_DAEMONIZE   If set, will run the proposed command in the 
foreground. It will not output a PID file.
 ##
 
-usage="Usage: spark-daemon.sh [--config <conf-dir>] (start|stop|submit|status) 
<spark-command> <spark-instance-number> <args...>"
+usage="Usage: spark-daemon.sh [--config <conf-dir>] 
(start|stop|submit|decommission|status) <spark-command> <spark-instance-number> 
<args...>"
 
 # if no args specified, show usage
 if [ $# -le 1 ]; then


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to