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

Stephan Ewen commented on FLINK-4706:
-------------------------------------

You can try and put the user JAR into the "lib" directory of Flink. Then they 
are both in the application classpath. If you then manage to have the JAR 
earlier in the classpath list, it could work. How that happens is probably 
depending on the order of files when listing a directory. Might be possible to 
do, but seems quite fragile.

Shading dependencies away is usually a better approach, through,

> Is there a way to load user classes first?
> ------------------------------------------
>
>                 Key: FLINK-4706
>                 URL: https://issues.apache.org/jira/browse/FLINK-4706
>             Project: Flink
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: 1.2.0, 1.1.2
>            Reporter: 刘喆
>
> If some classes in the job jar different with flink run-time or yarn 
> environment, it can't work.  So how can we load classes in the job jar first? 
> Is there some cli argument or some configuation?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to