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

gefragt vor 2 Jahren457 Aufrufe
1 Antwort
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-TECHNIKER
Yash_C
beantwortet vor 2 Jahren
AWS
SUPPORT-TECHNIKER
überprüft vor 12 Tagen

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen