flink linux installation

1. Download the binary Flink, Flink select the corresponding version based on your favorite Hadoop / Scala version.
https://flink.apache.org/downloads.html
2. Select storage unzipped flink-1.7.2-bin-hadoop28- scala_2.11.tar
storage directory: / usr / local / flink
decompression: tar -xvf flink- hadoop28--bin-1.7.2 scala_2.11.tar
3. configuration flink environment variables
4. start Flink
./bin/start-local.sh
5. The stop Flink
./bin/stop-local.sh

6. Download nc local listener
yum -y install nc

view the process
ps -ef | grep flink
or
JPS
netstat -anlp | grep 9000
run JAR:
./bin/flink RUN examples / Streaming / SocketWindowWordCount.jar --port 9000
in different ways
. / bin / flink run -c com.yw.rabbitmqConsumer rabbitmqConsumer -1.0-SNAPSHOT.jar
view the log
tail -f flink-root -. * out

Guess you like

Origin www.cnblogs.com/YuanWeiBlogger/p/11414878.html