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
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
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
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
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
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
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
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
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
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
10 matches
Mail list logo