Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20669#discussion_r175268465
  
    --- Diff: 
resource-managers/kubernetes/docker/src/main/dockerfiles/spark/entrypoint.sh ---
    @@ -53,14 +53,10 @@ fi
     case "$SPARK_K8S_CMD" in
       driver)
         CMD=(
    -      ${JAVA_HOME}/bin/java
    -      "${SPARK_JAVA_OPTS[@]}"
    -      -cp "$SPARK_CLASSPATH"
    -      -Xms$SPARK_DRIVER_MEMORY
    -      -Xmx$SPARK_DRIVER_MEMORY
    -      -Dspark.driver.bindAddress=$SPARK_DRIVER_BIND_ADDRESS
    -      $SPARK_DRIVER_CLASS
    -      $SPARK_DRIVER_ARGS
    +      "$SPARK_HOME/bin/spark-submit"
    +      --conf "spark.driver.bindAddress=$SPARK_DRIVER_BIND_ADDRESS"
    +      --deploy-mode client
    +      "$@"
    --- End diff --
    
    > If one is going to override the docker image and provide their own 
implementation
    
    There is no documentation about that, so how about defining what that 
contract is supposed to be first? Otherwise we're all just talking about 
hypotheticals.
    
    My current understanding is that regardless of what's in the image, 
`entrypoint.sh` defines the entry point's contract, so this is an internal 
decision between spark-submit code and that shell script.


---

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

Reply via email to