yarn-session启动flink后,自定义name未生效

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 都失效了,也就是说其实这个命令是完全按默认配置的启动的

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值