[
https://issues.apache.org/jira/browse/FLINK-6405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151215#comment-18151215
]
seunggabi commented on FLINK-6405:
----------------------------------
Hi, I'd like to work on this. Could a committer assign it to me?
Proposal (client-side, small): {{flink run}} / {{flink info}} accept the job
JAR as a URI (s3://, hdfs://, https://, ...) and fetch it with the existing
{{ArtifactFetchManager}}, the same mechanism Application Mode already uses for
remote JARs (FLINK-28915).
* Fetched into a new directory under {{io.tmp.dirs}} per action and deleted
afterwards. ({{ArtifactFetchManager}} reuses an existing file with the same
name, which would run a stale JAR after the remote one is overwritten.)
* A local file with the same path still wins; plain paths, Windows drives and
paths with spaces behave as before. {{local://}} is used in place.
* Needs the matching file system plugin on the client;
{{user.artifacts.raw-http-enabled}} and {{user.artifacts.http-headers}} apply.
* No new config options, no change on the cluster side.
Relation to FLIP-613: FLIP-613 lets the JobManager fetch the JAR for REST
submissions. This change is client-side only: the CLI fetches with the
submitter's own credentials, so nothing is added to the cluster's attack
surface. The two complement each other.
Motivation: we run session clusters with docker-compose, and our job submitter
has to {{aws s3 cp}} the JAR before {{flink run}}. With this it becomes {{flink
run s3://bucket/job.jar}}.
I have an implementation with tests (verified they fail without the change) and
docs, and checked it against a real S3 bucket with the 2.3.0 distribution.
Happy to adjust the scope, or continue on dev@ if this needs a FLIP.
> Flink should be able to load a jar from s3
> ------------------------------------------
>
> Key: FLINK-6405
> URL: https://issues.apache.org/jira/browse/FLINK-6405
> Project: Flink
> Issue Type: Improvement
> Components: Deployment / Scripts
> Reporter: Bowen Li
> Priority: Not a Priority
> Labels: auto-deprioritized-major, auto-deprioritized-minor
>
> ./bin/flink only loads jars from the local path, not from S3. Therefore, we
> need an extra step to copy jars from s3 to our EMR master.
> The ./bin/flink script should instead be able read jar from S3 so that we
> don't need to copy the jar.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)