No project description provided
Project description
EMR Serverless SQL
An experimental tool for running SQL on EMR Serverless.
Written primarily to scratch an itch, this tool is not recommended for production use-cases.
Installing
Install and update using pip:
pip install -U emr-serverless-sql-cli
Running
emrss
assumes you have a pre-existing EMR Serverless application, IAM job role, and S3 bucket where artifacts will be stored.
You can run simple commands by providing a query string.
emrss \
--application-id $APPLICATION_ID \
--job-role-arn $JOB_ROLE_ARN \
--s3-bucket $S3_BUCKET \
"show tables"
Or you can also provide a SQL file using the -f
parameter.
emrss \
--application-id $APPLICATION_ID \
--job-role-arn $JOB_ROLE_ARN \
--s3-bucket $S3_BUCKET \
-f script.sql
And just for fun, you can also run a PySpark notebook through. 😮
emrss \
--application-id $APPLICATION_ID \
--job-role-arn $JOB_ROLE_ARN \
--s3-bucket $S3_BUCKET \
-f notebook.ipynb
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for emr_serverless_sql_cli-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2cd7b56920150a6815f55cc740b9f6cd482e69d6ef597c2116761b453a353b2 |
|
MD5 | 3a75dc09db8a4155b2ac1c95c1bfd1c0 |
|
BLAKE2b-256 | b9c3bab75dd31c4a687418d913a10651de661e372da563cac9169ef11b874cd5 |
Close
Hashes for emr_serverless_sql_cli-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76df9ba4e838ace1552257bb0b39c1d772f3a85da03f847d44e52d96289a270d |
|
MD5 | 7254e643800044c46979e7c4e173b1c9 |
|
BLAKE2b-256 | 50aec49a624ec9d37d7ad8686c1a4bcb1a9a1b65b819f0742d97fd0ca340ee6e |