docker-flink / examples

Examples for how to use the Flink Docker images in a variety of ways
Apache License 2.0
90 stars 46 forks source link

support for additional libraries #2

Open olmoser opened 6 years ago

olmoser commented 6 years ago

this adds a config flag (flink.additional_libs) that allows users to reference and include addtional libraries from the flink distribution. this is useful e.g. if you want to enable metrics but don't want to create a custom image for that. Basically what happens is that an init container (that runs the same image as jobmanager and taskmanager) mounts an emptyDir, copies the relevant libs from $FLINK_BASEDIR/lib and $FLINK_BASEDIR/opt (<-- those are the ones that you can reference via --set flink.additional_libs) to that emptyDir and mounts that directory in the jobmanager and taskmanager containers to /opt/flink/lib.