Skip to content

Conversation

@ifilonenko
Copy link
Contributor

What changes were proposed in this pull request?

Changed the kubernetes-client version and refactored code that broke as a result

How was this patch tested?

Unit and Integration tests

@ifilonenko
Copy link
Contributor Author

@erikerlandson @skonto @liyinan926 for review
Do you see additional places where we would want to leverage the newer version for optimality?

@SparkQA
Copy link

SparkQA commented Oct 25, 2018

Test build #97992 has finished for PR 22820 at commit de62f07.

  • This patch fails build dependency tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

<properties>
<sbt.project.name>kubernetes</sbt.project.name>
<kubernetes.client.version>3.0.0</kubernetes.client.version>
<kubernetes.client.version>4.0.0</kubernetes.client.version>
Copy link
Contributor

@skonto skonto Oct 25, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4.1.0? https://mvnrepository.com/artifact/io.fabric8/kubernetes-client/4.1.0 what are the differences compared to 4.0.0?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, agreed. Maybe 4.1.0 is a more stable version

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah just wondering I don't know. What matters is what each version supports. Still no version supports 1.11 fabric8io/kubernetes-client#1235

@ifilonenko ifilonenko changed the title [SPARK-25828][K8S] Bumping Kubernetes-Client version to 4.0.0 [SPARK-25828][K8S] Bumping Kubernetes-Client version to 4.1.0 Oct 25, 2018
@ifilonenko ifilonenko changed the title [SPARK-25828][K8S] Bumping Kubernetes-Client version to 4.1.0 [SPARK-25828][K8S][BUILD] Bumping Kubernetes-Client version to 4.1.0 Oct 25, 2018
@SparkQA
Copy link

SparkQA commented Oct 25, 2018

Test build #97994 has finished for PR 22820 at commit 3d7a0b9.

  • This patch fails build dependency tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@felixcheung felixcheung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should there be some doc changes on supported client version

@SparkQA
Copy link

SparkQA commented Oct 25, 2018

Test build #98037 has finished for PR 22820 at commit a28ebcf.

  • This patch fails build dependency tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Contributor

@liyinan926 liyinan926 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. But looks like the build failed on dependency tests. Please take a look.

@SparkQA
Copy link

SparkQA commented Oct 25, 2018

@ifilonenko
Copy link
Contributor Author

ifilonenko commented Oct 25, 2018

But looks like the build failed on dependency tests. Please take a look.

@liyinan926 that is In reference to manifests that need to be updated in dev/deps/spark-deps-hadoop-2.7 and dev/deps/spark-deps-hadoop-3.1. This most recent commit should fix

@SparkQA
Copy link

SparkQA commented Oct 25, 2018

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/testing-k8s-prb-make-spark-distribution-unified/4494/

@SparkQA
Copy link

SparkQA commented Oct 25, 2018

@SparkQA
Copy link

SparkQA commented Oct 25, 2018

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/testing-k8s-prb-make-spark-distribution-unified/4496/


The driver and executor pod scheduling is handled by Kubernetes. It is possible to schedule the
The driver and executor pod scheduling is handled by Kubernetes. Communication to the Kubernetes API is done via fabric8, and we are
currently running <code>kubernetes-client</code> version <code>4.1.0</code>. Make sure that any infrastructure additions are weary of said version. It is possible to schedule the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "wary" ? or "aware of " ?

@SparkQA
Copy link

SparkQA commented Oct 25, 2018

@SparkQA
Copy link

SparkQA commented Oct 25, 2018

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/testing-k8s-prb-make-spark-distribution-unified/4509/

@SparkQA
Copy link

SparkQA commented Oct 26, 2018

Test build #98041 has finished for PR 22820 at commit c6b6723.

  • This patch fails from timeout after a configured wait of 400m.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 26, 2018

Test build #98054 has finished for PR 22820 at commit 728d70a.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@ifilonenko ifilonenko changed the title [SPARK-25828][K8S][BUILD] Bumping Kubernetes-Client version to 4.1.0 [SPARK-25828][K8S] Bumping Kubernetes-Client version to 4.1.0 Oct 26, 2018
@ifilonenko
Copy link
Contributor Author

retest this please

@SparkQA
Copy link

SparkQA commented Oct 26, 2018

@SparkQA
Copy link

SparkQA commented Oct 26, 2018

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/testing-k8s-prb-make-spark-distribution-unified/4519/

@SparkQA
Copy link

SparkQA commented Oct 26, 2018

Test build #98064 has finished for PR 22820 at commit 728d70a.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@rvesse rvesse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 Would like to get this in ASAP so I can rebase PR #22805 and avoid mixing unrelated changes into the integration testing enhancement PR per @liyinan926's request

if (time != null) time.getTime else "N/A"
def formatTime(time: String): String = {
// TODO: Investigate form `time` comes in as there was a DataType
// change from Time to String
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The string returned is ISO8601 format so no need to do anything special here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e.g. a sample from the logs from my PR where I had made a similar change:

creation time: 2018-10-24T17:17:03Z

@SparkQA
Copy link

SparkQA commented Oct 26, 2018

@SparkQA
Copy link

SparkQA commented Oct 26, 2018

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/testing-k8s-prb-make-spark-distribution-unified/4545/

@SparkQA
Copy link

SparkQA commented Oct 26, 2018

Test build #98102 has finished for PR 22820 at commit b0ba951.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@ifilonenko
Copy link
Contributor Author

ifilonenko commented Oct 26, 2018

@felixcheung and @erikerlandson and @liyinan926 for merge

@erikerlandson
Copy link
Contributor

merging

@asfgit asfgit closed this in e9b71c8 Oct 26, 2018
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
## What changes were proposed in this pull request?

Changed the `kubernetes-client` version and refactored code that broke as a result

## How was this patch tested?

Unit and Integration tests

Closes apache#22820 from ifilonenko/SPARK-25828.

Authored-by: Ilan Filonenko <[email protected]>
Signed-off-by: Erik Erlandson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants