[
https://issues.apache.org/jira/browse/YARN-10422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18080790#comment-18080790
]
ASF GitHub Bot commented on YARN-10422:
---------------------------------------
github-actions[bot] commented on PR #8126:
URL: https://github.com/apache/hadoop/pull/8126#issuecomment-4446370420
We're closing this stale PR because it has been open for 100 days with no
activity. This isn't a judgement on the merit of the PR in any way. It's just a
way of keeping the PR queue manageable.
If you feel like this was a mistake, or you would like to continue working
on it, please feel free to re-open it and ask for a committer to remove the
stale tag and review again.
Thanks all for your contribution.
> Create the script responsible for collecting the bundle data
> ------------------------------------------------------------
>
> Key: YARN-10422
> URL: https://issues.apache.org/jira/browse/YARN-10422
> Project: Hadoop YARN
> Issue Type: Sub-task
> Reporter: Benjamin Teke
> Assignee: chhinlinghean
> Priority: Major
> Labels: pull-request-available
> Attachments: YARN-10422.POC.001.patch, YARN-10422.POC.002.patch,
> YARN-10422.POC.003.patch
>
>
> The script should provide the list of diagnostic use-cases described in
> YARN-10421. If a request comes in to the YarnDiagnosticCollector servlet, the
> script will be invoked. It collects all the information required for that
> diagnostic category and saves it into a configurable directory as a
> compressed tar file.
> An example of how the script could look like:
> {code:java}
> if [$1 = "listcommonissues"]
> echo "1, Application Failed"
> echo "2, Application Hanging"
> echo "3, Scheduler Related Issue"
> echo "4, RM failure to start"
> echo "5, NM failure to start"
> elif [$1 = "collect"]
> if [$2 == 1]
> appId = $3
> mkdir /tmp/$appId
> yarn logs -applicationId $appId > /tmp/$appId/joblogs
> curl <JHS>/{appId}/conf > /tmp/$appId/conf
> curl <RM>/logs | grep container > /tmp/$appId/rmlogs
> curl <NM>/logs | grep container > /tmp/$appId/nmlogs
> outputpath = /tmp/$appId
> elif ...
> elif ...
> fi tar and compress outputpath.{code}
>
> During class load YarnDiagnosticsCollector reads the list of common issues
> from the script and keeps it in memory. On every startup of YARN UI2
> diagnostics page, it fetches the list from the servlet and displays them. The
> servlet should handle the script changes, so if a new diagnostic case is
> added, a YARN UI2 reload should show it. This way the users can easily plug
> new categories without any UI2 or Servlet code change.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]