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

Yang Wang commented on FLINK-13938:
-----------------------------------

[~tison] 

I reconsider this Jira recently and find that not only the lib directory should 
be uploaded and be used to accelerate the submission. Also the plugins and opt 
directory. So i have a slightly different PR. Would you mind take a look? I 
think we could work together and merge the PR.

 

The PR will have two optimizations.
 # Use pre-uploaded flink binary to avoid uploading of flink system jars
 # Use the yarn public cache to eliminate the unnecessary jars downloading and 
make launching container faster. The public cache could be shared by different 
applications.

> Use yarn public distributed cache to speed up containers launch
> ---------------------------------------------------------------
>
>                 Key: FLINK-13938
>                 URL: https://issues.apache.org/jira/browse/FLINK-13938
>             Project: Flink
>          Issue Type: New Feature
>          Components: Deployment / YARN
>            Reporter: Yang Wang
>            Assignee: Yang Wang
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> By default, the LocalResourceVisibility is APPLICATION, so they will be 
> downloaded only once and shared for all taskmanager containers of a same 
> application in the same node. However, different applications will have to 
> download all jars every time, including the flink-dist.jar. I think we could 
> use the yarn public cache to eliminate the unnecessary jars downloading and 
> make launching container faster.
>  
> How to use the shared lib feature?
>  # Upload a copy of flink release binary to hdfs.
>  # Use the -ypl argument to specify the shared lib
> {code:java}
> ./bin/flink run -d -m yarn-cluster -p 20 -ypl 
> hdfs://hdpdev/flink/release/flink-1.9.0 
> examples/streaming/WindowJoin.jar{code}
>  
> -ypl, --yarnpreUpload <path>          Upload a copy of flink binary beforehand
>                                                           and specify the 
> path to use public
>                                                           visibility feature 
> of YARN NodeManager
>                                                           localizing 
> resources.



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

Reply via email to