命令缩写 | 命令 | 实践 | 作用 | 中文含义 | 含义 | 常用 |
-C | --classpath <url> | -c com.mob.flink.entry | 需要指定的main方法的类 | JAR文件没有在其清单中指定类。向集群中所有节点上的每个用户代码类加载器添加一个URL。路径必须指定协议(例如file://),并且在所有节点上都可以访问(例如通过NFS共享)。您可以多次使用此选项以指定多个URL。该协议必须得到{@link java.net.URLClassLoader}的支持。 | JAR file does not specify the class in its manifest. Adds a URL to each user code classloader on all nodes in the cluster. The paths must specify a protocol (e.g. file://) and be accessible on all nodes (e.g. by means of a NFS share). You can use this option multiple times for specifying more than one URL. The protocol must be supported by the {@link java.net.URLClassLoader}. | 1 |
-D | --detached | --detached | 在后台运行 | 如果存在,则以分离模式运行作业 | If present, runs the job in detached mode | 1 |
-n | --allowNonRestoredState | --allowNonRestoredState | 如果复原的程序,对逻辑做了修改,比如删除了算子可以指定allowNonRestoredState参数复原。 | 允许跳过无法恢复的保存点状态。如果您从程序中删除了保存点触发时属于程序一部分的操作符,则需要允许这样做。 | Allow to skip savepoint state that cannot be restored. You need to allow this if you removed an operator from your program that was part of the program when the savepoint was triggered. | 1 |
-p | -- <parallelism> | -p 50 | job需要指定env的并行度,这个一般都需要设置。 | 运行程序的并行度。可选标志,用于覆盖配置中指定的默认值。 | The parallelism with which to run the program. Optional flag to override the default value specified in the configuration. | 1 |
-yD | <property=value> | -yD taskmanager.memory. managed.size=256m \ | 为给定的属性使用值 | use value for given property | 1 | |
-yjm | --yarnjobManagerMemory <arg> | -yjm 1024 | jobmanager的内存 | JobManager容器的内存,可选单位(默认:MB) | Memory for JobManager Container with optional unit (default: MB) | 1 |
-ynm | --yarnname <arg> | --yarnname ${MOBSSP_ENV} | application的名称 | 在YARN上为应用程序设置自定义名称 | Set a custom name for the application on YARN | 1 |
-ys | --yarnslots <arg> | -ys 1 | 分配的slots个数 | 每个TaskManager的插槽数 | Number of slots per TaskManager | 1 |
-ytm | --yarntaskManagerMemory <arg> | -ytm 2048 | taskmanager的内存 | 每个TaskManager容器的内存,可选单位(默认:MB) | Memory per TaskManager Container with optional unit (default: MB) | 1 |
-m | --jobmanager <arg> | -m yarn-cluster \ | yarn-cluster集群 | 要连接到的JobManager地址。使用此标志可以连接到与配置中指定的JobManager不同的JobManager。注意:只有当高可用性配置为NONE时,才会考虑该选项。 | Address of the JobManager to which to connect. Use this flag to connect to a different JobManager than the one specified in the configuration. Attention: This option is respected only if the high-availability configuration is NONE. | 1 |
flink常用参数
于 2023-01-26 18:47:18 首次发布