Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use docker to build Flink and view flink version

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to use docker to build Flink and view the flink version". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to use docker to build Flink and view the flink version".

Use docker to pull the image

Docker pull flink

After pulling the image, check:

Iie4bu@swarm-manager:~/ddy/docker-flink$ docker image lsREPOSITORY TAG IMAGE ID CREATED SIZEflink latest 10a60ef23105 7 days ago 574MB

Create a new folder docker-flink and a new file docker-compose.yml under the folder, with the following contents:

Version: "6123" services: jobmanager: image: flink expose:-"6123" ports:-"8081 depends_on:-JOB_MANAGER_RPC_ADDRESS=jobmanager taskmanager: image: flink expose: -" 6121 "-" 6122 "depends_on:-jobmanager command: taskmanager links: -" jobmanager:jobmanager "environment:-JOB_MANAGER_RPC_ADDRESS=jobmanager

Start docker-compose

Docker-compose up-d

When the browser opens http://127.0.0.1:8081, you can see dashboard.

In this way, the environment is set up.

You can check the flink version in the container: flink-- version

Thank you for your reading, the above is "how to use docker to build Flink and view the flink version" content, after the study of this article, I believe you on how to use docker to build Flink and view the flink version of this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report