Skip to content

[Feature][Task-Plugin]Add zeppelin task-plugin to support Apache Zeppelin (#9201)#9327

Merged
zhongjiajie merged 9 commits intoapache:devfrom
EricGao888:Fix-9201
Apr 17, 2022
Merged

[Feature][Task-Plugin]Add zeppelin task-plugin to support Apache Zeppelin (#9201)#9327
zhongjiajie merged 9 commits intoapache:devfrom
EricGao888:Fix-9201

Conversation

@EricGao888
Copy link
Copy Markdown
Member

@EricGao888 EricGao888 commented Apr 2, 2022

Purpose of the pull request

Brief change log

  • This PR focuses on the basic function of zeppelin task plugin, enabling Dolphinscheduler to execute and schedule paragraphs of Apache Zeppelin notebook.
  • Currently there is no cancelNote method in Apache Zeppelin Client Api, so zeppelin task execution and scheduling is in paragraph level in this PR.
  • I will add more features in the future PRs, like session management, job execution progress query, authentication, etc.

Verify this pull request

  • Verify by unit tests. Since there's no front-end implementation at this time, I haven't performed manual test yet.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 2, 2022

Codecov Report

Merging #9327 (2b3f717) into dev (4a29c6a) will decrease coverage by 0.26%.
The diff coverage is 41.47%.

@@             Coverage Diff              @@
##                dev    #9327      +/-   ##
============================================
- Coverage     39.98%   39.72%   -0.27%     
- Complexity     4375     4401      +26     
============================================
  Files           822      830       +8     
  Lines         32924    33256     +332     
  Branches       3656     3681      +25     
============================================
+ Hits          13165    13210      +45     
- Misses        18532    18817     +285     
- Partials       1227     1229       +2     
Impacted Files Coverage Δ
...lugin/alert/wechat/WeChatAlertParamsConstants.java 0.00% <ø> (ø)
...uler/plugin/alert/wechat/WechatAppChatMessage.java 0.00% <0.00%> (ø)
...cheduler/plugin/alert/wechat/WechatAppMessage.java 0.00% <0.00%> (ø)
...inscheduler/api/controller/ExecutorController.java 40.00% <ø> (ø)
...cheduler/api/service/impl/ExecutorServiceImpl.java 41.96% <ø> (ø)
...r/api/service/impl/ProcessInstanceServiceImpl.java 60.22% <ø> (-0.12%) ⬇️
...er/api/service/impl/TaskDefinitionServiceImpl.java 24.01% <ø> (+0.05%) ⬆️
...che/dolphinscheduler/common/enums/AlertStatus.java 0.00% <0.00%> (ø)
...nscheduler/service/process/ProcessServiceImpl.java 30.76% <ø> (ø)
...olphinscheduler/plugin/task/api/TaskConstants.java 0.00% <ø> (ø)
... and 24 more

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 ab03570...2b3f717. Read the comment docs.

@EricGao888
Copy link
Copy Markdown
Member Author

Unit tests added. The PR fails license-check by script tools/dependencies/check-LICENSE.sh. Am I supposed to add org.apache.zeppelin:zeppelin-client:0.10.1 org.apache.zeppelin:zeppelin-common:0.10.1 into known-dependencies.txt? May I ask is there anything else I need to do in order to fix it?

@SbloodyS
Copy link
Copy Markdown
Member

SbloodyS commented Apr 6, 2022

Unit tests added. The PR fails license-check by script tools/dependencies/check-LICENSE.sh. Am I supposed to add org.apache.zeppelin:zeppelin-client:0.10.1 org.apache.zeppelin:zeppelin-common:0.10.1 into known-dependencies.txt? May I ask is there anything else I need to do in order to fix it?

Yes. you should add it to known-dependencies.txt

@zhongjiajie zhongjiajie added miss:docs missing documents in PR miss:ui missing UI components labels Apr 7, 2022
@zhongjiajie
Copy link
Copy Markdown
Member

Unit tests added. The PR fails license-check by script tools/dependencies/check-LICENSE.sh. Am I supposed to add org.apache.zeppelin:zeppelin-client:0.10.1 org.apache.zeppelin:zeppelin-common:0.10.1 into known-dependencies.txt? May I ask is there anything else I need to do in order to fix it?

BTW, you should also add each jar package license into dolphinscheduler-dist/release-docs/licenses directory

@EricGao888
Copy link
Copy Markdown
Member Author

Unit tests added. The PR fails license-check by script tools/dependencies/check-LICENSE.sh. Am I supposed to add org.apache.zeppelin:zeppelin-client:0.10.1 org.apache.zeppelin:zeppelin-common:0.10.1 into known-dependencies.txt? May I ask is there anything else I need to do in order to fix it?

BTW, you should also add each jar package license into dolphinscheduler-dist/release-docs/licenses directory

@zhongjiajie Licenses added in the latest commit. May I ask is there any task level configuration files instead of common.properties I can use for zeppelin task plugin config? As discussed here: #9327 (comment)

@EricGao888 EricGao888 requested a review from zhongjiajie April 8, 2022 05:20
@EricGao888
Copy link
Copy Markdown
Member Author

I'm not familiar with front-end. I will focus on the backend features of zeppelin task plugin in the following PRs. Anything else do I need to do with this PR? Seems all comments have been resolved. @zhongjiajie

@zhongjiajie
Copy link
Copy Markdown
Member

zhongjiajie commented Apr 14, 2022

Do you have time to take a look at this PR after you finish your 3.0.0-alpha released? @zhuangchong

@zhuangchong
Copy link
Copy Markdown
Contributor

Do you have time to take a look at this PR after you finish your 3.0.0-alpha released

OK

Comment on lines +31 to +32
* @see <a href="https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html#API_RunJobFlow_Examples">API_RunJobFlow_Examples</a>
*/
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.

The documentation link address is wrong.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thx for the reminder. I will fix it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The documentation link address is wrong.

@zhuangchong Fixed in the latest commit. PTAL when you have time. Thx!

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

50.0% 50.0% Coverage
0.0% 0.0% Duplication

Copy link
Copy Markdown
Contributor

@zhuangchong zhuangchong left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Copy Markdown
Member

@zhongjiajie zhongjiajie left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@zhongjiajie zhongjiajie merged commit a5bbf78 into apache:dev Apr 17, 2022
@EricGao888 EricGao888 added feature new feature backend and removed miss:docs missing documents in PR miss:ui missing UI components labels Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature][Task-Plugin] Add Apache Zeppelin Task Plugin

5 participants