-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
134 additions
and
72 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
*.DS_Store | ||
*.class | ||
*.log | ||
*.pyc | ||
sbt/*.jar | ||
.idea | ||
.idea_modules | ||
*.iml | ||
|
||
# sbt specific | ||
build/*.jar | ||
.cache/ | ||
.history/ | ||
.lib/ | ||
dist/* | ||
target/ | ||
lib_managed/ | ||
src_managed/ | ||
project/boot/ | ||
project/plugins/project/ | ||
performance/ |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM 021732063925.dkr.ecr.us-west-2.amazonaws.com/eks-spark-benchmark:emr6.10_jdk8 | ||
USER root | ||
ENV JAVA_HOME /etc/alternatives/jre | ||
|
||
RUN rpm -qa | grep corretto | xargs yum -y remove \ | ||
# to keep hadoop-lzo dependency | ||
&& rpm -e --nodeps java-1.8.0-openjdk-headless \ | ||
&& amazon-linux-extras install java-openjdk11 \ | ||
&& yum clean all | ||
RUN alternatives --set java /usr/lib/jvm/$(ls /usr/lib/jvm | grep java-11 | cut -f 3)/bin/java | ||
# # Use hadoop user and group | ||
USER hadoop:hadoop |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM 021732063925.dkr.ecr.us-west-2.amazonaws.com/eks-spark-benchmark:emr6.10_jdk8 | ||
USER root | ||
|
||
# RUN amazon-linux-extras enable nginx1 \ | ||
# && rpm --import https://yum.corretto.aws/corretto.key \ | ||
# && curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo | ||
RUN yum update -y \ | ||
&& amazon-linux-extras disable corretto8 \ | ||
# && rpm -qa | grep -E "openjdk|corretto" | xargs yum -y remove \ | ||
&& rpm -qa | grep corretto | xargs yum -y remove \ | ||
# to keep hadoop-lzo dependency | ||
&& rpm -e --nodeps java-1.8.0-openjdk-headless \ | ||
&& yum install -y java-11-amazon-corretto \ | ||
&& yum clean all | ||
|
||
|
||
# RUN alternatives --set java /usr/lib/jvm/$(ls /usr/lib/jvm | grep corretto | cut -f 3)/bin/java | ||
# # Use hadoop user and group | ||
USER hadoop:hadoop |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
# SPDX-FileCopyrightText: Copyright 2021 Amazon.com, Inc. or its affiliates. | ||
# SPDX-License-Identifier: MIT-0 | ||
|
||
# cross account test | ||
# "spark.hadoop.fs.s3.bucket.emr-eks-demo-720560070661-us-east-1.customAWSCredentialsProvider": "com.amazonaws.emr.AssumeRoleAWSCredentialsProvider", | ||
# "spark.kubernetes.driverEnv.ASSUME_ROLE_CREDENTIALS_ROLE_ARN": "arn:aws:iam::720560070661:role/EMRContainers-JobExecutionRole", | ||
# "spark.executorEnv.ASSUME_ROLE_CREDENTIALS_ROLE_ARN": "arn:aws:iam::720560070661:role/EMRContainers-JobExecutionRole" | ||
|
||
# export EMRCLUSTER_NAME=emr-on-eks-rss | ||
# export AWS_REGION=us-east-1 | ||
export ACCOUNTID=$(aws sts get-caller-identity --query Account --output text) | ||
export VIRTUAL_CLUSTER_ID=$(aws emr-containers list-virtual-clusters --query "virtualClusters[?name == '$EMRCLUSTER_NAME' && state == 'RUNNING'].id" --output text) | ||
export EMR_ROLE_ARN=arn:aws:iam::$ACCOUNTID:role/$EMRCLUSTER_NAME-execution-role | ||
export S3BUCKET=$EMRCLUSTER_NAME-$ACCOUNTID-$AWS_REGION | ||
export ECR_URL="$ACCOUNTID.dkr.ecr.$AWS_REGION.amazonaws.com" | ||
|
||
aws emr-containers start-job-run \ | ||
--virtual-cluster-id $VIRTUAL_CLUSTER_ID \ | ||
--name emr610-JDK8 \ | ||
--execution-role-arn $EMR_ROLE_ARN \ | ||
--release-label emr-6.9.0-latest \ | ||
--retry-policy-configuration '{"maxAttempts": 5}' \ | ||
--job-driver '{ | ||
"sparkSubmitJobDriver": { | ||
"entryPoint": "local:///usr/lib/spark/examples/jars/eks-spark-benchmark-assembly-1.0.jar", | ||
"entryPointArguments":["s3://'$S3BUCKET'/BLOG_TPCDS-TEST-3T-partitioned","s3://'$S3BUCKET'/JDK_EMRONEKS_TPCDS-TEST-3T-RESULT","/opt/tpcds-kit/tools","parquet","3000","1","false","q1-v2.4,q10-v2.4,q11-v2.4,q12-v2.4,q13-v2.4,q14a-v2.4,q14b-v2.4,q15-v2.4,q16-v2.4,q17-v2.4,q18-v2.4,q19-v2.4,q2-v2.4,q20-v2.4,q21-v2.4,q22-v2.4,q23a-v2.4,q23b-v2.4,q24a-v2.4,q24b-v2.4,q25-v2.4,q26-v2.4,q27-v2.4,q28-v2.4,q29-v2.4,q3-v2.4,q30-v2.4,q31-v2.4,q32-v2.4,q33-v2.4,q34-v2.4,q35-v2.4,q36-v2.4,q37-v2.4,q38-v2.4,q39a-v2.4,q39b-v2.4,q4-v2.4,q40-v2.4,q41-v2.4,q42-v2.4,q43-v2.4,q44-v2.4,q45-v2.4,q46-v2.4,q47-v2.4,q48-v2.4,q49-v2.4,q5-v2.4,q50-v2.4,q51-v2.4,q52-v2.4,q53-v2.4,q54-v2.4,q55-v2.4,q56-v2.4,q57-v2.4,q58-v2.4,q59-v2.4,q6-v2.4,q60-v2.4,q61-v2.4,q62-v2.4,q63-v2.4,q64-v2.4,q65-v2.4,q66-v2.4,q67-v2.4,q68-v2.4,q69-v2.4,q7-v2.4,q70-v2.4,q71-v2.4,q72-v2.4,q73-v2.4,q74-v2.4,q75-v2.4,q76-v2.4,q77-v2.4,q78-v2.4,q79-v2.4,q8-v2.4,q80-v2.4,q81-v2.4,q82-v2.4,q83-v2.4,q84-v2.4,q85-v2.4,q86-v2.4,q87-v2.4,q88-v2.4,q89-v2.4,q9-v2.4,q90-v2.4,q91-v2.4,q92-v2.4,q93-v2.4,q94-v2.4,q95-v2.4,q96-v2.4,q97-v2.4,q98-v2.4,q99-v2.4,ss_max-v2.4","true"], | ||
"sparkSubmitParameters": "--class com.amazonaws.eks.tpcds.BenchmarkSQL --conf spark.driver.cores=4 --conf spark.driver.memory=5g --conf spark.executor.cores=4 --conf spark.executor.memory=6g --conf spark.executor.instances=47"}}' \ | ||
--configuration-overrides '{ | ||
"applicationConfiguration": [ | ||
{ | ||
"classification": "spark-defaults", | ||
"properties": { | ||
"spark.kubernetes.container.image": "'$ECR_URL'/eks-spark-benchmark:emr6.10_jdk8", | ||
"spark.kubernetes.driver.podTemplateFile": "s3://'$S3BUCKET'/app_code/pod-template/driver-pod-template.yaml", | ||
"spark.kubernetes.executor.podTemplateFile": "s3://'$S3BUCKET'/app_code/pod-template/executor-pod-template.yaml", | ||
"spark.kubernetes.driver.limit.cores": "4.1", | ||
"spark.kubernetes.executor.limit.cores": "4.3", | ||
"spark.driver.memoryOverhead": "1000", | ||
"spark.executor.memoryOverhead": "2G", | ||
"spark.network.timeout": "2000s", | ||
"spark.executor.heartbeatInterval": "300s", | ||
"spark.kubernetes.node.selector.eks.amazonaws.com/nodegroup": "c59d" | ||
}}, | ||
{ | ||
"classification": "spark-log4j", | ||
"properties": { | ||
"rootLogger.level" : "WARN" | ||
} | ||
} | ||
], | ||
"monitoringConfiguration": { | ||
"s3MonitoringConfiguration": {"logUri": "s3://'$S3BUCKET'/elasticmapreduce/emr-containers"}}}' |
This file was deleted.
Oops, something went wrong.
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