- Run Python Table program with pyFiles and pyModule:
./bin/flink run -pym batch.word_count -pyfs examples/python/table/batch -j <path/to/flink-table.jar>
- Run Python Table program with parallelism 16:
./bin/flink run -p 16 -py examples/python/table/batch/word_count.py -j <path/to/flink-table.jar>
- Run Python Table program with flink log output disabled:
./bin/flink run -q -py examples/python/table/batch/word_count.py -j <path/to/flink-table.jar>
- Run Python Table program in detached mode:
./bin/flink run -d examples/python/table/batch/word_count.py -j <path/to/flink-table.jar>
- Run Python Table program on a specific JobManager:
./bin/flink run -m myJMHost:8081 \
-py examples/python/table/batch/word_count.py \
-j <path/to/flink-table.jar>
- Run Python Table program using a [per-job YARN cluster]({{site.baseurl}}/ops/deployment/yarn_setup.html#run-a-single-flink-job-on-hadoop-yarn) with 2 TaskManagers:
./bin/flink run -m yarn-cluster -yn 2 \
-py examples/python/table/batch/word_count.py \
-j <path/to/flink-table.jar>
</div>
### Job Management Examples
-----------------------------
These examples about how to manage a job in CLI.
- Display the optimized execution plan for the WordCount example program as JSON:
./bin/flink info ./examples/batch/WordCount.jar \
...
...
@@ -251,6 +304,19 @@ Action "run" compiles and runs a program.
program. Optional flag to override the
default value specified in the
configuration.
-py,--python <python-file> Python script with the program entry
point.The dependent resources can be
configured with the `--pyFiles` option.
-pyfs,--pyFiles <python-files> Attach custom python files for job.
Comma can be used as the separator to
specify multiple files. The standard
python resource file suffixes such as
.py/.egg/.zip are all supported.
(eg:--pyFiles file:///tmp/myresource.zip
,hdfs:///$namenode_address/myresource2.zip)
-pym,--pyModule <python-module> Python module with the program entry
point. This option must be used in
conjunction with ` --pyFiles`.
-q,--sysoutLogging If present, suppress logging output to
standard out.
-s,--fromSavepoint <savepointPath> Path to a savepoint to restore the job
- Run example program using a [per-job YARN cluster]({{site.baseurl}}/ops/deployment/yarn_setup.html#run-a-single-flink-job-on-hadoop-yarn) with 2 TaskManagers:
- Run example program using a [per-job YARN cluster]({{site.baseurl}}/zh/ops/deployment/yarn_setup.html#run-a-single-flink-job-on-hadoop-yarn) with 2 TaskManagers: