From core-commits-return-4762-apmail-hadoop-core-commits-archive=hadoop.apache.org@hadoop.apache.org Wed May 07 19:32:35 2008 Return-Path: Delivered-To: apmail-hadoop-core-commits-archive@www.apache.org Received: (qmail 73446 invoked from network); 7 May 2008 19:32:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2008 19:32:35 -0000 Received: (qmail 71509 invoked by uid 500); 7 May 2008 19:32:37 -0000 Delivered-To: apmail-hadoop-core-commits-archive@hadoop.apache.org Received: (qmail 71475 invoked by uid 500); 7 May 2008 19:32:37 -0000 Mailing-List: contact core-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-commits@hadoop.apache.org Received: (qmail 71464 invoked by uid 99); 7 May 2008 19:32:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 12:32:37 -0700 X-ASF-Spam-Status: No, hits=-2000.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; Wed, 07 May 2008 19:31:48 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 80009D2F7 for ; Wed, 7 May 2008 19:32:03 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: core-commits@hadoop.apache.org Date: Wed, 07 May 2008 19:32:03 -0000 Message-ID: <20080507193203.8828.41693@eos.apache.org> Subject: [Hadoop Wiki] Update of "AmazonEC2" by JimRWilson X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification. The following page has been changed by JimRWilson: http://wiki.apache.org/hadoop/AmazonEC2 The comment on the change is: fixing old, broken svn download links ------------------------------------------------------------------------------ Here is a high-level outline of how the scripts for creating a Hadoop AMI work. For details, please see the scripts' sources (linked to below). - 1. The main script, [http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/ec2/bin/create-hadoop-image?view=co create-hadoop-image] starts a Fedora core Amazon AMI. + 1. The main script, [http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/ec2/bin/create-hadoop-image?view=co create-hadoop-image] starts a Fedora core Amazon AMI. - 1. Once the Fedora instance has launched ''create-hadoop-image'' copies the environment variables file ([http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/ec2/bin/hadoop-ec2-env.sh.template?view=co hadoop-ec2-env.sh]) and scripts to run on the Fedora instance ([http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/ec2/bin/image/create-hadoop-image-remote?view=co create-hadoop-image-remote] and [http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/ec2/bin/image/hadoop-init?view=co hadoop-init]) then it logs into the Fedora instance and runs ''create-hadoop-image-remote''. + 1. Once the Fedora instance has launched ''create-hadoop-image'' copies the environment variables file ([http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/ec2/bin/hadoop-ec2-env.sh.template?view=co hadoop-ec2-env.sh]) and scripts to run on the Fedora instance ([http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/ec2/bin/image/create-hadoop-image-remote?view=co create-hadoop-image-remote] and [http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/ec2/bin/image/hadoop-init?view=co hadoop-init]) then it logs into the Fedora instance and runs ''create-hadoop-image-remote''. 1. The script ''create-hadoop-image-remote'' then installs Java, tools required to run Hadoop, and Hadoop itself. Then it configures Hadoop: * In EC2, the local data volume is mounted as ''/mnt'', so logs are written under here. * ''hadoop-init'' is installed as an init script to be run on instance start up. This takes advantage of an EC2 feature called [http://developer.amazonwebservices.com/connect/entry.jspa?externalID=531&categoryID=100 parameterized launches]. For Hadoop, this allows the master hostname and the cluster size to be retrieved when the Hadoop instance starts - this information is used to finish the Hadoop configuration.