Skip to main content

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

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"

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

emr_serverless_sql_cli-0.5.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

emr_serverless_sql_cli-0.5.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file emr_serverless_sql_cli-0.5.0.tar.gz.

File metadata

  • Download URL: emr_serverless_sql_cli-0.5.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.7.13 Darwin/23.2.0

File hashes

Hashes for emr_serverless_sql_cli-0.5.0.tar.gz
Algorithm Hash digest
SHA256 ae96c95eac70b3d49708e46db4f5bce8a0b6f412dfeb4f7c9475192c4394aa9a
MD5 7d96950ffc69376d3c8527c52767a6a2
BLAKE2b-256 a6ffef752fe3038e82b0a9a1dc163dd32d1c6cc7c56040c4e7c5b2a69b7a7ca9

See more details on using hashes here.

File details

Details for the file emr_serverless_sql_cli-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for emr_serverless_sql_cli-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86e2d9874a888df4eb7ffc94ef7ead9d6d089a01786f6ed934a4e600e6d9405a
MD5 dbb013a805eb10efb19e279e5f02d3cd
BLAKE2b-256 8ffc6ab776c325ecd3ab0dcc1dba129346014a2c68b05cd69007d97fcb431735

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page