spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Johann <>
Subject [K8S] properties file via SPARK_CONF_DIR and --properties-file prevents definition of own properties via secrets/own mounts
Date Tue, 13 Aug 2019 19:15:37 GMT
Hi all,

K8S resource manager dumps the config map to /opt/spark/conf/spark-defaults.conf and passes
it to spark submit twice:
	• via env var SPARK_CONF_DIR=/opt/spark/conf/
	• argument --properties-file /opt/spark/conf/spark-defaults.conf
This prevents definition of user defined properties, such as from secrets - currently it seems
to be the only possibility to define spark config properties from k8s secrets.

Is the current implementation intent? If yes, what are the reasons behind that decision?

Thanks and kind regards

Roland Johann
Software Developer/Data Engineer

phenetic GmbH
Lütticher Straße 10, 50674 Köln, Germany

Mobil: +49 172 365 26 46

Handelsregister: Amtsgericht Köln (HRB 92595)
Geschäftsführer: Roland Johann, Uwe Reimann

View raw message