flink on yarn 自定义name未生效/ -nm 不生效
flink版本问题
1. 使用yarn-session.sh -h 查看自己版本支持的参数,如果自己的命令中有不支持的参数,那么从哪个参数开始的后边的参数都不会生效
以下1.16版本的参数支持,可以看到 -n 已经不支持了
Usage:
Optional
-at,--applicationType Set a custom application type for the application on YARN
-D use value for given property
-d,--detached If present, runs the job in detached mode
-h,--help Help for the Yarn session CLI.
-id,--applicationId Attach to running YARN session
-j,--jar Path to Flink jar file
-jm,--jobManagerMemory Memory for JobManager Container with optional unit (default: MB)
-m,--jobmanager Set to yarn-cluster to use YARN execution mode.
-nl,--nodeLabel Specify YARN node label for the YARN application
-nm,--name Set a custom name for the application on YARN
-q,--query Display available YARN resources (memory, cores)
-qu,--queue Specify YARN queue.
-s,--slots Number of slots per TaskManager
-t,--ship Ship files in the specified directory (t for transfer)
-tm,--taskManagerMemory Memory per TaskManager Container with optional unit (default: MB)
-yd,--yarndetached If present, runs the job in detached mode (deprecated; use non-YARN specific option instead)
-z,--zookeeperNamespace Namespace to create the Zookeeper sub-paths for high availability mode
2. 以下边命令为例
nohup yarn-session.sh -n 2 -s 4 -jm 1600 -tm 1024 -nm fxh &
因为-n 已经不支持了,所以-n 及之后的 -s -jm -tm -nm 都失效了,也就是说其实这个命令是完全按默认配置的启动的