Skip to content

Conversation

@ash211
Copy link

@ash211 ash211 commented Aug 23, 2017

We merged things into palantir/spark in a slightly different order than upstream -- revert to get to a clean slate, then cherry pick the PRs in order of upstream

Notable inclusion: the PR that allows small-files to skip RSS

ash211 and others added 5 commits August 23, 2017 15:36
* Use a secret to mount small files in driver and executors.

Allows bypassing the resource staging server in a few scenarios.

* Fix scalstyle

* Address comments and add tests.

* Lightly brush up formatting.

* Make the working directory empty so that added files don't clobber existing binaries.

* Address comments.

* Drop testing file size to N+1 of the limit

(cherry picked from commit 455317d)
* Use a list of environment variables for JVM options.

* Fix merge conflicts.

(cherry picked from commit f7b5820)
@ash211 ash211 requested a review from mccheah August 23, 2017 19:50
@mccheah
Copy link

mccheah commented Aug 23, 2017

Looks ok once the build passes.

mountSmallFilesBootstrap.map { bootstrap =>
bootstrap.mountSmallFilesSecret(
withMaybeShuffleConfigPod, withMaybeShuffleConfigExecutorContainer)
}.getOrElse(withMaybeShuffleConfigPod, withMaybeShuffleConfigExecutorContainer)
Copy link
Author

Choose a reason for hiding this comment

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

this change doesn't compile in circle:

5767 [INFO] --- scala-maven-plugin:3.2.2:compile (scala-compile-first) @ spark-kubernetes_2.11 ---^M
5768 [INFO] Using zinc server for incremental compilation^M
5769 [info] Compiling 9 Scala sources to /home/ubuntu/spark/resource-managers/kubernetes/core/target/scala-2.11/classes...^M
5770 [warn] /home/ubuntu/spark/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/kubernetes/KubernetesClusterSchedulerBackend.scala:566: No automatic adaptation here: use
5771 [warn]         signature: Option.getOrElse[B >: A](default: => B): B^M
5772 [warn]   given arguments: withMaybeShuffleConfigPod, withMaybeShuffleConfigExecutorContainer^M
5773 [warn]  after adaptation: Option.getOrElse((withMaybeShuffleConfigPod, withMaybeShuffleConfigExecutorContainer): (io.fabric8.kubernetes.api.model.Pod, io.fabric8.kubernetes.api.model.Container))^M
5774 [warn]         }.getOrElse(withMaybeShuffleConfigPod, withMaybeShuffleConfigExecutorContainer)^M
5775 [warn]                    ^^M
5776 [error] /home/ubuntu/spark/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/kubernetes/KubernetesClusterSchedulerBackend.scala:566: too many arguments for method ge
5777 [error]         }.getOrElse(withMaybeShuffleConfigPod, withMaybeShuffleConfigExecutorContainer)^M
5778 [error]                    ^^M
5779 [error] /home/ubuntu/spark/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/kubernetes/KubernetesClusterSchedulerBackend.scala:571: type mismatch;^M
5780 [error]  found   : Any^M
5781 [error]  required: io.fabric8.kubernetes.api.model.Pod^M
5782 [error]                   withMaybeSmallFilesMountedPod,^M
5783 [error]                   ^^M
5784 [error] /home/ubuntu/spark/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/kubernetes/KubernetesClusterSchedulerBackend.scala:573: type mismatch;^M
5785 [error]  found   : Any^M
5786 [error]  required: io.fabric8.kubernetes.api.model.Container^M
5787 [error]                 withMaybeSmallFilesMountedContainer))^M
5788 [error]                 ^^M
5789 [error] /home/ubuntu/spark/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/kubernetes/KubernetesClusterSchedulerBackend.scala:591: type mismatch;^M
5790 [error]  found   : Any^M
5791 [error]  required: io.fabric8.kubernetes.api.model.Pod^M
5792 [error]         executorPodWithInitContainer, nodeToLocalTaskCount)^M
5793 [error]         ^^M
5794 [warn] one warning found^M
5795 [error] four errors found^M
5796 [error] Compile failed at Aug 23, 2017 7:53:45 PM [4.000s]^M

Copy link

Choose a reason for hiding this comment

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

Are we using a different scala compiler from upstream? Maybe a different Scala version?

Copy link
Author

Choose a reason for hiding this comment

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

only thing I can think of is SBT vs maven? or SBT also uses the incremental zinc compiler

@ash211 ash211 merged commit 65f1048 into master Aug 24, 2017
@ash211 ash211 deleted the resync-kube branch August 24, 2017 00:19
dvogelbacher pushed a commit that referenced this pull request Jul 30, 2018
* Part 1: making test code cluster-agnostic

* Final checked

* Move all test code into KubernetesTestComponents

* Addressed comments

* Fixed doc

* Restructure the test backends (#248)

* Restructured the test backends

* Address comments

* var -> val

* Comments

* removed deadcode

(cherry picked from commit 6b489c2)
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.

4 participants