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

asked 2 years ago561 views
1 Answer
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
SUPPORT ENGINEER
Yash_C
answered 2 years ago
profile pictureAWS
SUPPORT ENGINEER
reviewed 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions