You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Xin Hao (Jira)" <ji...@apache.org> on 2022/06/13 07:41:00 UTC
[jira] [Closed] (FLINK-28012) Add built-in support for fetching jar from GCS (Google Cloud Storage)
[ https://issues.apache.org/jira/browse/FLINK-28012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xin Hao closed FLINK-28012.
---------------------------
Resolution: Not A Problem
> Add built-in support for fetching jar from GCS (Google Cloud Storage)
> ---------------------------------------------------------------------
>
> Key: FLINK-28012
> URL: https://issues.apache.org/jira/browse/FLINK-28012
> Project: Flink
> Issue Type: Improvement
> Components: Kubernetes Operator
> Reporter: Xin Hao
> Priority: Minor
>
> I think it's easy and meaningful to add built-in support in session job mode for downloading jar from GCS now.
> The logic should look like the code below
> {code:java}
> if ("http".equals(uri.getScheme()) || "https".equals(uri.getScheme())) {
> return HttpArtifactFetcher.INSTANCE.fetch(jarURI, flinkConfiguration, targetDir);
> } else if ("gs".equals(uri.getScheme())) {
> return GcsArtifactFetcher.INSTANCE.fetch(jarURI, flinkConfiguration, targetDir);
> } else {
> return FileSystemBasedArtifactFetcher.INSTANCE.fetch(
> jarURI, flinkConfiguration, targetDir);
> } {code}
> We only need to extend the ArtifactManager and implement the new GcsArtifactFetcher.
> Also, the users can set up the GCS authorization credentials by ENV and ConfigMap so that no need for any change inner the operator.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)