当前位置:网站首页>Flink1.7 from installation to experience
Flink1.7 from installation to experience
2022-07-18 17:35:00 【51CTO】
Welcome to visit mine GitHub
Here we classify and summarize all the original works of Xinchen ( Including supporting source code ): https://github.com/zq2599/blog_demos
- Actual combat of this article Flink1.7 The installation and Demo Operation process ;
Introduction to the steps
- preparation ;
- download Flink1.7;
- install Flink1.7;
- start-up Flink1.7;
- Experience Flink1.7;
preparation
- The following is the environmental information of this actual battle :
- operating system :CentOS Linux release 7.5.1804
- JDK:1.8.0_191
- nc Tools :7.50( The installation command is yum install nmap-ncat.x86_64)
- Be careful :
- I am here vmware Of ubuntu16 I tried , After starting Managers、Slots、Available Task Slots The number of is zero , But there is no problem on the physical machine ;
- CentOS Please pay attention to turn off the firewall ;
download Flink1.7
- stay Flink Download from the official website , The address is : https://flink.apache.org/downloads.html
- Here's the picture , Select the version in the red box :

install Flink1.7
- Flink1.7 It's easy to install , Decompression can be , As shown below :
- Download the Flink The installation package file is flink-1.7.0-bin-hadoop28-scala_2.11.tgz, Put it in this position :/usr/local/work;
- stay /usr/local/work Execute command under directory tar -zxvf flink-1.7.0-bin-hadoop28-scala_2.11.tgz decompression , A folder will be generated :flink-1.7.0
start-up Flink1.7
- In the folder flink-1.7.0 Give orders **./bin/start-cluster.sh** You can start Flink, The startup information is as follows :
- stay flink-1.7.0/log You can see the directory named flink-root-standalonesession-0-vostro.log** Log file ( Your file name is slightly different from mine ,vostro It's my hostname ,root Is the current account number ), The contents are as follows :
My machine IP The address is 192.168.1.103, So visit... In the browser http://192.168.1.103:8081, You can see the following information :

thus ,Flink1.7 install 、 Deploy 、 Start up ;
Experience Flink1.7
- Execute the following command on the machine to connect the machine 9000 port :
- In the folder flink-1.7.0 Execute the following command , You can listen to this computer 9000 port , Wait for data on this port :
- Then refresh web page , See the following information , I added a new one Job:

- In execution nc -l 9000 Command window , Enter some sentences , Press enter after each input , as follows :
- This will send the above string to the local 9000 port ;
- stay flink-1.7.0/log Under the table of contents , There will be flink-root-taskexecutor-0-vostro.out The file appears , Your file name may be slightly different , among vostro It's my host name ,root Is the current account number , Open this file and have a look , The following appears :
It can be seen that the task has been executed normally , The number of words in each sentence is counted ;
thus , We finished Flink The first experience of , In the follow-up actual combat, we will gradually deepen our experience together Flink This powerful framework ;
Welcome to your attention 51CTO Blog : Xinchen, programmer
On the way to study , You are not alone , Xinchen's original works are accompanied all the way …
边栏推荐
- 户外LED显示屏应对炎热高温天气有妙招
- HCIA-R&S自用笔记(8)IP地址基础、子网掩码、子网划分
- 新书上市 | C 语言经典教材配套“习题解答”,原书累计印数 10 万 +
- NFT商城/NFT盲盒/虚拟盲盒/NFT交易/可定制二开
- Diabetes genetic risk testing challenge -toggle 30 days of ML
- 初次上路如何提问 - 自学必备技能(附直播回放)
- NJUPT 《信安数基》第 11 章解题攻略
- Why should slab be dyed
- Pytest+allure custom report
- Alipay sandbox tests mobile website payment, prompting that the merchant's cooperation agreement has expired and cannot continue to be used
猜你喜欢

Chinese translation of zagayevsky's "try to praise this incomplete world"

I found an artifact that can efficiently manage interface documents

HCIA-R&S自用笔记(7)(网络层)TTL及环路测试,协议号

一 kernel编译系统概述

HCIA-R&S自用笔记(6)(网络层)ICMP、IP协议基础及分片

Detailed explanation of file parsing vulnerability

How to multiply bank revenue through customer value analysis

第一届中国数字藏品大会顺利召开

Alipay sandbox tests mobile website payment, prompting that the merchant's cooperation agreement has expired and cannot continue to be used

2022年全球职业教育行业发展报告
随机推荐
How to multiply bank revenue through customer value analysis
因果学习将开启下一代AI浪潮?九章云极DataCanvas正式发布YLearn因果学习开源项目
Architecture layering of standard web system of Architecture Series
错误:The source of the existing CacheManager is: URLConfigurationSource
ipfs记录
五 其它目标和通用选项的介绍
STC8H开发(十四): I2C驱动RX8025T高精度实时时钟芯片
Postgresql源码(7)Xlog格式
电脑PC与S7-200SMART PLC不在同一网段,如何建立通信连接?
I found an artifact that can efficiently manage interface documents
新书上市 | C 语言经典教材配套“习题解答”,原书累计印数 10 万 +
多叉树--->B树和B+树
Use of typescript classes
thymeleaf介绍与简单应用
The exit relationship between the main thread and the sub thread of the main process
如何在Kubernetes上搭建code-server 云IDE平台
Chinese translation of zagayevsky's "try to praise this incomplete world"
【CVA估值训练营】如何快速读懂上市公司年报(第一讲)
交换
Harmonic series are divergent