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
If you don't have a default region set in your config or environment, you can use the --region parameter:
emrss \
--application-id $APPLICATION_ID \
--job-role-arn $JOB_ROLE_ARN \
--s3-bucket $S3_BUCKET \
--region $REGION \
"show tables"
Metadata
Release files for emr-serverless-sql-cli 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| emr_serverless_sql_cli-0.5.0.tar.gz | 4.5 kB | Without provenance | Details for emr_serverless_sql_cli-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| emr_serverless_sql_cli-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for emr_serverless_sql_cli-0.5.0-py3-none-any.whl |
Total release size: 10.5 kB
Release files / emr_serverless_sql_cli-0.5.0.tar.gz
| Download URL | emr_serverless_sql_cli-0.5.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae96c95eac70b3d49708e46db4f5bce8a0b6f412dfeb4f7c9475192c4394aa9a
|
|
BLAKE2b-256 checksum How to use checksums |
a6ffef752fe3038e82b0a9a1dc163dd32d1c6cc7c56040c4e7c5b2a69b7a7ca9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.7.13 Darwin/23.2.0
|
Release files / emr_serverless_sql_cli-0.5.0-py3-none-any.whl
| Download URL | emr_serverless_sql_cli-0.5.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86e2d9874a888df4eb7ffc94ef7ead9d6d089a01786f6ed934a4e600e6d9405a
|
|
BLAKE2b-256 checksum How to use checksums |
8ffc6ab776c325ecd3ab0dcc1dba129346014a2c68b05cd69007d97fcb431735
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.7.13 Darwin/23.2.0
|
Security for emr-serverless-sql-cli 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.