Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA7836D21 for ; Fri, 20 May 2011 23:00:57 +0000 (UTC) Received: (qmail 83300 invoked by uid 500); 20 May 2011 23:00:55 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 83225 invoked by uid 500); 20 May 2011 23:00:55 -0000 Mailing-List: contact mapreduce-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-user@hadoop.apache.org Delivered-To: mailing list mapreduce-user@hadoop.apache.org Received: (qmail 83208 invoked by uid 99); 20 May 2011 23:00:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2011 23:00:55 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of anguyen@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2011 23:00:48 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4KN0QfQ009619 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 20 May 2011 19:00:27 -0400 Received: from [10.11.10.217] (vpn-10-217.rdu.redhat.com [10.11.10.217]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p4KN0PGC022400; Fri, 20 May 2011 19:00:25 -0400 Message-ID: <4DD6F1C1.2050802@redhat.com> Date: Fri, 20 May 2011 15:57:05 -0700 From: Anh Nguyen User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3 MIME-Version: 1.0 To: hdfs-user@hadoop.apache.org CC: mapreduce-user@hadoop.apache.org Subject: Re: Starting Datanode References: <4DD6A598.3090707@redhat.com> <4DD6CBF7.4050701@uci.cu> <4DD6CC03.6040206@redhat.com> <4DD6D5A2.4020302@uci.cu> <4DD6D7CF.7010807@uci.cu> <4DD6D12C.3060100@redhat.com> <4DD6DE17.2060508@uci.cu> In-Reply-To: <4DD6DE17.2060508@uci.cu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Virus-Checked: Checked by ClamAV on apache.org On 05/20/2011 02:33 PM, Marcos Ortiz wrote: > On 05/20/2011 04:08 PM, Anh Nguyen wrote: >> On 05/20/2011 02:06 PM, Marcos Ortiz wrote: >>> On 05/20/2011 04:27 PM, Marcos Ortiz wrote: >>>> On 05/20/2011 03:46 PM, Anh Nguyen wrote: >>>>> On 05/20/2011 01:15 PM, Marcos Ortiz wrote: >>>>>> On 05/20/2011 01:02 PM, Anh Nguyen wrote: >>>>>>> Hi, >>>>>>> >>>>>>> I just upgraded to hadoop-0.20.203.0, and am having problem >>>>>>> starting the >>>>>>> datanode: >>>>>>> # hadoop datanode >>>>>>> Unrecognized option: -jvm >>>>>>> Could not create the Java virtual machine. >>>>>>> >>>>>>> It looks like it has something to do with daemon.sh, >>>>>>> particularly the >>>>>>> setting of HADOOP_OPTS: >>>>>>> if [[ $EUID -eq 0 ]]; then >>>>>>> HADOOP_OPTS="$HADOOP_OPTS -jvm server $HADOOP_DATANODE_OPTS" >>>>>>> else >>>>>>> HADOOP_OPTS="$HADOOP_OPTS -server $HADOOP_DATANODE_OPTS" >>>>>>> fi >>>>>>> >>>>>>> Am I missing something? >>>>>>> >>>>>>> Thanks in advance. >>>>>>> >>>>>>> Anh- >>>>>>> >>>>>> Which Java's version are you using? >>>>>> >>>>>> >>>>> # java -version >>>>> java version "1.6.0_20" >>>>> Java(TM) SE Runtime Environment (build 1.6.0_20-b02) >>>>> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode) >>>>> >>>>> It worked with hadoop-0.20.2. >>>>> Anh- >>>> How do you are starting the services? using bin/start-all.sh o >>>> simply the datanode? >>>> >>>> >>> Anh, test first that this option (-jvm is included in that Java >>> version). >>> >>> >> Tested earlier: >> # java -jvm >> Unrecognized option: -jvm >> Could not create the Java virtual machine. >> > Did you check the requirements for that release? I don�t know if this > version require at least a mayor version to 1.6.20. > Did you test with the 1.6.24? Frankly, I have seen/used -jvm. What is it? Anh- > > I think that can be a bug. > Take a time to review the last issues for Hadoop on the JIRA of the > project. > > Regards >