You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/07/26 16:15:06 UTC

[GitHub] [spark] jlpedrosa edited a comment on issue #24962: [SPARK-28149][K8S] Added variable to disable negative DNS caching

jlpedrosa edited a comment on issue #24962: [SPARK-28149][K8S] Added variable to disable negative DNS caching
URL: https://github.com/apache/spark/pull/24962#issuecomment-515020132
 
 
   Hi @vanzin  @erikerlandson 
   
   I've tested the approach suggested and it works, the process is a bit cumbersome for the user. So it is a question of usability, 
   
   1) Create docker spark images (generic ones, in my case I used master)
   2) Create a modified version of the java security file.
   3) Push the config map to k8s
   4) Create a template that contains the volumes and the mounts
   5) Create custom spark images based on 1)  ~~including 2) (-java.security.properties can be only mounted from local.)~~ 
   6) Run spark submit using the images on 5) and using 4) as a template: 
   
   ```
   --conf spark.kubernetes.driver.podTemplateFile=....vtemplate.yaml \
   --conf 'spark.driver.extraJavaOptions=-Djava.security.properties=/etc/config_mount/jvm.java.security'     
   ```
   
   sample template:
   ```
   spec:
     containers:
       - volumeMounts:
         - name: config-volume
           mountPath: /etc/config_mount
     volumes:
       - name: config-volume
         configMap:
           name: jvm-opts-no-dns-caching
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org