通过 bash 获取 yarn 资源管理器主机名
Get yarn ressource manager hostname through bash
我试图通过 bash 在不同的节点中找到 yarn 资源管理器主机名。我发现它的唯一方法是键入任何 yarn 命令并 grep/awk 来获取它 (xxx.xxx.xxx.xxx)。示例:
yarn node -list -all
INFO impl.TimelineClientImpl: Timeline service address: http://xxx.xxx.xxx.xxx:8188/ws/v1/timeline/
16/03/18 14:28:16 INFO client.RMProxy: Connecting to ResourceManager at xxx.xxx.xxx.xxx/10.100.x.y:8050
Total Nodes:4
a
b
c
d
还有其他方法可以得到吗?
怎么样
hdfs getconf -confKey
示例:
hdfs getconf -confKey yarn.resourcemanager.webapp.https.address.rm212
我试图通过 bash 在不同的节点中找到 yarn 资源管理器主机名。我发现它的唯一方法是键入任何 yarn 命令并 grep/awk 来获取它 (xxx.xxx.xxx.xxx)。示例:
yarn node -list -all
INFO impl.TimelineClientImpl: Timeline service address: http://xxx.xxx.xxx.xxx:8188/ws/v1/timeline/
16/03/18 14:28:16 INFO client.RMProxy: Connecting to ResourceManager at xxx.xxx.xxx.xxx/10.100.x.y:8050
Total Nodes:4
a
b
c
d
还有其他方法可以得到吗?
怎么样
hdfs getconf -confKey
示例:
hdfs getconf -confKey yarn.resourcemanager.webapp.https.address.rm212