Return-Path: Delivered-To: apmail-lucene-hadoop-commits-archive@locus.apache.org Received: (qmail 78016 invoked from network); 24 Jun 2007 20:36:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jun 2007 20:36:23 -0000 Received: (qmail 75776 invoked by uid 500); 24 Jun 2007 20:36:27 -0000 Delivered-To: apmail-lucene-hadoop-commits-archive@lucene.apache.org Received: (qmail 75683 invoked by uid 500); 24 Jun 2007 20:36:26 -0000 Mailing-List: contact hadoop-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-commits@lucene.apache.org Received: (qmail 75674 invoked by uid 99); 24 Jun 2007 20:36:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Jun 2007 13:36:26 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Jun 2007 13:36:22 -0700 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 69C905A24F for ; Sun, 24 Jun 2007 20:36:02 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: hadoop-commits@lucene.apache.org Date: Sun, 24 Jun 2007 20:36:02 -0000 Message-ID: <20070624203602.18387.22715@eos.apache.org> Subject: [Lucene-hadoop Wiki] Update of "GettingStartedWithHadoop" by AlbertStrasheim X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Lucene-hadoop Wiki" for change notification. The following page has been changed by AlbertStrasheim: http://wiki.apache.org/lucene-hadoop/GettingStartedWithHadoop The comment on the change is: Added hadoop-site.xml example ------------------------------------------------------------------------------ * {{{dfs.client.buffer.dir}}} * {{{mapred.local.dir}}} + An example of a {{{hadoop-site.xml}}} file: + + {{{ + + + + + hadoop.tmp.dir + /tmp/hadoop-${user.name} + + + fs.default.name + localhost:54310 + + + mapred.job.tracker + localhost:54311 + + + dfs.replication + 8 + + + mapred.child.java.opts + -Xmx512m + + + }}} + === Formatting the Namenode === The first step to starting up your Hadoop installation is formatting the Hadoop filesystem, which is implemented on top of the local filesystems of your cluster. You need to do this the first time you set up a Hadoop installation. '''Do not''' format a running Hadoop filesystem, this will cause all your data to be erased. Before formatting, ensure that the {{{dfs.name.dir}}} directory exists. If you just used the default, then {{{mkdir -p /tmp/hadoop-username/dfs/name}}} will create the directory. To format the filesystem (which simply initializes the directory specified by the {{{dfs.name.dir}}} variable), run the command: [[BR]] {{{% $HADOOP_INSTALL/hadoop/bin/hadoop namenode -format}}}