Skip to content
Snippets Groups Projects
Commit 2b286926 authored by WangTaoTheTonic's avatar WangTaoTheTonic Committed by Patrick Wendell
Browse files

[SPARK-3589][Minor]remove redundant code

https://issues.apache.org/jira/browse/SPARK-3589



"export CLASSPATH" in spark-class is redundant since same variable is exported before.
We could reuse defined value "isYarnCluster" in SparkSubmit.scala.

Author: WangTaoTheTonic <barneystinson@aliyun.com>

Closes #2445 from WangTaoTheTonic/removeRedundant and squashes the following commits:

6fb6872 [WangTaoTheTonic] remove redundant code

(cherry picked from commit 471e6a3a)
Signed-off-by: default avatarPatrick Wendell <pwendell@gmail.com>
parent 32f2222e
No related branches found
No related tags found
No related merge requests found
......@@ -261,7 +261,7 @@ object SparkSubmit {
}
// In yarn-cluster mode, use yarn.Client as a wrapper around the user class
if (clusterManager == YARN && deployMode == CLUSTER) {
if (isYarnCluster) {
childMainClass = "org.apache.spark.deploy.yarn.Client"
if (args.primaryResource != SPARK_INTERNAL) {
childArgs += ("--jar", args.primaryResource)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment