aws-samples/emr-serverless-samples
aws-samples/emr-serverless-samples has 173 GitHub stars and 86 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-11 21:14 UTC. Last push 2026-07-08.
Example code for running Spark and Hive jobs on EMR Serverless.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 업데이트 지연
- in 1 month
- 업데이트 지연
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalEMR Serverless Samples
This repository contains example code for getting started with EMR Serverless and using it with Apache Spark and Apache Hive.
In addition, it provides Container Images for both the Spark History Server and Tez UI in order to debug your jobs.
For full details about using EMR Serverless, please see the EMR Serverless documentation.
Pre-Requisites
These demos assume you are using an Administrator-level role in your AWS account
Amazon EMR Serverless is now Generally Available! Check out the console to Get Started with EMR Serverless.
Create an Amazon S3 bucket in region where you want to use EMR Serverless (we'll assume
us-east-1).
aws s3 mb s3://BUCKET-NAME --region us-east-1
- Create an EMR Serverless execution role (replacing
BUCKET-NAMEwith the one you created above)
This role provides both S3 access for specific buckets as well as read and write access to the Glue Data Catalog.
aws iam create-role --role-name emr-serverless-job-role --assume-role-policy-document '{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "emr-serverless.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}'
aws iam put-role-policy --role-name emr-serverless-job-role --policy-name S3Access --policy-document '{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ReadFromOutputAndInputBuckets",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::noaa-gsod-pds",
"arn:aws:s3:::noaa-gsod-pds/*",
"arn:aws:s3:::BUCKET-NAME",
"arn:aws:s3:::BUCKET-NAME/*"
]
},
{
"Sid": "WriteToOutputDataBucket",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::BUCKET-NAME/*"
]
}
]
}'
aws iam put-role-policy --role-name emr-serverless-job-role --policy-name GlueAccess --policy-document '{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "GlueCreateAndReadDataCatalog",
"Effect": "Allow",
"Action": [
"glue:GetDatabase",
"glue:GetDataBases",
"glue:CreateTable",
"glue:GetTable",
"glue:GetTables",
"glue:GetPartition",
"glue:GetPartitions",
"glue:CreatePartition",
"glue:BatchCreatePartition",
"glue:GetUserDefinedFunctions"
],
"Resource": ["*"]
}
]
}'
Now you're ready to go! Check out the examples below.
Examples
-
Sample templates for creating an EMR Serverless application as well as various dependencies.
-
Template for creating a CloudWatch Dashboard for monitoring your EMR Serverless application.
-
Examples of building EMR Serverless environments with Amazon CDK.
-
Sample DAGs and preview version of the Airflow Operator. Check the releases page for updates.
-
This sample script shows how to use EMR Serverless to run a PySpark job that analyzes data from the open NOAA Global Surface Summary of Day dataset.
-
Shows how to package Python dependencies (Great Expectations) using a Virtualenv and
venv-pack. -
Shows how to use a different Python version than the default (3.7.10) provided by EMR Serverless.
-
This sample shows how to use EMR Serverless to combine both Python and Java dependencies in order to run genomic analysis using Glow and 1000 Genomes.
-
This sample script shows how to use Hive in EMR Serverless to query the same NOAA data.
SDK Usage
You can call EMR Serverless APIs using standard AWS SDKs. The examples below show how to do this.
Utilities
- EMR Serverless Estimator - Estimate the cost of running Spark jobs on EMR Serverless based on Spark event logs.
The following UIs are available in the EMR Serverless console, but you can still use them locally if you wish.
Spark UI- Use this Dockerfile to run Spark history server in a container.
Tez UI- Use this Dockerfile to run Tez UI and Application Timeline Server in a container.
Other Resources
Security
See CONTRIBUTING for more information.
License
This library is licensed under the MIT-0 License. See the LICENSE file.
관련 프로젝트 살펴보기
Asabeneh/30-Days-Of-Python
30 Days of Python 프로그래밍 챌린지는 Python 프로그래밍 언어를 30일 동안 배우기 위한 단계별 가이드입니다. 이 챌린지는 100일 이상 걸릴 수 있습니다. 자신의 속도에 맞춰 진행하세요. 다음 동영상도 도움이 될 수 있습니다: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,618 스타grafana/grafana
개방적이고 조합 가능한 옵저버빌리티 및 데이터 시각화 플랫폼입니다. Prometheus, Loki, Elasticsearch, InfluxDB, Postgres 등 여러 소스의 메트릭, 로그, 트레이스를 시각화합니다.
77,859 스타redis/redis
실시간 데이터 기반 애플리케이션을 구축하는 개발자에게 Redis는 가장 선호되고, 가장 빠르며, 기능이 가장 풍부한 캐시, 데이터 구조 서버이자 문서 및 벡터 쿼리 엔진입니다.
77,472 스타apache/superset
Apache Superset는 데이터 시각화 및 데이터 탐색 플랫폼입니다.
75,495 스타