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

Jeff Zhang commented on FLINK-17788:
------------------------------------

[~kkl0u] The phenomenon I see is that when I launch scala-shell in yarn mode, 
it would launch one yarn app for flink yarn session cluster. Then I type some 
flink code to trigger one flink, then it would launch another yarn app. The 
root cause is that the deployment option is set to yarn-per-job which is 
incorrect. Actually deployment option would be set 2 times which cause the 
wrong setting. 
* 
https://github.com/apache/flink/blob/master/flink-scala-shell/src/main/scala/org/apache/flink/api/scala/FlinkShell.scala#L248
* 
https://github.com/apache/flink/blob/master/flink-scala-shell/src/main/scala/org/apache/flink/api/scala/FlinkShell.scala#L287

This is not a clean fix, I think the whole flink scala shell module need to be 
refactoring to make the code clean. 



> scala shell in yarn mode is broken
> ----------------------------------
>
>                 Key: FLINK-17788
>                 URL: https://issues.apache.org/jira/browse/FLINK-17788
>             Project: Flink
>          Issue Type: Bug
>          Components: Scala Shell
>    Affects Versions: 1.11.0
>            Reporter: Jeff Zhang
>            Priority: Major
>              Labels: pull-request-available
>
> When I start scala shell in yarn mode, one yarn app will be launched, and 
> after I write some flink code and trigger a flink job, another yarn app will 
> be launched but would failed to launch due to some conflicts.



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

Reply via email to