Last active
February 13, 2018 20:34
-
-
Save msdotnetclr/4beee354b439419ccd58744af640bf07 to your computer and use it in GitHub Desktop.
Presto CLI script example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PRESTO_PASSWORD=***** | |
./presto194 \ | |
--server https://presto.server:31443 \ | |
--catalog <mycatalog> \ | |
--keystore-password password \ | |
--keystore-path /mnt/c/private/presto-client.jks \ | |
--schema <myschema> \ | |
--output-format TSV \ | |
--user <username> \ | |
--password \ | |
-f testquery.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To run the script and capture the output to an environment variable, use this: