-
Notifications
You must be signed in to change notification settings - Fork 37
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
Updated Spark setup script #875
Conversation
Coverage tests results430 tests ±0 382 ✅ ±0 5s ⏱️ ±0s For more details on these failures, see this check. Results for commit be2c45c. ± Comparison against base commit 6794006. ♻️ This comment has been updated with latest results. |
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.
LGTM
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.
LGTM
1. Updated Spark setup script to check whether `spark gzip file` exists 1. Refactored the script to remove the warnings: * `Double quote to prevent globbing and word splitting` * `Use 'cd ... || exit' or 'cd ... || return' in case cd fails.` * `Consider using 'grep -c' instead of 'grep|wc -l'.` * `Usage: sleep seconds`, converted 2m to 120 seconds 1. Tested the following Scenarios: 1. Scenario: Extracted Spark folder is already present Outcome: Directly starts the spark server using `sbin/start-connect-server.sh` 1. Scenario: Extracted Spark folder **is not present**, and Zip file (`spark-<VERSION>.tgz`) is present Outcome: Extract the zip file and start the spark server 1. Scenario: Extracted Spark folder **is not present**, and Zip file **is not present** Outcome: Download, Extract and start the spark server
1. Updated Spark setup script to check whether `spark gzip file` exists 1. Refactored the script to remove the warnings: * `Double quote to prevent globbing and word splitting` * `Use 'cd ... || exit' or 'cd ... || return' in case cd fails.` * `Consider using 'grep -c' instead of 'grep|wc -l'.` * `Usage: sleep seconds`, converted 2m to 120 seconds 1. Tested the following Scenarios: 1. Scenario: Extracted Spark folder is already present Outcome: Directly starts the spark server using `sbin/start-connect-server.sh` 1. Scenario: Extracted Spark folder **is not present**, and Zip file (`spark-<VERSION>.tgz`) is present Outcome: Extract the zip file and start the spark server 1. Scenario: Extracted Spark folder **is not present**, and Zip file **is not present** Outcome: Download, Extract and start the spark server
Updated Spark setup script to check whether
spark gzip file
existsRefactored the script to remove the warnings:
Double quote to prevent globbing and word splitting
Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Consider using 'grep -c' instead of 'grep|wc -l'.
Usage: sleep seconds
, converted 2m to 120 secondsTested the following Scenarios:
Outcome: Directly starts the spark server using
sbin/start-connect-server.sh
spark-<VERSION>.tgz
) is presentOutcome: Extract the zip file and start the spark server
Outcome: Download, Extract and start the spark server