Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE18211AC5 for ; Mon, 21 Jul 2014 17:48:41 +0000 (UTC) Received: (qmail 15092 invoked by uid 500); 21 Jul 2014 17:48:40 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 15000 invoked by uid 500); 21 Jul 2014 17:48:40 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 14986 invoked by uid 99); 21 Jul 2014 17:48:40 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2014 17:48:40 +0000 Date: Mon, 21 Jul 2014 17:48:40 +0000 (UTC) From: "Allen Wittenauer (JIRA)" To: common-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HADOOP-4953) config property mapred.child.java.opts has maximum length that generates NoClassDefFoundError if exceeded 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/HADOOP-4953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Allen Wittenauer resolved HADOOP-4953. -------------------------------------- Resolution: Won't Fix I'm closing this as won't fix since this parameter is mostly deprecated in lieu of map and reduce specific environment vars. > config property mapred.child.java.opts has maximum length that generates NoClassDefFoundError if exceeded > --------------------------------------------------------------------------------------------------------- > > Key: HADOOP-4953 > URL: https://issues.apache.org/jira/browse/HADOOP-4953 > Project: Hadoop Common > Issue Type: Bug > Components: conf > Affects Versions: 0.19.0 > Environment: Amazon EC2 Ubuntu 8.04 hardy AMI" (Debian version "lenny/sid") > JDK 1.6.0_07-b06 from Sun > kernel.ostype = Linux > kernel.osrelease = 2.6.21.7-2.fc8xen > kernel.version = #1 SMP Fri Feb 15 12:39:36 EST 2008 > powernow-k8: Found 1 Dual-Core AMD Opteron(tm) Processor 2218 HE processors (version 2.00.00) > Reporter: Paul Baclace > > There is an unexpected max length for the value of config property mapred.child.java.opts that, if exceeded, generates an opaque NoClassDefFoundError in child tasks. > The max length for the value is 146 chars. A length of 147 chars will cause the exception. For example, adding a single extra space between options will convert a working jvm opts clause into one that always generates NoClassDefFoundError when tasktrackers exec child tasks. > As laboriously diagnosed, conf/hadoop-site.xml was used to set the property and runs were done on "Amazon EC2 Ubuntu 8.04 hardy AMI" (Debian version "lenny/sid") using java 1.6.0_07-b06. Multiple slaves nodes were used and after conf changes, stop-all.sh and start-all.sh were run before each test. The job config props as found on the slave did not appear to have a truncated or damaged value. It made no difference whether @taskid@ appeared at the end or middle of the options and absence of @taskid@ did not eliminate the problem. > This bug wastes considerable time because the error looks like a classpath problem and even after the java opts property is suspected, a character quoting or unsupported option seems more likely than a length limit. -- This message was sent by Atlassian JIRA (v6.2#6252)