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 Athena JDBC driver #63

Closed
wants to merge 1 commit into from
Closed

Conversation

bpoweski
Copy link
Contributor

@julianhyde
Copy link
Owner

Fixed in f75001f. Thanks for the PR!

@julianhyde julianhyde closed this Apr 18, 2017
@Obsecurus
Copy link

Obsecurus commented Nov 5, 2020

Dropping this here in case it saves anyone else time:

  • first copy the Athena JAR to sqlline/target

./sqlline -u 'jdbc:awsathena://athena.us-east-1.amazonaws.com:443;Schema=default;Workgroup=primary;' -d com.simba.athena.jdbc.Driver -nn athena --connectInteractionMode=notAskCredentials --color=true --colorScheme=dark

I specified the notAskCredentials since my credentials are saved at ~/.aws/credentials given that I use saml2aws. However you could alway specify the creds as -n <AWS_ACCESS_ID> -p <AWS_SECRET_KEY>

notice you can pass JDBC args in the -u with ; delimiter. Those options are available here. https://s3.amazonaws.com/athena-downloads/drivers/JDBC/SimbaAthenaJDBC_2.0.14/docs/Simba+Athena+JDBC+Driver+Install+and+Configuration+Guide.pdf

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.

3 participants