flink on yarn 如何获取TM所在容器的ID

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

flink on yarn 如何获取TM所在容器的ID

gigayou
如题,如何通过代码的方式获得到?
Reply | Threaded
Open this post in threaded view
|

Re: flink on yarn 如何获取TM所在容器的ID

gigayou
找到一个方案,虽然是hash后的,getRuntimeContext().getMetricGroup().getAllVariables().get("<task_id>")