yarn mode
Yarn mode means Zeppelin will create a flink session cluster in yarn cluster. Then you can submit flink jobs to this flink session cluster.
Configuration
Besides
FLINK_HOME
andflink.execution.mode
, you also need to configureHADOOP_CONF_DIR
, and make sure the zeppelin machine can access hadoop cluster.Make sure zeppelin machine install hadoop client and
hadoop
command on thePATH
. Because flink is not shipped with hadoop by default (although you can downloadflink-shaded-hadoop
and put it under flink lib, but it is not the recommended approach). Zeppelin will run commandhadoop classpath
underneath, and put them on the classpath of flink interpreter process.
After these configuration, you can run wordcount example to verify it. And you will see a flink session cluster launched in yarn as following.
Video Tutorial
Community
Join Zeppelin community to discuss with others
Last updated