Skip to content

[python] Fix python api can't connect to remote gateway server#8248

Merged
zhongjiajie merged 5 commits intoapache:devfrom
zhongjiajie:fix-py4j-remote-call
Jan 29, 2022
Merged

[python] Fix python api can't connect to remote gateway server#8248
zhongjiajie merged 5 commits intoapache:devfrom
zhongjiajie:fix-py4j-remote-call

Conversation

@zhongjiajie
Copy link
Copy Markdown
Member

For now, python API could only communicate python gateway server
in the same hosts, this patch makes it could work with different hosts,
and export java gateway setting to configure file

@zhongjiajie zhongjiajie added bug Something isn't working development this feature is under development Pyscheduler labels Jan 29, 2022
For now, python API could only communicate python gateway server
in the same hosts, this patch makes it could work with different hosts,
and export java gateway setting to configure file
@zhongjiajie zhongjiajie self-assigned this Jan 29, 2022
@zhongjiajie
Copy link
Copy Markdown
Member Author

I've already test in my server and it work.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 29, 2022

Codecov Report

Merging #8248 (7cd452a) into dev (a778146) will increase coverage by 0.23%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##                dev    #8248      +/-   ##
============================================
+ Coverage     44.94%   45.18%   +0.23%     
- Complexity     3950     3983      +33     
============================================
  Files           672      678       +6     
  Lines         26182    26343     +161     
  Branches       2825     2836      +11     
============================================
+ Hits          11768    11902     +134     
- Misses        13304    13318      +14     
- Partials       1110     1123      +13     
Impacted Files Coverage Δ
...e/dolphinscheduler/remote/NettyRemotingClient.java 50.70% <0.00%> (-2.82%) ⬇️
...inscheduler/common/task/sqoop/SqoopParameters.java 74.00% <0.00%> (ø)
...uler/plugin/alert/webexteams/WebexTeamsSender.java 77.46% <0.00%> (ø)
...lugin/alert/webexteams/WebexTeamsAlertChannel.java 16.66% <0.00%> (ø)
...in/alert/webexteams/WebexTeamsParamsConstants.java 0.00% <0.00%> (ø)
...cheduler/plugin/alert/webexteams/WebexMessage.java 78.94% <0.00%> (ø)
...plugin/alert/webexteams/WebexTeamsDestination.java 80.00% <0.00%> (ø)
...lert/webexteams/WebexTeamsAlertChannelFactory.java 97.91% <0.00%> (ø)
...he/dolphinscheduler/common/enums/SqoopJobType.java 88.88% <0.00%> (+88.88%) ⬆️

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 a778146...7cd452a. Read the comment docs.

@kezhenxu94
Copy link
Copy Markdown
Member

Others LGTM

zhongjiajie and others added 2 commits January 29, 2022 14:55
…ler/server/PythonGatewayServer.java

Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
@zhongjiajie
Copy link
Copy Markdown
Member Author

Changed base on some suggestions, PTAL @kezhenxu94 @ruanwenjun thanks

@sonarqubecloud
Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

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

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Copy Markdown
Member

@ruanwenjun ruanwenjun left a comment

Choose a reason for hiding this comment

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

LGTM

@zhongjiajie zhongjiajie merged commit 01936a6 into apache:dev Jan 29, 2022
@zhongjiajie zhongjiajie deleted the fix-py4j-remote-call branch January 29, 2022 08:48
@zhongjiajie
Copy link
Copy Markdown
Member Author

Thanks ~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working development this feature is under development Pyscheduler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants