[ https://issues.apache.org/jira/browse/FLINK-21153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17292980#comment-17292980 ]
Dawid Wysakowicz commented on FLINK-21153: ------------------------------------------ I think the answer is that the intention was to use only the config options and get rid of the {{Options}}. In order to do that if I understand it correctly the plan was to add support for printing help messages/handling of custom options to the {{ClusterClientFactory}}. I am afraid this has not been implemented yet. As for how you can ship files with the {{-t}} option I think you can do it like this: {code} bin/flink run -p 1 -Dyarn.ship-files=../flink-test-job/cluster;../flink-test-job/cluster2 -t yarn-per-job ../flink-test-job/target/flink-test-job-1.0-SNAPSHOT.jar {code} > yarn-per-job deployment target ignores yarn options > --------------------------------------------------- > > Key: FLINK-21153 > URL: https://issues.apache.org/jira/browse/FLINK-21153 > Project: Flink > Issue Type: Bug > Components: Command Line Client, Deployment / YARN > Affects Versions: 1.12.1, 1.13.0 > Reporter: Till Rohrmann > Assignee: Dawid Wysakowicz > Priority: Major > Labels: usability > Fix For: 1.13.0, 1.12.3 > > > While looking into the problem reported in FLINK-6949, I stumbled across an > odd behaviour of Flink. I tried to deploy a Flink cluster on Yarn and ship > some files to the cluster. Only the first command successfully shipped the > additional files to the cluster: > 1) {{bin/flink run -p 1 --yarnship ../flink-test-job/cluster -m yarn-cluster > ../flink-test-job/target/flink-test-job-1.0-SNAPSHOT.jar}} > 2) {{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}} > The problem seems to be that the second command does not activate the > {{FlinkYarnSessionCli}} but uses the {{GenericCLI}}. > [~kkl0u], [~aljoscha], [~tison] what is the intended behaviour in this case. > I always thought that {{-m yarn-cluster}} and {{-t yarn-per-job}} would be > equivalent. -- This message was sent by Atlassian Jira (v8.3.4#803005)