是否可以使用命令行确定 YARN 中当前活动的调度程序插件?

Is it possible to determine the currently active scheduler plugin in YARN with the command line?

我想要一个命令来告诉我 ResourceManager 的当前 运行 实例是 运行 公平调度程序还是容量调度程序(或其他一些自定义插件)。

我知道可以通过编程方式获取它,因为它显示在 ResourceManager 的本机 GUI 中,但我想知道是否可能是 yarn 子命令之一(甚至是 shell 命令) 也可以提供。

好吧,所以我想到了一些东西,它...总之...可怕:

wget -S -O - http://<rm-host>:<rm-web-port> |& grep Scheduler | egrep -v "href|Metrics|Type" | tr -d '[[:blank:]]'

肯定有更好的方法...