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 E9679D3DC for ; Wed, 27 Jun 2012 01:29:45 +0000 (UTC) Received: (qmail 87804 invoked by uid 500); 27 Jun 2012 01:29:45 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 87760 invoked by uid 500); 27 Jun 2012 01:29:45 -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 87730 invoked by uid 99); 27 Jun 2012 01:29:45 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2012 01:29:45 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id E5E0B141E10 for ; Wed, 27 Jun 2012 01:29:43 +0000 (UTC) Date: Wed, 27 Jun 2012 01:29:43 +0000 (UTC) From: "John Gordon (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1276070656.59580.1340760583943.JavaMail.jiratomcat@issues-vm> In-Reply-To: <320174819.54228.1340668543985.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (MAPREDUCE-4368) TaskRunner fails to start jars when the java.library.path contains a quoted path with embedded spaces 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-4368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Gordon updated MAPREDUCE-4368: ----------------------------------- Status: Open (was: Patch Available) > TaskRunner fails to start jars when the java.library.path contains a quoted path with embedded spaces > ----------------------------------------------------------------------------------------------------- > > Key: MAPREDUCE-4368 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-4368 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: tasktracker > Affects Versions: 1-win > Environment: on Windows: > set PATH=%PATH%;"C:\this memorable place". > Reporter: John Gordon > Labels: newbie, patch > Attachments: TaskRunner.patch > > Original Estimate: 24h > Remaining Estimate: 24h > > TaskRunner splits arguments by space before it adds them back to the vargs list, so it loses all context of quote escaped strings with embedded spaces. This gets fixed up later by wrapping all arguments with " -- so you get something like java "-D=". This is problematic for paths with embedded spaces, where we end up creating "-D=". To java, the jar being run is last part. So with the environment above, you will see "ClassNoDefFoundError: memorable" and the jar will fail to start. In this particular case, we know that java.libarary.path contains paths and the tests often use %PATH% to seed this, so the fix is to remove embedded quotes in listed path elements because we know the aggregate will be quoted when the JVM is started. -- 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