Skip to content
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

Merged
merged 3 commits into from
Sep 6, 2024
Merged

Updated Spark setup script #875

merged 3 commits into from
Sep 6, 2024

Conversation

vijaypavann-db
Copy link
Contributor

@vijaypavann-db vijaypavann-db commented Sep 2, 2024

  1. Updated Spark setup script to check whether spark gzip file exists

  2. 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
  3. Tested the following Scenarios:

    1. Scenario: Extracted Spark folder is already present
      Outcome: Directly starts the spark server using sbin/start-connect-server.sh
    2. 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
    3. Scenario: Extracted Spark folder is not present, and Zip file is not present
      Outcome: Download, Extract and start the spark server

@vijaypavann-db vijaypavann-db requested a review from a team as a code owner September 2, 2024 08:09
@vijaypavann-db vijaypavann-db self-assigned this Sep 2, 2024
@vijaypavann-db vijaypavann-db added the internal technical pr's not end user facing label Sep 2, 2024
Copy link

github-actions bot commented Sep 2, 2024

Coverage tests results

430 tests  ±0   382 ✅ ±0   5s ⏱️ ±0s
  5 suites ±0     0 💤 ±0 
  5 files   ±0    48 ❌ ±0 

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.

Copy link
Collaborator

@sundarshankar89 sundarshankar89 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@bishwajit-db bishwajit-db left a comment

Choose a reason for hiding this comment

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

LGTM

@nfx nfx merged commit 1de7ede into main Sep 6, 2024
9 checks passed
@nfx nfx deleted the patch/update-spark-script branch September 6, 2024 16:01
sundarshankar89 pushed a commit to sundarshankar89/remorph that referenced this pull request Jan 2, 2025
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
sundarshankar89 pushed a commit to sundarshankar89/remorph that referenced this pull request Jan 3, 2025
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal technical pr's not end user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants