Writing to HBase cluster on EC2 with Java client

2010-12-03 Thread Nanheng Wu
Hi, I set up a small test hbase cluster on ec2. If I want to now store some data in the cluster from outside ec2 using the java client, what should I do? I am very new to hbase and ec2 so any help would be appreciated! Best, Alex

Re: Writing to HBase cluster on EC2 with Java client

2010-12-04 Thread Vijay
Hi Alex, HBase exposes a REST interface named startgate. You can find about it here http://wiki.apache.org/hadoop/Hbase/Stargate The method of starting the REST server mentioned above seems to be deprecated. With HBase 0.20.6 I was able to start it as follows $HBASE_HOME/*bin/hbase org

Re: Writing to HBase cluster on EC2 with Java client

2010-12-04 Thread Vijay
Hi Alex, There is a better way that suits your requirements. You can use the HBase java client API. Detailed explanation with the sample code can be found here : http://hbase.apache.org/docs/current/api/org/apache/hadoop/hbase/client/package-summary.html#package_description Hope this he

Re: Writing to HBase cluster on EC2 with Java client

2010-12-04 Thread Nanheng Wu
Thanks Vijay, I was thinking of using the Java client API. I guess my question was, if I wanted to write a test program to load data into HBase, can I run the program from a host that's not in EC2 (say like my laptop)? I am wondering if there are anything special that need to be done. On Sat, Dec

Re: Writing to HBase cluster on EC2 with Java client

2010-12-04 Thread Lars George
Hi Alex, You will need to add your client IP address (or - but not really recommmended - 0.0.0.0/0 for the world) into the Security Group that you used to start the cluster on EC2 and allow TCP access to a few ports that the client needs to communicate with HBase. For starters 2181 which is the Zo

Re: Writing to HBase cluster on EC2 with Java client

2010-12-04 Thread 陈加俊
Hi Lars, If i do as you say,but I don't want to restart the HBase cluster,do I need to restart the ZooKeeper cluster? Beacause I found that I must add the new computer's IP and port to the zoo.cfg and restart (stop then start ) ZooKeeper Cluster every time,like: bin/hbase-daemons.sh stop zookeepe

Re: Writing to HBase cluster on EC2 with Java client

2010-12-05 Thread Lars George
Hi Alex, No need to restart it. The SecurityGroup change is done on the EC2 side and during runtime. Simply add the access rules and press save for each. It is adjusted dynamically. Lars On Dec 5, 2010, at 2:42, 陈加俊 wrote: > Hi Lars, > > If i do as you say,but I don't want to restart the H

Re: Writing to HBase cluster on EC2 with Java client

2010-12-05 Thread Nanheng Wu
Hi Lars, Thanks for the response, I believe I'm making progress but it's not quite working. So I made the security group changes that you mentioned, and in my test program I did this: HBaseConfiguration config = new HBaseConfiguration(); config.set("hbase.zookeeper.quorum",""); config.set("hbas

RE: Writing to HBase cluster on EC2 with Java client

2010-12-05 Thread Gary Gilbert - SQLstream
l.com] Sent: Saturday, December 04, 2010 11:03 AM To: user@hbase.apache.org Subject: Re: Writing to HBase cluster on EC2 with Java client Hi Alex, You will need to add your client IP address (or - but not really recommmended - 0.0.0.0/0 for the world) into the Security Group that you used to sta

Re: Writing to HBase cluster on EC2 with Java client

2010-12-05 Thread Brent Halsey
eral advice Or is that advice EC2 specific. > > Thanks > Gary Gilbert > > > -Original Message- > From: Lars George [mailto:lars.geo...@gmail.com] > Sent: Saturday, December 04, 2010 11:03 AM > To: user@hbase.apache.org > Subject: Re: Writing to HBase cluster on EC