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

Conversation

@foxish
Copy link
Member

@foxish foxish commented Nov 6, 2017

cc @mccheah @liyinan926 @apache-spark-on-k8s/contributors

Copy link
Member

@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 with one minor comment.


mainClass should be ("org.apache.spark.deploy.k8s.submit.Client")
classpath should have length (0)
sysProps("spark.executor.memory") should be ("5g")
Copy link
Member

Choose a reason for hiding this comment

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

Add one for spark.driver.memory.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. Thanks!

@ifilonenko
Copy link
Member

Are we missing testing logic for app resources or is that going to be a follow up PR?

@foxish
Copy link
Member Author

foxish commented Nov 6, 2017

@ifilonenko Added the check for the jar that's submitted. Did you mean something else? The implementation details wrt resources should be covered under org/apache/spark/deploy/k8s/submit/ClientSuite.scala and submission step tests I think.

@ifilonenko
Copy link
Member

@foxish that was part of it, yes. But coverage in regards to this:

childMainClass = "org.apache.spark.deploy.k8s.submit.Client"
if (args.isPython) {
childArgs ++= Array("--primary-py-file", args.primaryResource)
childArgs ++= Array("--main-class", "org.apache.spark.deploy.PythonRunner")
if (args.pyFiles != null) {
childArgs ++= Array("--other-py-files", args.pyFiles)
}
} else if (args.isR) {
childArgs ++= Array("--primary-r-file", args.primaryResource)
childArgs ++= Array("--main-class", "org.apache.spark.deploy.RRunner")
} else {
childArgs ++= Array("--primary-java-resource", args.primaryResource)
childArgs ++= Array("--main-class", args.mainClass)
}
args.childArgs.foreach { arg =>
childArgs += "--arg"
childArgs += arg
}

@foxish
Copy link
Member Author

foxish commented Nov 6, 2017

Ah! I see.. I think those should be separate unit tests in a subsequent PR.
I was looking at this from the perspective of the upstreaming, and initially, we're not going to have python/R support.

@foxish
Copy link
Member Author

foxish commented Nov 7, 2017

rerun integration test please

@foxish
Copy link
Member Author

foxish commented Nov 7, 2017

rerun unit tests please

@foxish
Copy link
Member Author

foxish commented Nov 7, 2017

rerun integration test please

1 similar comment
@foxish
Copy link
Member Author

foxish commented Nov 7, 2017

rerun integration test please

@foxish foxish merged commit 3ff2cbb into branch-2.2-kubernetes Nov 8, 2017
@foxish foxish deleted the spark-submit-tests branch November 8, 2017 00:59
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.

4 participants