You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by jerryshao <gi...@git.apache.org> on 2018/05/09 05:52:52 UTC

[GitHub] spark pull request #21279: [SPARK-24219][k8s] Improve the docker building sc...

GitHub user jerryshao opened a pull request:

    https://github.com/apache/spark/pull/21279

    [SPARK-24219][k8s] Improve the docker building script to avoid copying everything under examples to docker image

    ## What changes were proposed in this pull request?
    
    Current docker build script will copy everything under example folder to docker image if it is invoked in Spark's development directory, this unnecessarily copies too many files like building temporary files, duplicated jars into the docker image. So here propose to improve the script.
    
    ## How was this patch tested?
    
    Manually verified in local build with minikube.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jerryshao/apache-spark SPARK-24219

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/21279.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #21279
    
----

----


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/90403/
    Test PASSed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Kubernetes integration test status failure
    URL: https://amplab.cs.berkeley.edu/jenkins/job/testing-k8s-prb-spark-integration/2982/



---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by jerryshao <gi...@git.apache.org>.
Github user jerryshao commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Jenkins, retest this please.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/90401/
    Test FAILed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Kubernetes integration test status failure
    URL: https://amplab.cs.berkeley.edu/jenkins/job/testing-k8s-prb-spark-integration/2988/



---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution/3089/
    Test PASSed.


---

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


[GitHub] spark pull request #21279: [SPARK-24219][k8s] Improve the docker building sc...

Posted by attilapiros <gi...@git.apache.org>.
Github user attilapiros commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21279#discussion_r197916290
  
    --- Diff: bin/docker-image-tool.sh ---
    @@ -44,15 +44,37 @@ function image_ref {
     function build {
       local BUILD_ARGS
       local IMG_PATH
    +  local TMPFOLDER
     
       if [ ! -f "$SPARK_HOME/RELEASE" ]; then
         # Set image build arguments accordingly if this is a source repo and not a distribution archive.
    +    local JARS="${SPARK_HOME}/assembly/target/scala-${SPARK_SCALA_VERSION}/jars"
    +    TMPFOLDER=`mktemp -q -d examples.XXXXXX`
    +    if [ $? -ne 0 ]; then
    +      ehco "Cannot create temp folder, exiting..."
    --- End diff --
    
    ehco -> echo


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution/3064/
    Test PASSed.


---

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


[GitHub] spark pull request #21279: [SPARK-24219][k8s] Improve the docker building sc...

Posted by erikerlandson <gi...@git.apache.org>.
Github user erikerlandson commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21279#discussion_r213314870
  
    --- Diff: bin/docker-image-tool.sh ---
    @@ -44,15 +44,37 @@ function image_ref {
     function build {
       local BUILD_ARGS
       local IMG_PATH
    +  local TMPFOLDER
     
       if [ ! -f "$SPARK_HOME/RELEASE" ]; then
         # Set image build arguments accordingly if this is a source repo and not a distribution archive.
    +    local JARS="${SPARK_HOME}/assembly/target/scala-${SPARK_SCALA_VERSION}/jars"
    +    TMPFOLDER=`mktemp -q -d examples.XXXXXX`
    --- End diff --
    
    This will probably work, just wondering if we can use `-p /some/path` where `/some/path` is guaranteed to exist. This could fail in theory if for some reason `/tmp` doesn't exist (or doesn't have space?) or if the user's TMPDIR is set to something non-writable


---

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


[GitHub] spark pull request #21279: [SPARK-24219][k8s] Improve the docker building sc...

Posted by foxish <gi...@git.apache.org>.
Github user foxish commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21279#discussion_r197906642
  
    --- Diff: bin/docker-image-tool.sh ---
    @@ -44,15 +44,37 @@ function image_ref {
     function build {
       local BUILD_ARGS
       local IMG_PATH
    +  local TMPFOLDER
     
       if [ ! -f "$SPARK_HOME/RELEASE" ]; then
         # Set image build arguments accordingly if this is a source repo and not a distribution archive.
    +    local JARS="${SPARK_HOME}/assembly/target/scala-${SPARK_SCALA_VERSION}/jars"
    +    TMPFOLDER=`mktemp -q -d examples.XXXXXX`
    +    if [ $? -ne 0 ]; then
    +      ehco "Cannot create temp folder, exiting..."
    +      exit 1
    +    fi
    +
    +    mkdir -p "${TMPFOLDER}/jars"
    +    cp "${SPARK_HOME}"/examples/target/scala*/jars/* "${TMPFOLDER}/jars"
    --- End diff --
    
    Do we need the temp folder? Can we just pass the path `"${SPARK_HOME}"/examples/target/scala*/jars/*` to the dockerfile instead to pick up?


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Merged build finished. Test PASSed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    **[Test build #90401 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/90401/testReport)** for PR 21279 at commit [`e9ea7e5`](https://github.com/apache/spark/commit/e9ea7e5dc0cd2c3456112ad46c754571ac6e555b).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Merged build finished. Test PASSed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/90435/
    Test PASSed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Merged build finished. Test PASSed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Kubernetes integration test status success
    URL: https://amplab.cs.berkeley.edu/jenkins/job/testing-k8s-prb-spark-integration/3003/



---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Merged build finished. Test FAILed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by foxish <gi...@git.apache.org>.
Github user foxish commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    oops, I didn't notice this. Sorry @jerryshao, will take a look in the next day or two.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    **[Test build #90435 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/90435/testReport)** for PR 21279 at commit [`e9ea7e5`](https://github.com/apache/spark/commit/e9ea7e5dc0cd2c3456112ad46c754571ac6e555b).


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution/3066/
    Test PASSed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/90398/
    Test FAILed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Merged build finished. Test FAILed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by jerryshao <gi...@git.apache.org>.
Github user jerryshao commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    @foxish would you please help to review this, thanks a lot!


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    **[Test build #90435 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/90435/testReport)** for PR 21279 at commit [`e9ea7e5`](https://github.com/apache/spark/commit/e9ea7e5dc0cd2c3456112ad46c754571ac6e555b).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Merged build finished. Test PASSed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    **[Test build #90398 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/90398/testReport)** for PR 21279 at commit [`e9ea7e5`](https://github.com/apache/spark/commit/e9ea7e5dc0cd2c3456112ad46c754571ac6e555b).


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    **[Test build #90403 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/90403/testReport)** for PR 21279 at commit [`e9ea7e5`](https://github.com/apache/spark/commit/e9ea7e5dc0cd2c3456112ad46c754571ac6e555b).


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    **[Test build #90401 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/90401/testReport)** for PR 21279 at commit [`e9ea7e5`](https://github.com/apache/spark/commit/e9ea7e5dc0cd2c3456112ad46c754571ac6e555b).


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Kubernetes integration test starting
    URL: https://amplab.cs.berkeley.edu/jenkins/job/testing-k8s-prb-spark-integration/2988/



---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    **[Test build #90409 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/90409/testReport)** for PR 21279 at commit [`e9ea7e5`](https://github.com/apache/spark/commit/e9ea7e5dc0cd2c3456112ad46c754571ac6e555b).


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Kubernetes integration test starting
    URL: https://amplab.cs.berkeley.edu/jenkins/job/testing-k8s-prb-spark-integration/2982/



---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    **[Test build #90409 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/90409/testReport)** for PR 21279 at commit [`e9ea7e5`](https://github.com/apache/spark/commit/e9ea7e5dc0cd2c3456112ad46c754571ac6e555b).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark pull request #21279: [SPARK-24219][k8s] Improve the docker building sc...

Posted by attilapiros <gi...@git.apache.org>.
Github user attilapiros commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21279#discussion_r197919386
  
    --- Diff: bin/docker-image-tool.sh ---
    @@ -44,15 +44,37 @@ function image_ref {
     function build {
       local BUILD_ARGS
       local IMG_PATH
    +  local TMPFOLDER
     
       if [ ! -f "$SPARK_HOME/RELEASE" ]; then
         # Set image build arguments accordingly if this is a source repo and not a distribution archive.
    +    local JARS="${SPARK_HOME}/assembly/target/scala-${SPARK_SCALA_VERSION}/jars"
    +    TMPFOLDER=`mktemp -q -d examples.XXXXXX`
    +    if [ $? -ne 0 ]; then
    +      ehco "Cannot create temp folder, exiting..."
    +      exit 1
    +    fi
    +
    +    mkdir -p "${TMPFOLDER}/jars"
    +    cp "${SPARK_HOME}"/examples/target/scala*/jars/* "${TMPFOLDER}/jars"
    --- End diff --
    
    We cannot as long as we do not want to delete from the target directory like done in [this line](https://github.com/jerryshao/apache-spark/blob/e9ea7e5dc0cd2c3456112ad46c754571ac6e555b/bin/docker-image-tool.sh#L63) where the duplicated jars are removed.
    `  


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    **[Test build #90398 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/90398/testReport)** for PR 21279 at commit [`e9ea7e5`](https://github.com/apache/spark/commit/e9ea7e5dc0cd2c3456112ad46c754571ac6e555b).
     * This patch **fails due to an unknown error code, -9**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark pull request #21279: [SPARK-24219][k8s] Improve the docker building sc...

Posted by erikerlandson <gi...@git.apache.org>.
Github user erikerlandson commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21279#discussion_r213317184
  
    --- Diff: bin/docker-image-tool.sh ---
    @@ -44,15 +44,37 @@ function image_ref {
     function build {
       local BUILD_ARGS
       local IMG_PATH
    +  local TMPFOLDER
     
       if [ ! -f "$SPARK_HOME/RELEASE" ]; then
         # Set image build arguments accordingly if this is a source repo and not a distribution archive.
    +    local JARS="${SPARK_HOME}/assembly/target/scala-${SPARK_SCALA_VERSION}/jars"
    +    TMPFOLDER=`mktemp -q -d examples.XXXXXX`
    +    if [ $? -ne 0 ]; then
    +      ehco "Cannot create temp folder, exiting..."
    +      exit 1
    +    fi
    +
    +    mkdir -p "${TMPFOLDER}/jars"
    --- End diff --
    
    Also, is using `${SPARK_SCALA_VERSION}` preferable to  `scala*`  ?


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/90409/
    Test PASSed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by jerryshao <gi...@git.apache.org>.
Github user jerryshao commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    jenkins, retest this please.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Merged build finished. Test PASSed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by jerryshao <gi...@git.apache.org>.
Github user jerryshao commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Jenkins, retest this please.


---

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


[GitHub] spark pull request #21279: [SPARK-24219][k8s] Improve the docker building sc...

Posted by erikerlandson <gi...@git.apache.org>.
Github user erikerlandson commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21279#discussion_r213316408
  
    --- Diff: bin/docker-image-tool.sh ---
    @@ -44,15 +44,37 @@ function image_ref {
     function build {
       local BUILD_ARGS
       local IMG_PATH
    +  local TMPFOLDER
     
       if [ ! -f "$SPARK_HOME/RELEASE" ]; then
         # Set image build arguments accordingly if this is a source repo and not a distribution archive.
    +    local JARS="${SPARK_HOME}/assembly/target/scala-${SPARK_SCALA_VERSION}/jars"
    +    TMPFOLDER=`mktemp -q -d examples.XXXXXX`
    +    if [ $? -ne 0 ]; then
    +      ehco "Cannot create temp folder, exiting..."
    +      exit 1
    +    fi
    +
    +    mkdir -p "${TMPFOLDER}/jars"
    --- End diff --
    
    (nit)
    `cp -R ${SPARK_HOME}"/examples/target/scala*/jars ${TMPFOLDER}` ?


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Merged build finished. Test PASSed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Kubernetes integration test status success
    URL: https://amplab.cs.berkeley.edu/jenkins/job/testing-k8s-prb-spark-integration/2980/



---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Merged build finished. Test PASSed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution/3072/
    Test PASSed.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Kubernetes integration test starting
    URL: https://amplab.cs.berkeley.edu/jenkins/job/testing-k8s-prb-spark-integration/3003/



---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    **[Test build #90403 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/90403/testReport)** for PR 21279 at commit [`e9ea7e5`](https://github.com/apache/spark/commit/e9ea7e5dc0cd2c3456112ad46c754571ac6e555b).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark issue #21279: [SPARK-24219][k8s] Improve the docker building script to...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21279
  
    Kubernetes integration test starting
    URL: https://amplab.cs.berkeley.edu/jenkins/job/testing-k8s-prb-spark-integration/2980/



---

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