Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 09-11-2017 09:57 PM - edited 09-16-2022 05:13 AM
Is there a YARN API or command to know path to yarn logs location on disk for given container and application id ? Also want to add; we don't have log aggregation working and I'm perticularly looking for direct physical link to the file not the web interface.
Thanks,
Sunil
Created 09-12-2017 05:51 AM
Not sure this information is available.
You could go with the "yarn logs" command
or go with the basic way using command line :
- pdsh to distribute the same command on every data-node
- launch a find on the container id
regards,
mathieu
Created 09-12-2017 05:51 AM
Not sure this information is available.
You could go with the "yarn logs" command
or go with the basic way using command line :
- pdsh to distribute the same command on every data-node
- launch a find on the container id
regards,
mathieu
Created 09-15-2017 09:43 AM
Finding logs manually in machine sound very brute force; I was thinking more of an API or CLI option to find logs
Anyway the main issue we're trying to solve is access to logs to all developers in prod environment. Our node managers are behind the bars and not accessible ( any port or web ) to develoeprs and it's unlikely to happen. So we're trying to find a way to proxy the logs.
I discovered that there is a jobhistory proxy to look at completed jobs / yarn apps but I coudln't get it working for running app. Is there any trick / way to access running app's logs like above ?