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

preguntada hace 2 años457 visualizaciones
1 Respuesta
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
INGENIERO DE SOPORTE
Yash_C
respondido hace 2 años
AWS
INGENIERO DE SOPORTE
revisado hace 11 días

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas