Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 28977 invoked from network); 30 Dec 2008 22:25:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Dec 2008 22:25:55 -0000 Received: (qmail 48867 invoked by uid 500); 30 Dec 2008 22:25:49 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 48824 invoked by uid 500); 30 Dec 2008 22:25:49 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 48813 invoked by uid 99); 30 Dec 2008 22:25:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Dec 2008 14:25:49 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of g00dn3ss@gmail.com designates 74.125.46.29 as permitted sender) Received: from [74.125.46.29] (HELO yw-out-2324.google.com) (74.125.46.29) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Dec 2008 22:25:40 +0000 Received: by yw-out-2324.google.com with SMTP id 9so1849388ywe.29 for ; Tue, 30 Dec 2008 14:25:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=ngT/o1rvup8ylkdOckVJo0FPq6BEz6xWEczVQ5TuVH8=; b=cZfwA9VKFEmkXKnK0EaKX4OM6cxa54tlIVOjOfqzIiImlZ6H4QCYPe4QvdDbOfAITn dWqcuG5881wmX07YoGyOd2olczzLn6hFBb5vBNDtqzN5MMQZbPHRCuvmzy0ENBrgpeQ9 K+/C7o9jyo+8MaoupVndS0pvUcmSZUF7qPf6o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=HpTsgGvMa4J20dGlztq5khkYN/qzc+Nfdod8FsIvWxJ7BN7rF0eIdXdsa7cZBJTiFF y9IEGDs0yzfjcz4BlRm8bgBveK4qpkylUKsD56Wdt3WqttrjcsU2qVg4pcHSPanrUfnf U0+CkB7edlBHi5wKbvrBhGNk3vqXNV2C4xy2M= Received: by 10.90.96.15 with SMTP id t15mr7319161agb.37.1230675918983; Tue, 30 Dec 2008 14:25:18 -0800 (PST) Received: by 10.90.33.12 with HTTP; Tue, 30 Dec 2008 14:25:18 -0800 (PST) Message-ID: <3dc1e8330812301425i1607d51bjed72991ac21018ce@mail.gmail.com> Date: Tue, 30 Dec 2008 17:25:18 -0500 From: g00dn3ss To: core-user@hadoop.apache.org Subject: Re: Problem loading hadoop-site.xml - dumping parameters In-Reply-To: <49599519.9030402@yahoo-inc.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_118494_11400590.1230675918920" References: <1e7471d50812291318u4b9e8406ha6875b08b1a150e4@mail.gmail.com> <49599519.9030402@yahoo-inc.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_118494_11400590.1230675918920 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hey all, I have a similar issue. I am specifically having problems with the config option "mapred.child.java.opts." I set it to -Xmx1024m and it uses -Xmx200m regardless. I am running Hadoop 0.18.2 and I'm pretty sure this option was working in the previous versions of Hadoop I was using. I am not explicitly setting HADOOP_CONF_DIR. My site config is in ${HADOOP_HOME}/conf. Just to test things further, I wrote a small map task to print out the ENV values and it has the correct value for HADOOP_HOME, HADOOP_LOG_DIR, HADOOP_OPTS, etc... I also printed out the key/values in the JobConf passed to the mapper and it has my specified values for fs.default.name and mapred.job.tracker. Other settings like dfs.name.dir, dfs.data.dir, and mapred.child.java.opts do not have my values. Any suggestion where to look at next? Thanks! On Mon, Dec 29, 2008 at 10:27 PM, Amareshwari Sriramadasu < amarsri@yahoo-inc.com> wrote: > Saptarshi Guha wrote: > >> Hello, >> I had previously emailed regarding heap size issue and have discovered >> that the hadoop-site.xml is not loading completely, i.e >> Configuration defaults = new Configuration(); >> JobConf jobConf = new JobConf(defaults, XYZ.class); >> System.out.println("1:"+jobConf.get("mapred.child.java.opts")); >> System.out.println("2:"+jobConf.get("mapred.map.tasks")); >> System.out.println("3:"+jobConf.get("mapred.reduce.tasks")); >> >> System.out.println("3:"+jobConf.get("mapred.tasktracker.reduce.tasks.maximum")); >> >> returns -Xmx200m, 2,1,2 respectively, even though the numbers in the >> hadoop-site.xml are very different. >> >> Is there a way for hadoop to dump the parameters read in from >> hadoop-site.xml and hadoop-default.xml? >> >> >> > Is your hadoop-site.xml present in the conf (HADOOP_CONF_DIR) directory? > http://hadoop.apache.org/core/docs/r0.19.0/cluster_setup.html#Configuration > > -Amareshwari > ------=_Part_118494_11400590.1230675918920--