You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "hanhanzhang (via GitHub)" <gi...@apache.org> on 2024/09/12 17:00:27 UTC
[PR] Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
hanhanzhang opened a new pull request, #7649:
URL: https://github.com/apache/seatunnel/pull/7649
Solve the issue: https://github.com/apache/seatunnel/issues/7321
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#issuecomment-2367189489
Please share some details about how to use this new feature?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "hanhanzhang (via GitHub)" <gi...@apache.org>.
hanhanzhang commented on PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#issuecomment-2350908113
Remote plugin discover mechanism allows user to upload connector plugins to an external storage system in advance. In application deployment mode, dependency plugin can be loaded from an external storage system as required.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#issuecomment-3092661845
This pull request has been closed because it has not had recent activity. You could reopen it if you try to continue your work, and anyone who are interested in it are encouraged to continue work on this pull request.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "Carl-Zhou-CN (via GitHub)" <gi...@apache.org>.
Carl-Zhou-CN commented on PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#issuecomment-2357376205
> yarn.provided.lib.dirs
I am very sorry for my oversight, -Dyarn.provided.usrlib.dir is supported starting from Flink 1.16.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#issuecomment-2350792530
cc @TyrantLucifer
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #7649: [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode
URL: https://github.com/apache/seatunnel/pull/7649
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "TyrantLucifer (via GitHub)" <gi...@apache.org>.
TyrantLucifer commented on PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#issuecomment-2371421166
bin/start-seatunnel-flink-15-connector-v2.sh --config config/v2.batch.config.template --target yarn-application -e run-application --name st-test -Dyarn.application.name=st-test -Dyarn.ship-files="config/v2.batch.config.template\;connectors"
this command can support application mode submit, the act of directly pulling jar packages from HDFS should be executed by Flink, and I think encapsulating them in the client of SeaTunnel is a bit too heavy. Is there any other solution that can directly take advantage of Flink's capabilities?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "hanhanzhang (via GitHub)" <gi...@apache.org>.
hanhanzhang commented on PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#issuecomment-2357259168
> `${FLINK_HOME}/bin/flink run-application -Dyarn.ship-files='./config/v2.streaming.conf.template' -Dyarn.classpath.include-user-jar=DISABLED -Dyarn.provided.usrlib.dir='hdfs://HDFS4001185/user/flink/usrlib/' --target yarn-application -c org.apache.seatunnel.core.starter.flink.SeaTunnelFlink /usr/local/service/seatunnel/starter/seatunnel-flink-15-starter.jar --config v2.streaming.conf.template --name SeaTunnel`
>
> Using the combination of yarn.provided.usrlib.dir along with yarn.ship-files seems to be a good approach.   
Yes, I've thought about it this way. I wouldn't recommend putting SeaTunnel lib in yarn.provided.lib.dirs. This would require SeaTunnel and Flink dependency packages to be placed together. I think it might be a good way to use SeaTunnel Connector as a UDF similar to SQL.
In addition, the yarn.provided.usrlib.dirs means all the jars in the classpath, the initial plugin design should be to put the plugins needed for the task in the classpath. What do you think?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "Carl-Zhou-CN (via GitHub)" <gi...@apache.org>.
Carl-Zhou-CN commented on PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#issuecomment-2350931964
`${FLINK_HOME}/bin/flink run-application -Dyarn.ship-files='./config/v2.streaming.conf.template' -Dyarn.classpath.include-user-jar=DISABLED -Dyarn.provided.usrlib.dir='hdfs://HDFS4001185/user/flink/usrlib/' --target yarn-application -c org.apache.seatunnel.core.starter.flink.SeaTunnelFlink /usr/local/service/seatunnel/starter/seatunnel-flink-15-starter.jar --config v2.streaming.conf.template --name SeaTunnel`
Using the combination of yarn.provided.usrlib.dir along with yarn.ship-files seems to be a good approach.


