dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Improvement][Spark] Support Local Spark Cluster

Open pegasas opened this issue 1 year ago • 2 comments
trafficstars

Purpose of the pull request

fixes: https://github.com/apache/dolphinscheduler/issues/15548

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

pegasas avatar Feb 11 '24 03:02 pegasas

Codecov Report

Attention: Patch coverage is 53.84615% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 39.61%. Comparing base (e66441a) to head (d67b726).

:exclamation: Current head d67b726 differs from pull request most recent head 6329454. Consider uploading reports for the commit 6329454 to get more accurate results

Files Patch % Lines
.../dolphinscheduler/plugin/task/spark/SparkTask.java 53.84% 3 Missing and 3 partials :warning:
Additional details and impacted files
@@             Coverage Diff              @@
##                dev   #15589      +/-   ##
============================================
- Coverage     39.63%   39.61%   -0.02%     
+ Complexity     5020     5016       -4     
============================================
  Files          1349     1349              
  Lines         45578    45584       +6     
  Branches       4886     4888       +2     
============================================
- Hits          18063    18059       -4     
- Misses        25595    25605      +10     
  Partials       1920     1920              

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Feb 19 '24 00:02 codecov-commenter

attach test pics: image image image image

pegasas avatar Mar 02 '24 16:03 pegasas

attach test pics: image image image image

@pegasas I don't think the Master on the ui is a required field, WDYT

rickchengx avatar Mar 04 '24 04:03 rickchengx

attach test pics: image image image image

@pegasas I don't think the Master on the ui is a required field, WDYT

Done.

I set required to false first, in the future we may link discussion here.

reference: https://spark.apache.org/docs/latest/submitting-applications.html#master-urls

In previous design, we combines logic with master & deploy-mode. But in official doc example, it comes out with master urls no matter in local/standalone/yarn/mesos/k8s.

image

pegasas avatar Mar 04 '24 05:03 pegasas

Can we remove the option 'local' from deploy-mode?

We can only set cluster/client at deploy mode, the local should belong to master config.

ruanwenjun avatar Mar 19 '24 09:03 ruanwenjun

Please update the usage doc.

updated.

pegasas avatar Mar 19 '24 10:03 pegasas

Can we remove the option 'local' from deploy-mode?

We can only set cluster/client at deploy mode, the local should belong to master config.

Thanks @ruanwenjun . I‘ve add TODO's in related code lines.

pegasas avatar Mar 19 '24 10:03 pegasas

@pegasas please Run 'mvn spotless:apply' to fix the code style

rickchengx avatar Apr 11 '24 05:04 rickchengx

@pegasas please Run 'mvn spotless:apply' to fix the code style

Thanks, Done. image

pegasas avatar Apr 11 '24 05:04 pegasas

Can we remove the option 'local' from deploy-mode?

We can only set cluster/client at deploy mode, the local should belong to master config.

Maybe we should delete local option in this PR, WDYT @pegasas

rickchengx avatar Apr 12 '24 10:04 rickchengx

Can we remove the option 'local' from deploy-mode? We can only set cluster/client at deploy mode, the local should belong to master config.

Maybe we should delete local option in this PR, WDYT @pegasas

sure. corrected.

pegasas avatar Apr 12 '24 10:04 pegasas

Please update the usage doc.

PTAL @ruanwenjun

rickchengx avatar Apr 16 '24 04:04 rickchengx