In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.