--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "Carl-Zhou-CN (via GitHub)" <gi...@apache.org>.
Carl-Zhou-CN commented on PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#issuecomment-2367224174
command `${SEATUNNEL_HOME}/bin/start-seatunnel-flink-15-connector-v2.sh --config /usr/seatunnel/temp/test.conf --deploy-mode run-application --connectors "hdfs://localhost:8020/seatunnel/2.3.7/connectors" --target yarn-application --yarnqueue default --yarnjobManagerMemory 1024 --yarntaskManagerMemory 1024`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "Carl-Zhou-CN (via GitHub)" <gi...@apache.org>.
Carl-Zhou-CN commented on code in PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#discussion_r1759675752
##########
seatunnel-core/seatunnel-flink-starter/seatunnel-flink-13-starter/src/main/java/org/apache/seatunnel/core/starter/flink/execution/SinkExecuteProcessor.java:
##########
@@ -130,7 +153,6 @@ public List<DataStreamTableInfo> execute(List<DataStreamTableInfo> upstreamDataS
Optional<SaveModeHandler> saveModeHandler = saveModeSink.getSaveModeHandler();
if (saveModeHandler.isPresent()) {
try (SaveModeHandler handler = saveModeHandler.get()) {
- handler.open();
Review Comment:
Restore it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "TyrantLucifer (via GitHub)" <gi...@apache.org>.
TyrantLucifer commented on PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#issuecomment-2350864776
<img width="936" alt="image" src="https://github.com/user-attachments/assets/eddb9fcd-8a03-4c46-8f2a-7cdb3f9100b4">
in my opinion, we natively support application mode, but we need to change the packaging mode
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "hanhanzhang (via GitHub)" <gi...@apache.org>.
hanhanzhang commented on PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#issuecomment-2350905660
> <img alt="image" width="936" src="https://private-user-images.githubusercontent.com/51053924/367492556-eddb9fcd-8a03-4c46-8f2a-7cdb3f9100b4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYzMDEyMDcsIm5iZiI6MTcyNjMwMDkwNywicGF0aCI6Ii81MTA1MzkyNC8zNjc0OTI1NTYtZWRkYjlmY2QtOGEwMy00YzQ2LThmMmEtN2NkYjNmOTEwMGI0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTE0VDA4MDE0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBmNzE1YjIzNDkxNDU2MDEyM2I4ZjgwMTFiZTE3ZWUxYmU4ZGZiZjFmYzBlY2JhYzUwNmRjN2Q3Yjg1NWY2Y2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.wRWRC43CTMPtlLLjbNKg_PMt6GUf4oMNOg4a1_q2mIM">
> in my opinion, we natively support application mode, but we need to change the packaging mode
yes,we can use connector-plugins as a yarn-ship files parameter. During flink deployment, connector plugins is uploaded to an external storage system. If there are many plugins, task deployment slows down.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "hanhanzhang (via GitHub)" <gi...@apache.org>.
hanhanzhang commented on PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#issuecomment-2375525927
> `bin/start-seatunnel-flink-15-connector-v2.sh --config config/v2.batch.config.template --target yarn-application -e run-application --name st-test -Dyarn.application.name=st-test -Dyarn.ship-files="config/v2.batch.config.template\;connectors"`
>
> this command can support application mode submit, the act of directly pulling jar packages from HDFS should be executed by Flink, and I think encapsulating them in the client of SeaTunnel is a bit too heavy. Is there any other solution that can directly take advantage of Flink's capabilities?
The design allows users to pre-upload Plugin to external storage systems, such as hdfs, s3, etc. flink application deployment only needs to guide the plugin to the external storage system address.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "corgy-w (via GitHub)" <gi...@apache.org>.
corgy-w commented on PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#issuecomment-2348197895
Hi,Please follow guide to open ci on your fork repository in github.
[this](https://github.com/apache/seatunnel/pull/7649/checks?check_run_id=30087698360)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "Carl-Zhou-CN (via GitHub)" <gi...@apache.org>.
Carl-Zhou-CN commented on PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#issuecomment-2350950917

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Plugin]Add remote plugin discovery for flink yarn applicion deploy mode [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #7649:
URL: https://github.com/apache/seatunnel/pull/7649#issuecomment-3064431171
This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 7 days if no further activity occurs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org