[
https://issues.apache.org/jira/browse/MAPREDUCE-4203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397288#comment-13397288
]
Ivan Mitic commented on MAPREDUCE-4203:
---------------------------------------
Thanks for addressing the comments Bikas.
bq. 2.For ReportErrorCode(), it is because we are calling FormatMessageW()
inside the function to retrieval the system error code message inside the
function. If you pass in EXIT_FAILURE (1), it will print error message of
ERROR_INVALID_FUNCTION (1).
Ah, the issue here is that {{CallNtPowerInformation}} returns {{NTSTATUS}}
instead of {{WINERROR}} code. We would need to define a new
{{ReportNtErrorCode()}} function that would be able to translate the
{{NTSTATUS}} code into the message. The implementation would be similar to
{{ReportErrorCode()}}, check out this [MSDN
link|http://support.microsoft.com/kb/259693]. I don't mind if you'd like to
have a separate Jira on this.
> Create equivalent of ProcfsBasedProcessTree for Windows
> -------------------------------------------------------
>
> Key: MAPREDUCE-4203
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-4203
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Reporter: Bikas Saha
> Assignee: Bikas Saha
> Attachments: MAPREDUCE-4203.branch-1-win.1.patch,
> MAPREDUCE-4203.branch-1-win.2.patch, MAPREDUCE-4203.branch-1-win.3.patch,
> MAPREDUCE-4203.patch, test.cpp
>
>
> ProcfsBasedProcessTree is used by the TaskTracker to get process information
> like memory and cpu usage. This information is used to manage resources etc.
> The current implementation is based on Linux procfs functionality and hence
> does not work on other platforms, specifically windows.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira