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 install Flink on Linux system

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces how to install Flink in Linux system, which is very detailed and has certain reference value. Friends who are interested must finish it!

Flink uses Java and Scala to write an open source stream processing framework. Flink executes arbitrary stream data programs in a data parallel and pipelined manner. Flink's pipelined runtime system can execute batch and stream programs.

1. Download

There are two versions of flink, one is bundled with hadoop and the other is separate. Let's take a separate one as an example:

Flink-1.9.3-bin-scala_2.11.tgz

2. Decompression

Tar-zxvf flink-1.9.3-bin-scala_2.11.tgz-C / opt/

Extract to / opt/ directory

3. Configure environment variables

Open the configuration file:

Vi / etc/profile

The configuration is as follows:

# Flink

Export FLINK_HOME=/opt/flink-1.9.3

Export PATH=$FLINK_HOME/bin:$PATH

Save the configuration:

Source / etc/profile

4. Start Flink

Execution

Start-cluster.sh

Jps to see if the startup is successful:

5. View the management page

Http://ip address: 8081

6. Run an example

(1) Open the first window:

Listen on port 8888:

Nc-lk 8888

If you do not have nc installed, execute the following command to install:

Yum install-y nc

(2) Open the second window

Go to the flink installation directory, start the java program SocketWindowWordCount for word counting, and listen to port 8888

Flink run examples/streaming/SocketWindowWordCount.jar-port 8888

(3) Open the third window

Go to the log directory under the flink installation directory and view the statistical results:

Tail-f flink-root-taskexecutor-0-bigdata111.out

The above is all the contents of the article "how to install Flink in Linux system". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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

Development

Wechat

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

12
Report