Hi,
I don't know whether there is a more efficient way, but this works:
1. get the host name or IP of the node the container is running
2. login to this node
3. grep the process table for the container ID (it's passed as argument to
Java)
$ ps aux | grep container_...
yarn 16076 .../bin/java ...
-Dyarn.app.container.log.dir=.../yarn/log/application_1512553291624_0087/container_1512553291624_0087_01_000796
4. the pid is 16076
Best,
Sebastian
On 12/12/2017 02:49 AM, Jae-Hyuck Kwak wrote:
> Hi,
> I'd like to monitor actual resource usage (cpu utilization, memory usage, io
> usage, etc)
> of the yarn containers by external tools.
>
> Is there any way to get process id(pid) of yarn container?
>
> BR,
> Jae-Hyuck
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]