jlpedrosa commented on a change in pull request #24702: [Minor] [Kubernetes] 
[Core] Added retries on the connection to the driver for k8s
URL: https://github.com/apache/spark/pull/24702#discussion_r291663344
 
 

 ##########
 File path: 
resource-managers/kubernetes/docker/src/main/dockerfiles/spark/Dockerfile
 ##########
 @@ -51,6 +51,8 @@ ENV SPARK_HOME /opt/spark
 
 WORKDIR /opt/spark/work-dir
 RUN chmod g+w /opt/spark/work-dir
+#Disable negative dns reslolution 
https://docs.oracle.com/javase/8/docs/technotes/guides/net/properties.html
+RUN sed -i -e 
's/networkaddress.cache.negative.ttl=10/networkaddress.cache.negative.ttl=0/g'  
/usr/lib/jvm/java-1.8-openjdk/jre/lib/security/java.security
 
 Review comment:
   As I read in the docs, no those values can't be overriden via properties. It 
can be just replaced the whole file. 
   
https://stackoverflow.com/questions/4521119/java-argument-to-specify-java-security-file-for-jvm
   You can use this code to test.
   
   ```
   import java.security.Security;
   
   public class HelloWorld {
   
       public static void main(String[] args) {
          String prop = 
Security.getProperty("networkaddress.cache.negative.ttl");
          System.out.println("java.security.networkaddress.cache.negative.ttl: 
" + prop);
       }
   }
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to