Created
April 15, 2021 18:39
-
-
Save rmetzger/0cf4ba081d685d26478525bf69c7bd39 to your computer and use it in GitHub Desktop.
Flink with Hadoop (untested)
This file contains hidden or 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
services: | |
flink-jobmanager: | |
container_name: flink-jobmanager | |
build: | |
context: . | |
dockerfile: Dockerfile.flink | |
args: | |
FLINK_VERSION: 1.11.3-scala_2.12-java11 | |
image: 'flink-test:1.11.3-scala_2.12-java11' | |
ports: | |
- "8091:8081" | |
- "8092:8082" | |
command: jobmanager | |
environment: | |
- | | |
FLINK_PROPERTIES= | |
jobmanager.rpc.address: flink-jobmanager | |
rest.port: 8081 | |
historyserver.web.port: 8082 | |
web.upload.dir: /opt/flink | |
env.hadoop.conf.dir: /opt/hadoop/conf | |
env.yarn.conf.dir: /opt/hadoop/conf | |
- | | |
HADOOP_CLASSPATH=... | |
- HADOOP_CONF_DIR=/opt/hadoop/conf | |
- YARN_CONF_DIR=/opt/hadoop/conf |
This file contains hidden or 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
FROM flink:1.12.2 | |
RUN wget https://mirror.netcologne.de/apache.org/hadoop/common/hadoop-3.1.4/hadoop-3.1.4.tar.gz ; tar xf hadoop-3.1.4.tar.gz | |
RUN cp -r /opt/flink/hadoop-3.1.4/share/hadoop/common/* /opt/flink/hadoop-3.1.4/share/hadoop/hdfs/* /opt/flink/lib/ | |
RUN mkdir -p /opt/hadoop/conf ; cp -r hadoop-3.1.4/etc/hadoop/* /opt/hadoop/conf/ | |
RUN rm /opt/flink/lib/lib/slf4j-log4j12-1.7.25.jar ; rm /opt/flink/lib/lib/commons-cli-1.2.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment