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

Add Validation for Python Script Argument in gluepyspark Script #213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adiaholic
Copy link

The gluepyspark script should validate whether any of the provided arguments are Python scripts (i.e., files with a .py extension). If a Python script is detected, the script should display the following message and exit:
Please use ./bin/gluesparksubmit <Python script path> to run scripts through Glue.

This change ensures that gluepyspark is used exclusively for launching interactive sessions.

Proposed Change: Add a loop to iterate through the provided arguments and check if any argument ends with .py. If such an argument is found, print a message and exit the script.

Impact: This change will prevent users from mistakenly using gluepyspark to run Python scripts, ensuring that the script is used only for its intended purpose of launching interactive sessions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant