In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Edit related script 1.1 access Point script
Docker-entrypoint.sh
#! / bin/bashset-eexec "$@" 1.2 startup script
Start.sh
#! / usr/bin/env bashbin/start-cluster.shwhile truedo echo "=" sleep 60sdone1.3 DockerfileFROM lynn/jdk:1.8.0_172LABEL maintainer= "Lynn Yuan" ENV FLINK_HOME / flinkENV FLINK_VERSION 1.7.1ENV HADOOP_VERSION 27ENV TAR flink-$ {FLINK_VERSION}-bin-hadoop$ {HADOOP_VERSION}-scala_2.11.tgzENV TAR_URL http://mirrors.hust.edu.cn/apache/flink/flink-${FLINK_VERSION}/${TAR} ENV PATH ${FLINK_HOME} / bin:$PATHRUN set-x\ & & apt-get update\ & & apt-get install-y wget vim curl net-tools telnet procps nmap\ & & wget ${TAR_URL} RUN set-x\ & & mkdir ${FLINK_HOME}\ & & tar zxvf ${TAR}-C ${FLINK_HOME}\ & & mv ${FLINK_HOME} / flink- ${FLINK_VERSION} / * ${FLINK_HOME}\ & & rm-rf ${FLINK_HOME} / flink-$ {FLINK_VERSION}\ & & rm-rf ${TAR} ADD docker-entrypoint.sh / docker-entrypoint.shADD start.sh / start.shRUN set-x & & chmod + x / docker-entrypoint.sh\ & & chmod + x / start.shWORKDIR ${FLINK_HOME} ENTRYPOINT ["/ docker-entrypoint.sh"] CMD ["/ start.sh"] EXPOSE 8081EXPOSE 61232. Use Dockerfile build imagedocker build-- rm-t lynn/flink:1.7.1. 3. Run container docker run-idt-- name=flink-- hostname flink-node-p 18081 name=flink 8081 lynn/flink:1.7.1
Enter the following Url in the browser:
Http://localhost:18081/
The screenshot is as follows:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.