EMR on EKS local files

0

Currently for EMR on EC2 we pass in job configuration using a local file my.jar --cfg /local/path/config.cfg ..... Now I'm migrating jobs to both EMR on EKS and EMR Serverless. How can I achieve the same with EMR on EKS or EMR Serverless?

I don't see much in documentation on how that should be handled.

Regards, Atharva

질문됨 2년 전457회 조회
1개 답변
0

Hello,

Can you please confirm, if this (my.jar --cfg /local/path/config.cfg) is a spark config? If yes, then you can pass this spark config through spark-submit.

  • The spark-submit script in Spark’s bin directory is used to launch applications on a cluster. [1]

Also, please feel free to check out our AWS Integration and Automation Github page on EMR on EKS here -

https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/examples/analytics/emr-on-eks

Furthermore, information regarding sparkSubmit and example in terms of AWS CLI command for EMR Serverless has been mentioned on our AWS docs here -

https://docs.aws.amazon.com/emr/latest/EMR-Serverless-UserGuide/jobs-spark.html

conf = An arbitrary Spark configuration property.

Configuration that you provide as part of sparkSubmitParameters using --conf.



Additionally, in regards to containers, you can pass config files to a container using configmaps as a ConfigMap is an API object used to store non-confidential data in key-value pairs. Pods can consume ConfigMaps as environment variables, command-line arguments, or as configuration files in a volume. [2]

  • A ConfigMap allows you to decouple environment-specific configuration from your container images, so that your applications are easily portable.

  • Caution: ConfigMap does not provide secrecy or encryption.



References:

[1] https://spark.apache.org/docs/latest/submitting-applications.html

[2] https://kubernetes.io/docs/concepts/configuration/configmap/

profile pictureAWS
지원 엔지니어
Yash_C
답변함 2년 전
AWS
지원 엔지니어
검토됨 11일 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인