Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67BA9D296 for ; Wed, 20 Jun 2012 04:28:48 +0000 (UTC) Received: (qmail 74099 invoked by uid 500); 20 Jun 2012 04:28:48 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 73654 invoked by uid 500); 20 Jun 2012 04:28:47 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 73242 invoked by uid 99); 20 Jun 2012 04:28:43 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2012 04:28:43 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 4AAC5142866 for ; Wed, 20 Jun 2012 04:28:43 +0000 (UTC) Date: Wed, 20 Jun 2012 04:28:43 +0000 (UTC) From: "Chuan Liu (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <257659645.32612.1340166523309.JavaMail.jiratomcat@issues-vm> In-Reply-To: <2059348739.628.1335478729748.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAPREDUCE-4203) Create equivalent of ProcfsBasedProcessTree for Windows MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAPREDUCE-4203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397252#comment-13397252 ] Chuan Liu commented on MAPREDUCE-4203: -------------------------------------- # {quote} I would prefer the secure and generic versions unless you have a strong preference for the wide char version {quote} You can use fwprintf_s(). I am fine if you want to stay with tchar version. It is just implementation wise, tchar functions are always mapped to either Unicode/wchar version or ANSI version. E.g. we have the following definition in "tchar.h". Because we have explicitly indicate we only support Unicode. I think it more clear if we always use wide char version of the functions. Either way, since they are equivalent, it is your call. {code} #define _ftprintf_s fwprintf_s {code} # For ReportErrorCode(), it is because we are calling FormatMessageW() inside the function to retrieval the [system error code|http://msdn.microsoft.com/en-us/library/windows/desktop/ms681382.aspx] message inside the function. If you pass in EXIT_FAILURE (1), it will print error message of ERROR_INVALID_FUNCTION (1). > 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