source Client installation directory/bigdata_env
Run the following command in the directory at the same level as ssl to start the session. ssl/ is a relative path.
cd /opt/hadoopclient/Flink/flink/conf/
yarn-session.sh -t ssl/ -nm "session-name" -d
... Cluster started: Yarn cluster with application id application_1624937999496_0017 JobManager Web Interface: http://192.168.1.150:32261
Run the following command to start a session:
cd /opt/hadoopclient/Flink/flink/conf/
yarn-session.sh -nm "session-name" -d
kinit Username
echo -e 'test' >/tmp/test
hdfs dfs -mkdir -p obs://Parallel file system name/tmp/flinkjob
hdfs dfs -put /tmp/test/ obs://Parallel file system name/tmp/flinkjob/
flink run Client installation directory/Flink/flink/examples/batch/WordCount.jar -input obs://Parallel file system name/tmp/flinkjob/test -output obs://Parallel file system name/tmp/flinkjob/output