Skip to content

Conversation

@WangTaoTheTonic
Copy link
Contributor

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.

@SparkQA
Copy link

SparkQA commented Sep 18, 2014

QA tests have started for PR 2445 at commit 6fb6872.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Sep 18, 2014

QA tests have finished for PR 2445 at commit 6fb6872.

  • This patch passes unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Contributor

Choose a reason for hiding this comment

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

this one is read downstream by SparkSubmitDriverBootstrapper - it is not redundant.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ya we need this!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pwendell I mean we just export CLASSPATH before entering if conditional(line 161). Are the two different?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh I see, we already exported it out there. I put this here to make it more explicit that these are the variables needed by SparkSubmitDriverBootstrapper, so even though this line is somewhat redundant, it's here for code readability reasons.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, it does make sense.

@pwendell
Copy link
Contributor

Thanks - I merged this but I removed one of the changes which was incorrect.

asfgit pushed a commit that referenced this pull request Sep 18, 2014
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 471e6a3)
Signed-off-by: Patrick Wendell <pwendell@gmail.com>
@asfgit asfgit closed this in 471e6a3 Sep 18, 2014
markhamstra pushed a commit to markhamstra/spark that referenced this pull request Sep 19, 2014
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 apache#2445 from WangTaoTheTonic/removeRedundant and squashes the following commits:

6fb6872 [WangTaoTheTonic] remove redundant code

(cherry picked from commit 471e6a3)
Signed-off-by: Patrick Wendell <pwendell@gmail.com>
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