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 24DC89D08 for ; Tue, 26 Jun 2012 07:27:47 +0000 (UTC) Received: (qmail 40353 invoked by uid 500); 26 Jun 2012 07:27:47 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 40111 invoked by uid 500); 26 Jun 2012 07:27:46 -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 40059 invoked by uid 99); 26 Jun 2012 07:27:44 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 07:27:44 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id E96A8141E10 for ; Tue, 26 Jun 2012 07:27:43 +0000 (UTC) Date: Tue, 26 Jun 2012 07:27:43 +0000 (UTC) From: "Ivan Mitic (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <745366094.55334.1340695663957.JavaMail.jiratomcat@issues-vm> In-Reply-To: <500361844.45148.1339019003437.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (MAPREDUCE-4322) Fix command-line length abort issues on 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-4322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ivan Mitic updated MAPREDUCE-4322: ---------------------------------- Attachment: MAPREDUCE-4322-branch-1-win(2).patch Attaching updated patch with unittests. > Fix command-line length abort issues on Windows > ----------------------------------------------- > > Key: MAPREDUCE-4322 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-4322 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: tasktracker > Environment: Windows, downstream applications with long aggregate classpaths > Reporter: John Gordon > Assignee: Ivan Mitic > Attachments: MAPREDUCE-4322-branch-1-win(2).patch, MAPREDUCE-4322-branch-1-win.patch > > Original Estimate: 12h > Remaining Estimate: 12h > > When a task is started on the tasktracker, it creates a small batch file to invoke java and runs that batch. Within the batch file, the invocation of Java currently has -classpath ${CLASSPATH} inline to the command. That line often exceeds 8000 characters. This is ok for most linux distributions because the line limit env variable is often set much higher than this. However, for Windows this cause cmd to abort execution. This surfaces in Hadoop as an unknown failure mode for the task. > I think the easiest and most natural way to fix this is to push the -classpath option into a config file to take the longest variable part of the line and put it somewhere that scales better. -- 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