One: Download and install (if jdk installed successfully)
Select Version: 1.7.2, does not integrate other components.
Download URL: https: //flink.apache.org/downloads.html
Format: flink-1.7.2-bin-scala_2.11.tgz
Decompression: tar -zxvf flink-1.7.2-bin -scala_2.11.tgz
configure the environment variables: CD ~
Vim .bash_profile
Export FLINK_HOME = / Home / Alex / Soft / Flink
Export $ FLINK_HOME the PATH = / bin: $ the PATH
Export the PATH
Source .bash_profile
II: submit jobs
to start flink: ./ bin / start-cluster.sh
View WebUi: ip: 8081, the default port 8081
Submit Mission (socketwordcount) simple test:
Description: statistical flow-based word
1. Start the 9999 port
nc -l 9999
2. Submit task
flink run examples / streaming / SocketWindowWordCount.jar --port 9999