Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Fix issue with DNS resolution #118

Merged
merged 2 commits into from
Feb 16, 2017

Conversation

foxish
Copy link
Member

@foxish foxish commented Feb 15, 2017

Fixes #112

@@ -76,7 +76,7 @@ private[spark] object Minikube extends Logging {

def getDockerEnv: Map[String, String] = synchronized {
assert(MINIKUBE_EXECUTABLE_DEST.exists(), EXPECTED_DOWNLOADED_MINIKUBE_MESSAGE)
executeMinikube("docker-env")
executeMinikube("docker-env", "--shell", "bash")
Copy link
Member Author

Choose a reason for hiding this comment

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

Also added this because I switched to a different shell and it was giving me odd errors because our string replacement relies on bash style output

@@ -44,7 +44,7 @@ private[spark] class KubernetesClusterSchedulerBackend(
private val EXECUTOR_MODIFICATION_LOCK = new Object
private val runningExecutorPods = new scala.collection.mutable.HashMap[String, Pod]

private val kubernetesMaster = "https://kubernetes"
private val kubernetesMaster = "https://kubernetes.default.svc"
Copy link

Choose a reason for hiding this comment

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

Yup this works on my machine. Good find!

I think this string belongs in constants.scala and KubernetesClientBuilder#buildFromWithinPod() can just use that string directly. Remove the kubernetesMaster parameter from that method.

@mccheah
Copy link

mccheah commented Feb 16, 2017

Feel free to merge after the build passes. Thanks!

@mccheah mccheah merged commit 4df5821 into k8s-support-alternate-incremental Feb 16, 2017
@mccheah mccheah deleted the fix-cross-ns-addr branch February 16, 2017 01:56
ash211 pushed a commit that referenced this pull request Mar 8, 2017
* Fix issue with DNS resolution

* Address comments
foxish added a commit that referenced this pull request Jul 24, 2017
* Fix issue with DNS resolution

* Address comments
ifilonenko pushed a commit to ifilonenko/spark that referenced this pull request Feb 25, 2019
* Fix issue with DNS resolution

* Address comments
ifilonenko pushed a commit to ifilonenko/spark that referenced this pull request Feb 25, 2019
puneetloya pushed a commit to puneetloya/spark that referenced this pull request Mar 11, 2019
* Fix issue with DNS resolution

* Address comments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants