hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Rawson <ryano...@gmail.com>
Subject Re: Deployment question
Date Tue, 23 Mar 2010 21:05:46 GMT
I do something like this:

sudo -u hadoop -s

<configure passwordless ssh for user hadoop>

tar zxvf hbase-0.20.3.tar.gz
vim hbase-0.20.3/conf/hbase-env.sh hbase-0.20.3/conf/hbase-site.xml

<do configuration>

for i in `cat hbase-0.20.3/conf/regionserver` ; do rsync -avp --delete
hbase-0.20.3 $i:~ ; done

cd hbase-0.20.3

The advantage of this mechanism is you dont need root to deploy and
start hadoop.  Debian or redhat packages require you to be root to (a)
install hadoop & hbase and (b) start/stop hbase.   Rsync makes it fast
and easy to do small differential deployments (ie: updated 1 config
file).  For not huge clusters this is a perfectly acceptable, fast,
easy solution.

On Tue, Mar 23, 2010 at 1:59 PM, William Kang <weliam.cloud@gmail.com> wrote:
> Hi David,
> Thanks for your reply. But what you used to configure the classpath? It is
> quite tedious to configure for all the libraries needed to run the jar in
> command line. Thanks.
> William
> On Tue, Mar 23, 2010 at 8:10 AM, Buttler, David <buttler1@llnl.gov> wrote:
>> I use rsync
>> -----Original Message-----
>> From: William Kang [mailto:weliam.cloud@gmail.com]
>> Sent: Monday, March 22, 2010 10:42 PM
>> To: hbase-user
>> Subject: Deployment question
>> Hi,
>> How do you guys deploy your Java program to the production cluster?
>> I worked in Eclipse in a local linux machine in pseudo distributed mode.
>> What would be the best way to deploy my program to the production cluster?
>> The production cluster is not in the same subnet as the development
>> machine.
>> Thanks a lot.
>> William

View raw message