Flink Quick Start With Command

Ordiy Lv5

create flink java project

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# expor shell 
# flink 1.17.2 为例子
cd project-dir
mvn archetype:generate \
-DarchetypeGroupId=org.apache.flink \
-DarchetypeArtifactId=flink-quickstart-java \
-DarchetypeVersion=1.17.2


# 备注: 指令会根据project artifactId 创建项目文件夹

# version
# 自动创建项目
mvn archetype:generate \
-DarchetypeGroupId=org.apache.flink \
-DarchetypeArtifactId=flink-quickstart-java \
-DarchetypeVersion=1.17.2 \
-DgroupId=my-data-flink \
-DartifactId=cloudflare-cdn-etl \
-Dversion=1.0-SNAPSHOT \



# mvn compile test
cd xx && mvn clean compile

shell script quick start

1
curl https://flink.apache.org/q/quickstart.sh | bash -s 1.17.2

参考

Apache Filink

  • Title: Flink Quick Start With Command
  • Author: Ordiy
  • Created at : 2024-12-01 17:51:37
  • Updated at : 2025-03-27 12:08:23
  • Link: https://ordiy.github.io/posts/2024-10-10-flink-quick-start-md/
  • License: This work is licensed under CC BY 4.0.
On this page
Flink Quick Start With Command