Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Jan 17, 2024

What changes were proposed in this pull request?

As a part of SPARK-45869 (Revisit and Improve Spark Standalone Cluster), this PR aims to remove *slave* scripts from sbin directory for Apache Spark 4.0.0 codebase and binary distributions.

spark-3.5.0-bin-hadoop3:$ ls -al sbin/*slave*
-rwxr-xr-x  1 dongjoon  staff  981 Sep  8 19:08 sbin/decommission-slave.sh
-rwxr-xr-x  1 dongjoon  staff  957 Sep  8 19:08 sbin/slaves.sh
-rwxr-xr-x  1 dongjoon  staff  967 Sep  8 19:08 sbin/start-slave.sh
-rwxr-xr-x  1 dongjoon  staff  969 Sep  8 19:08 sbin/start-slaves.sh
-rwxr-xr-x  1 dongjoon  staff  965 Sep  8 19:08 sbin/stop-slave.sh
-rwxr-xr-x  1 dongjoon  staff  967 Sep  8 19:08 sbin/stop-slaves.sh

Why are the changes needed?

*slave*.sh scripts are deprecated at Apache Spark 3.1.0 (March, 2021) via SPARK-32004 (July 2020).

Does this PR introduce any user-facing change?

Yes, but

  • these are only wrapper scripts for legacy environments and were removed from all documents.
  • the new alternative corresponding scripts have been documented instead and used for last 3 years.
  • we can simplify the sbin directory of binary distributions for a better UX.
  • Apache Spark 4.0.0 is a good and the last chance to clean up these.

How was this patch tested?

Pass the CI and manual review.

Was this patch authored or co-authored using generative AI tooling?

No.

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-46748][CORE] Remove *slave* scripts [SPARK-46748][CORE] Remove *slave*.sh scripts Jan 17, 2024
Copy link
Member

@yaooqinn yaooqinn left a comment

Choose a reason for hiding this comment

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

LGTM

@dongjoon-hyun
Copy link
Member Author

Thank you, @yaooqinn . Merged to master.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-46748 branch January 18, 2024 02:27
szehon-ho pushed a commit to szehon-ho/spark that referenced this pull request Feb 7, 2024
### What changes were proposed in this pull request?

As a part of SPARK-45869 (Revisit and Improve Spark Standalone Cluster), this PR aims to remove `*slave*` scripts from `sbin` directory for Apache Spark 4.0.0 codebase and binary distributions.
```
spark-3.5.0-bin-hadoop3:$ ls -al sbin/*slave*
-rwxr-xr-x  1 dongjoon  staff  981 Sep  8 19:08 sbin/decommission-slave.sh
-rwxr-xr-x  1 dongjoon  staff  957 Sep  8 19:08 sbin/slaves.sh
-rwxr-xr-x  1 dongjoon  staff  967 Sep  8 19:08 sbin/start-slave.sh
-rwxr-xr-x  1 dongjoon  staff  969 Sep  8 19:08 sbin/start-slaves.sh
-rwxr-xr-x  1 dongjoon  staff  965 Sep  8 19:08 sbin/stop-slave.sh
-rwxr-xr-x  1 dongjoon  staff  967 Sep  8 19:08 sbin/stop-slaves.sh
```

### Why are the changes needed?

`*slave*.sh` scripts are deprecated at Apache Spark 3.1.0 (March, 2021) via SPARK-32004 (July 2020).

### Does this PR introduce _any_ user-facing change?

Yes, but
- these are only wrapper scripts for legacy environments and were removed from all documents.
- the new alternative corresponding scripts have been documented instead and used for last 3 years.
- we can simplify the `sbin` directory of binary distributions for a better UX.
- Apache Spark 4.0.0 is a good and the last chance to clean up these.

### How was this patch tested?

Pass the CI and manual review.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#44773 from dongjoon-hyun/SPARK-46748.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
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.

2 participants