Flink1.17安裝
官網(wǎng)地址: https://nightlies.apache.org/flink/flink-docs-release-1.17/zh//docs/try-flink/local_installation/
安裝jdk11
ps:只能安裝openjdk11,昨天安裝的oracle jdk17,結(jié)果怎么也運行不起來。
sudo apt update
sudo apt install openjdk-11-jdk
安裝flink1.17
創(chuàng)建安裝的目錄,我是安裝在/opt/software下,可以自己選擇
sudo mkdir /opt/software
# 拷貝
yantao@ubuntu20:~/下載$ sudo mv flink-1.17.1-bin-scala_2.12.tgz /opt/software/
yantao@ubuntu20:~/下載$ cd /opt/software/
# 解壓安裝
yantao@ubuntu20:/opt/software$ sudo tar -zxvf flink-1.17.1-bin-scala_2.12.tgz
# 進(jìn)入安裝目錄
yantao@ubuntu20:/opt/software$ ls
flink-1.17.1 flink-1.17.1-bin-scala_2.12.tgz
yantao@ubuntu20:/opt/software$ cd flink-1.17.1/
啟動集群
yantao@ubuntu20:/opt/software/flink-1.17.1$ sudo bin/start-cluster.sh
Starting cluster.
Starting standalonesession daemon on host ubuntu20.
Starting taskexecutor daemon on host ubuntu20.
web地址 :http://localhost:8081/文章來源:http://www.zghlxwxcb.cn/news/detail-729509.html
提交作業(yè)
yantao@ubuntu20:/opt/software/flink-1.17.1$ ./bin/flink run examples/streaming/WordCount.jar
查看文章來源地址http://www.zghlxwxcb.cn/news/detail-729509.html
yantao@ubuntu20:/opt/software/flink-1.17.1$ tail log/flink-*-taskexecutor-*.out
(nymph,1)
(in,3)
(thy,1)
(orisons,1)
(be,4)
(all,2)
(my,1)
(sins,1)
(remember,1)
(d,4)
停止集群
yantao@ubuntu20:/opt/software/flink-1.17.1$ sudo ./bin/stop-cluster.sh
到了這里,關(guān)于flink1.17安裝的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!