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

[Improvement] Add support for curl and wget #21

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

Conversation

justinmclean
Copy link
Member

macOS doesn't have wget installed by default, and the playground script fails silently if wget is not installed. Add support for wget and curl and print out a meaningful error message if neither can be found. This fixes #20.

@justinmclean
Copy link
Member Author

Tested by uninstalling wget and running the launch-playground.sh script.

@justinmclean justinmclean self-assigned this Jan 16, 2024
echo "Start to download the jar package of JDBC"
wget https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.27/mysql-connector-java-8.0.27.jar -O /root/gravitino/catalogs/jdbc-mysql/libs/mysql-connector-java-8.0.27.jar
wget https://jdbc.postgresql.org/download/postgresql-42.7.0.jar -O /root/gravitino/catalogs/jdbc-postgresql/libs/postgresql-42.7.0.jar
echo "Downloading the JDBC drivers for MySQL and PostgreSQL"
Copy link
Contributor

@qqqttt123 qqqttt123 Jan 17, 2024

Choose a reason for hiding this comment

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

This shell should be executed in the Docker image, too. So I guess the issue isn't caused by the absence of wget.

@justinmclean
Copy link
Member Author

I am a little confused by what going on here but without wget installed the launch playground script fails. I can't see where it uses wget but it fails, users have also reported this and have fixed it by installing wget. If you install wget or have the above changes it works.

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.

Playground fails to start with error dependency failed to start: container playground-gravitino is unhealthy
2 participants