forked from apache/flink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-13938][yarn] Add yarn.provided.lib.dirs for shared libs across…
… apps on YARN Currently, for every job execution, the flink lib jars are uploaded to hdfs and then register as Yarn local resources. This PR introduces the yarn.provided.lib.dirs YARN option which allows users to specify HDFS paths to dirs that contain files to be shared across applications, e.g. the FLINK-DIST jar. This makes job submission more efficient as it allows for two optimizations: * Use pre-uploaded flink binary to avoid uploading of flink system jars * By default, the resource visibility for the shared libs is set to PUBLIC so that they will be downloaded only once and shared for all tasks running on the same node. This will make launching a container faster. A command that leverages this feature looks like the following: ./bin/flink run -m yarn-cluster -d \ -yD yarn.provided.lib.dirs="hdfs:https://$namenode_address/flink-lib/flink-1.11-SNAPSHOT/lib;hdfs:https://$namenode_address/flink-lib/flink-1.11-SNAPSHOT/plugins" \ examples/streaming/WindowJoin.jar This closes apache#12040.
- Loading branch information
1 parent
486221d
commit c59e894
Showing
14 changed files
with
631 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.