0


【Hadoop】Yarn 任务管理指令

  • 列出所有Application : yarn application -list``````# 可以根据状态过滤:ALL、NEW、NEW_SAVING、SUBMITTED、ACCEPTED、RUNNING、FINISHED、FAILED、KILLEDyarn application -list -appStates FINISHEDapplication_1652832924022_57402 DDOS-Detect-Engine_Ver000 SPARK root tech97 RUNNING UNDEFINED 10% http://10.230.20.37:4040application_1652832924022_57401 ETL_dns SPARK root tech97 RUNNING UNDEFINED 10% http://10.230.20.37:4041application_1652832924022_57341 web_stat SPARK root tech97 RUNNING UNDEFINED 10% http://10.230.20.3:41071
  • 查看尝试运行的应用 yarn applicationattempt -list application_1612577921195_0001``````23/06/2410:38:21 INFO impl.TimelineClientImpl: Timeline service address: http://maxc84:8188/ws/v1/timeline/23/06/2410:38:22 INFO client.ConfiguredRMFailoverProxyProvider: Failing over to rm2Total number of application attempts :1 ApplicationAttempt-Id State AM-Container-Id Tracking-URLappattempt_1652832924022_57401_000001 FINISHED container_e18_1652832924022_57401_01_000001 http://maxc85:8088/proxy/application_1652832924022_57401/
  • 杀死指定应用 : yarn application -kill application_1612577921195_0001
  • 查看指定应用日志 : yarn logs -applicationId application_1612577921195_0001
  • 查看节点状态 : yarn node -list -all``````Total Nodes:35 Node-Id Node-State Node-Http-Address Number-of-Running-Containers maxc8:45454 RUNNING maxc8:80423 maxc3:45454 RUNNING maxc3:80427 maxc18:45454 RUNNING maxc18:80425 maxc25:45454 RUNNING maxc25:80423 maxc16:45454 RUNNING maxc16:80425 maxc34:45454 RUNNING maxc34:80425 maxc22:45454 RUNNING maxc22:80424 maxc31:45454 RUNNING maxc31:80421 maxc13:45454 RUNNING maxc13:80427
  • 查看队列状态 : yarn queue -status wa``````[root@maxc84~]# yarn queue -status wa23/06/2410:58:58 INFO impl.TimelineClientImpl: Timeline service address: http://maxc84:8188/ws/v1/timeline/23/06/2410:58:59 INFO client.ConfiguredRMFailoverProxyProvider: Failing over to rm2Queue Information : Queue Name : tech97 State : RUNNING Capacity :50.0% Current Capacity :41.7% Maximum Capacity :70.0% Default Node Label expression : Accessible Node Labels :*

本文转载自: https://blog.csdn.net/qq_35240081/article/details/136123881
版权归原作者 方大刚233 所有, 如有侵权,请联系我们删除。

“【Hadoop】Yarn 任务管理指令”的评论:

还没有评论