From 7b8a829cec2d5ddb0e046368d96bb90d1b885f98 Mon Sep 17 00:00:00 2001 From: Andrew Kyle Purtell Date: Sat, 19 Dec 2009 07:48:58 +0000 Subject: [PATCH] HBASE-2032 [EC2] Add support for installation of user packages; update readme git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@892443 13f79535-47bb-0310-9956-ffa450edef68 --- src/contrib/ec2/README.txt | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/contrib/ec2/README.txt b/src/contrib/ec2/README.txt index 39906d29f47..f6290006360 100644 --- a/src/contrib/ec2/README.txt +++ b/src/contrib/ec2/README.txt @@ -70,3 +70,35 @@ Quick Start: domU-12-31-39-01-B0-91.compute-1.internal:60020 1258653706411 requests=0, regions=0, usedHeap=27, maxHeap=987 0 dead servers + + +Extra Packages: + +It is possible to specify that extra packages be downloaded and installed on +demand when the master and slave instances start. + + 1. Set up a YUM repository. See: http://yum.baseurl.org/wiki/RepoCreate + + 2. Host the repository somewhere public. For example, build the + repository locally and then copy it up to an S3 bucket. + + 3. Create a YUM repository descriptor (.repo file). See: + http://yum.baseurl.org/wiki/RepoCreate + + [myrepo] + name = MyRepo + baseurl = http://mybucket.s3.amazonaws.com/myrepo + enabled = 1 + + Upload the .repo file somewhere public, for example, in the root + directory of the repository, + mybucket.s3.amazonaws.com/myrepo/myrepo.repo + + 4. Configure hbase-ec2-env.sh thus: + + EXTRA_PACKAGES="http://mybucket.s3.amazonaws.com/myrepo/myrepo.repo \ + pkg1 pkg2 pkg3" + +When the master and slave instances start, the .repo file will be added to +the Yum repository list and then Yum will be invoked to pull the packages +listed after the URL.