Skip to content

#839 enhancement : add Spark Task Component can switch Spark Version#1494

Merged
khadgarmage merged 4 commits intoapache:devfrom
Eights-Li:dev
Dec 17, 2019
Merged

#839 enhancement : add Spark Task Component can switch Spark Version#1494
khadgarmage merged 4 commits intoapache:devfrom
Eights-Li:dev

Conversation

@Eights-Li
Copy link
Copy Markdown
Contributor

What is the purpose of the pull request

This pull request adds spark task component can swithch spark version

Brief change log

  • Add spark version param in spark task component
  • According to the spark Version param specify SPARK_HOME1 or SPARK_HOME2
  • Add UT for spark task build args

Verify this pull request

This change added tests and can be verified as follows:

  • Added SparkTaskTest to verify the change.
  • Verified in CDH-5.16.2(Spark1.6 and Spark2.4)

eights added 3 commits December 10, 2019 20:35
add Spark Version in Spark Component
2 add spark version param check
@codecov-io
Copy link
Copy Markdown

codecov-io commented Dec 16, 2019

Codecov Report

Merging #1494 into dev will increase coverage by 0.07%.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff            @@
##             dev   #1494      +/-   ##
========================================
+ Coverage   2.69%   2.77%   +0.07%     
========================================
  Files        271     272       +1     
  Lines      13593   13602       +9     
  Branches    2159    2160       +1     
========================================
+ Hits         367     378      +11     
+ Misses     13209   13205       -4     
- Partials      17      19       +2
Impacted Files Coverage Δ
...nscheduler/server/worker/task/spark/SparkTask.java 0% <0%> (ø) ⬆️
...he/dolphinscheduler/common/enums/SparkVersion.java 0% <0%> (ø)
...inscheduler/common/task/spark/SparkParameters.java 0% <0%> (ø) ⬆️
...lphinscheduler/server/worker/task/sql/SqlTask.java 0% <0%> (ø) ⬆️
...g/apache/dolphinscheduler/api/utils/FileUtils.java 68.75% <0%> (+68.75%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 08e0562...a4d1293. Read the comment docs.

Copy link
Copy Markdown
Contributor

@qiaozhanwei qiaozhanwei left a comment

Choose a reason for hiding this comment

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

+1

@Test
public void testSparkTaskInit() {

TaskProps taskProps = new TaskProps();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ut has no assert check?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

i will add assert check for this

Copy link
Copy Markdown
Contributor

@lgcareer lgcareer left a comment

Choose a reason for hiding this comment

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

+1

@khadgarmage khadgarmage merged commit 4d8d74a into apache:dev Dec 17, 2019
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.

5 participants