Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67E977756 for ; Tue, 29 Nov 2011 16:23:20 +0000 (UTC) Received: (qmail 17293 invoked by uid 500); 29 Nov 2011 16:23:16 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 17225 invoked by uid 500); 29 Nov 2011 16:23:16 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 17217 invoked by uid 99); 29 Nov 2011 16:23:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 16:23:16 +0000 X-ASF-Spam-Status: No, hits=4.0 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of prashant.iiith@gmail.com designates 209.85.214.48 as permitted sender) Received: from [209.85.214.48] (HELO mail-bw0-f48.google.com) (209.85.214.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 16:23:08 +0000 Received: by bkbc12 with SMTP id c12so12533005bkb.35 for ; Tue, 29 Nov 2011 08:22:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Vfh1MGClWXzVuOsmIEPyo0IbDQl6CTrzgRCVKTithHw=; b=WTR01Xdj9BIdGYefnCqRBmIBKRG0wf5YrfzYY8M0tecH6Jb5VEGu27M9adPTAX/ayL C3fabF+U9lLug9FAZ7r8Q98XWcokwDEWT8T7AN6YbOV+KajWrM/zh2/KCQg05DJEpjZd dfDN1Hi7sqOdgLM+uSlNKIMd3OAEAnlxa6ctE= MIME-Version: 1.0 Received: by 10.205.135.129 with SMTP id ig1mr51833356bkc.106.1322583768149; Tue, 29 Nov 2011 08:22:48 -0800 (PST) Received: by 10.204.133.214 with HTTP; Tue, 29 Nov 2011 08:22:48 -0800 (PST) In-Reply-To: References: <2011112920371787979833@gmail.com> Date: Tue, 29 Nov 2011 21:52:48 +0530 Message-ID: Subject: Re: Re: [help]how to stop HDFS From: Prashant Sharma To: common-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=000e0ce0f34cafad7a04b2e2071a X-Virus-Checked: Checked by ClamAV on apache.org --000e0ce0f34cafad7a04b2e2071a Content-Type: text/plain; charset=ISO-8859-1 I mean, you have to export the variables export HADOOP_CONF_DIR=/path/to/your/configdirectory. also export HADOOP_HDFS_HOME ,HADOOP_COMMON_HOME. before your run your command. I suppose this should fix the problem. -P On Tue, Nov 29, 2011 at 6:23 PM, cat fa wrote: > it didn't work. It gave me the Usage information. > > 2011/11/29 hailong.yang1115 > > > Try $HADOOP_PREFIX_HOME/bin/hdfs namenode stop --config $HADOOP_CONF_DIR > > and $HADOOP_PREFIX_HOME/bin/hdfs datanode stop --config $HADOOP_CONF_DIR. > > It would stop namenode and datanode separately. > > The HADOOP_CONF_DIR is the directory where you store your configuration > > files. > > Hailong > > > > > > > > > > *********************************************** > > * Hailong Yang, PhD. Candidate > > * Sino-German Joint Software Institute, > > * School of Computer Science&Engineering, Beihang University > > * Phone: (86-010)82315908 > > * Email: hailong.yang1115@gmail.com > > * Address: G413, New Main Building in Beihang University, > > * No.37 XueYuan Road,HaiDian District, > > * Beijing,P.R.China,100191 > > *********************************************** > > > > From: cat fa > > Date: 2011-11-29 20:22 > > To: common-user > > Subject: Re: [help]how to stop HDFS > > use $HADOOP_CONF or $HADOOP_CONF_DIR ? I'm using hadoop 0.23. > > > > you mean which class? the class of hadoop or of java? > > > > 2011/11/29 Prashant Sharma > > > > > Try making $HADOOP_CONF point to right classpath including your > > > configuration folder. > > > > > > > > > On Tue, Nov 29, 2011 at 3:58 PM, cat fa > > > wrote: > > > > > > > I used the command : > > > > > > > > $HADOOP_PREFIX_HOME/bin/hdfs start namenode --config $HADOOP_CONF_DIR > > > > > > > > to sart HDFS. > > > > > > > > This command is in Hadoop document (here > > > > < > > > > > > > > > > http://hadoop.apache.org/common/docs/r0.23.0/hadoop-yarn/hadoop-yarn-site/ClusterSetup.html > > > > >) > > > > > > > > However, I got errors as > > > > > > > > Exception in thread "main" java.lang.NoClassDefFoundError:start > > > > > > > > Could anyone tell me how to start and stop HDFS? > > > > > > > > By the way, how to set Gmail so that it doesn't top post my reply? > > > > > > > > > > --000e0ce0f34cafad7a04b2e2071a--