[ 
https://issues.apache.org/jira/browse/FLINK-19379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17200818#comment-17200818
 ] 

Zili Chen edited comment on FLINK-19379 at 9/23/20, 1:17 PM:
-------------------------------------------------------------

[~rmetzger] it seems when you run with -t the GenericCLI will be used which 
doesn't respect previous yarn cli options. IIRC there is a decision we converge 
on configuration style keys, i.e., -Dyarn.application.id=xxx

cc [~kkl0u] [~fly_in_gis]


was (Author: tison):
[~rmetzger] with c0684b29f3abf48c4712f125212cd643b4d42a1e it seems when you run 
with -t the GenericCLI will be used which doesn't respect previous yarn cli 
options. IIRC there is a decision we converge on configuration style keys, 
i.e., -Dyarn.application.id=xxx

cc [~kkl0u] [~fly_in_gis]

> Submitting job to running YARN session fails
> --------------------------------------------
>
>                 Key: FLINK-19379
>                 URL: https://issues.apache.org/jira/browse/FLINK-19379
>             Project: Flink
>          Issue Type: Bug
>          Components: Command Line Client, Deployment / YARN
>    Affects Versions: 1.11.2
>            Reporter: Robert Metzger
>            Priority: Major
>
> Steps to reproduce:
> 1. start a YARN session
> 2. submit a job using: ./bin/flink run -t yarn-session -yid 
> application_1600852002161_0003, where application_1600852002161_0003 is the 
> id of the session started in 1.
> Expected behavior: submit job to running session.
> Actual behavior: Fails with this unhelpful exception:
> {code}
> org.apache.flink.client.program.ProgramInvocationException: The main method 
> caused an error: null
>         at 
> org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:302)
>         at 
> org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:198)
>         at 
> org.apache.flink.client.ClientUtils.executeProgram(ClientUtils.java:149)
>         at 
> org.apache.flink.client.cli.CliFrontend.executeProgram(CliFrontend.java:699)
>         at org.apache.flink.client.cli.CliFrontend.run(CliFrontend.java:232)
>         at 
> org.apache.flink.client.cli.CliFrontend.parseParameters(CliFrontend.java:916)
>         at 
> org.apache.flink.client.cli.CliFrontend.lambda$main$10(CliFrontend.java:992)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:422)
>         at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1893)
>         at 
> org.apache.flink.runtime.security.contexts.HadoopSecurityContext.runSecured(HadoopSecurityContext.java:41)
>         at org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:992)
> Caused by: java.lang.IllegalStateException
>         at 
> org.apache.flink.util.Preconditions.checkState(Preconditions.java:179)
>         at 
> org.apache.flink.client.deployment.executors.AbstractSessionClusterExecutor.execute(AbstractSessionClusterExecutor.java:61)
>         at 
> org.apache.flink.api.java.ExecutionEnvironment.executeAsync(ExecutionEnvironment.java:973)
>         at 
> org.apache.flink.client.program.ContextEnvironment.executeAsync(ContextEnvironment.java:124)
>         at 
> org.apache.flink.client.program.ContextEnvironment.execute(ContextEnvironment.java:72)
>         at com.ververica.TPCHQuery3.main(TPCHQuery3.java:184)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at 
> org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:288)
>         ... 11 more
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to