[
https://issues.apache.org/jira/browse/FLINK-6949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17272233#comment-17272233
]
Till Rohrmann commented on FLINK-6949:
--------------------------------------
Thanks for trying things out [~m.pryahin]. I've tried your example and it
worked for me. I think the problem is that you must not place {{-yt config}}
behind the {{yarn-ship-test-1.0-SNAPSHOT.jar}}. However, while trying it out, I
also tried to start a cluster via {{bin/flink run -p 1 --yarnship
../flink-test-job/cluster -t yarn-per-job
../flink-test-job/target/flink-test-job-1.0-SNAPSHOT.jar}} which should do the
same. Interestingly, this command did not upload the files to Yarn because it
did not use the {{FlinkYarnSessionCli}}. I will create a ticket to further
investigate this problem.
> Add ability to ship custom resource files to YARN cluster
> ---------------------------------------------------------
>
> Key: FLINK-6949
> URL: https://issues.apache.org/jira/browse/FLINK-6949
> Project: Flink
> Issue Type: Improvement
> Components: Command Line Client, Deployment / YARN
> Affects Versions: 1.3.0
> Reporter: Mikhail Pryakhin
> Assignee: Mikhail Pryakhin
> Priority: Major
>
> *The problem:*
> When deploying a flink job on YARN it is not possible to specify custom
> resource files to be shipped to YARN cluster.
>
> *The use case description:*
> When running a flink job on multiple environments it becomes necessary to
> pass environment-related configuration files to the job's runtime. It can be
> accomplished by packaging configuration files within the job's jar. But
> having tens of different environments one can easily end up packaging as many
> jars as there are environments. It would be great to have an ability to
> separate configuration files from the job artifacts.
>
> *The possible solution:*
> add the --yarnship-files option to flink cli to specify files that should be
> shipped to the YARN cluster.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)