Return-Path: Delivered-To: apmail-lucene-hadoop-commits-archive@locus.apache.org Received: (qmail 52574 invoked from network); 19 Aug 2007 08:37:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Aug 2007 08:37:19 -0000 Received: (qmail 75520 invoked by uid 500); 19 Aug 2007 08:37:17 -0000 Delivered-To: apmail-lucene-hadoop-commits-archive@lucene.apache.org Received: (qmail 75493 invoked by uid 500); 19 Aug 2007 08:37:17 -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 75483 invoked by uid 99); 19 Aug 2007 08:37:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Aug 2007 01:37:16 -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, 19 Aug 2007 08:37:12 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 8EB6959A07 for ; Sun, 19 Aug 2007 08:36:52 +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, 19 Aug 2007 08:36:52 -0000 Message-ID: <20070819083652.21820.1897@eos.apache.org> Subject: [Lucene-hadoop Wiki] Trivial Update of "QuickStart" by masukomi 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 masukomi: http://wiki.apache.org/lucene-hadoop/QuickStart The comment on the change is: Added the Fully-distributed operation section, but it's still untested ------------------------------------------------------------------------------ '''Mac Users''' You'll probably need to install something like [http://www.sshkeychain.org/ SSHKeychain] or [http://www.mothersruin.com/software/SSHChain/ SSHChain] (no idea which is better) to be able to ssh to a computer without having to enter the password every time. This is due to the fact that ssh-agent was designed for X11 systems and OS X isn't an X11 system. - == FINISH ME == - Will do. Or, maybe you will... + === Bootstrapping === + A new distributed filesystem must be formatted with the following command, run on the master node: + {{{bin/hadoop namenode -format}}} + + You should see a quick series of `STARTUP_MSG`s and a `SHUTDOWN_MSG` + + + Then start up the Hadoop daemon with + + {{{bin/start-all.sh}}} + + It should notify you that it's starting the `namenode`, `datanode`, `secondarynamenode`, and `jobtracker`. + + Input files are copied into the distributed filesystem as follows: + {{{bin/hadoop dfs -put }}} + For more details just type `bin/hadoop dfs` with no options. + + == Stage 3: Fully-distributed operation == + + Distributed operation is just like the pseudo-distributed operation described above, except: + + 1. Specify hostname or IP address of the master server in the values for `fs.default.name` and `mapred.job.tracker` in `conf/hadoop-site.xml`. These are specified as `host:port` pairs. + 2. Specify directories for `dfs.name.dir` and `dfs.data.dir` in `conf/hadoop-site.xml`. These are used to hold distributed filesystem data on the master node and slave nodes respectively. Note that `dfs.data.dir` may contain a space- or comma-separated list of directory names, so that data may be stored on multiple devices. + 3. Specify `mapred.local.dir` in `conf/hadoop-site.xml`. This determines where temporary MapReduce data is written. It also may be a list of directories. + 4. Specify `mapred.map.tasks` and `mapred.reduce.tasks` in `conf/mapred-default.xml`. As a rule of thumb, use 10x the number of slave processors for `mapred.map.tasks`, and 2x the number of slave processors for `mapred.reduce.tasks`. + 5. List all slave hostnames or IP addresses in your `conf/slaves` file, one per line. +