[ 
https://issues.apache.org/jira/browse/YARN-3294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14363732#comment-14363732
 ] 

Jian He commented on YARN-3294:
-------------------------------

thanks Varun, looks good overall. 
- will it dump the logs for package 
“org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity”  or 
“org.apache.hadoop.yarn.server.resourcemanager.scheduler”. I think it should be 
dumping latter as some scheduler logs sit in common 
{code}
Log log = LogFactory.getLog(CapacityScheduler.class.getPackage().getName());

{code}
- the newly added code can be in a separate class, maybe call it 
SchedulerLogDumper
- {{private Logger packageLogger;}} does not need to be a global value
- dumping logs is useful for large amount of logs. Do you think it's also 
useful to surface the logs on the web page. 
- Overall, do you think it's useful to make this as a generic log dumper ? i.e. 
parameterize the class name of the log to be dumped.

> Allow dumping of Capacity Scheduler debug logs via web UI for a fixed time 
> period
> ---------------------------------------------------------------------------------
>
>                 Key: YARN-3294
>                 URL: https://issues.apache.org/jira/browse/YARN-3294
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: capacityscheduler
>            Reporter: Varun Vasudev
>            Assignee: Varun Vasudev
>         Attachments: Screen Shot 2015-03-12 at 8.51.25 PM.png, 
> apache-yarn-3294.0.patch, apache-yarn-3294.1.patch
>
>
> It would be nice to have a button on the web UI that would allow dumping of 
> debug logs for just the capacity scheduler for a fixed period of time(1 min, 
> 5 min or so) in a separate log file. It would be useful when debugging 
> scheduler behavior without affecting the rest of the resourcemanager.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to