-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ashwin/patch spark3 jars #17
base: affirm-3.1.2
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving with some comments. I don't have much context to review this.
// We need this in K8s cluster mode so that we can upload local deps | ||
// via the k8s application, like in cluster mode driver | ||
childClasspath ++= resolvedMavenCoordinates.split(",") | ||
} else { | ||
// In K8s client mode, when in the driver, add resolved jars early as we might need |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: unindent
for (jar <- resolvedMavenCoordinates.split(",")) { | ||
addJarToClasspath(jar, loader) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why you added if (isKubernetesClusterModeDriver)
to the else
branch but I presume it's for a good reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's because when spark-submit is in the k8s driver - deployMode == client
val isKubernetesCluster = clusterManager == KUBERNETES && deployMode == CLUSTER
val isKubernetesClient = clusterManager == KUBERNETES && deployMode == CLIENT
val isKubernetesClusterModeDriver = isKubernetesClient &&
sparkConf.getBoolean("spark.kubernetes.submitInDriver", false)
python/pyspark3/version.py
Outdated
@@ -16,4 +16,4 @@ | |||
# See the License for the specific language governing permissions and | |||
# limitations under the License. | |||
|
|||
__version__ = "3.1.2+affirm4" | |||
__version__ = "3.1.2+affirm8" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: what happened to 5 through 7?
<artifactId>jackson-dataformat-yaml</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this ported from the mainline?
return serviceHost != null && serviceHost.length > 0 | ||
} | ||
|
||
def getHomeDir(): String = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where's this coming from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what sets it, but it's always present on k8s containers. We have something similar in ml_pipelines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant more are you writing this code from scratch or are you porting it from somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh it's coming from @daggertheog's diff for the spark 2 k8s auth issue
What changes were proposed in this pull request?