Re: Getting data from Hbase from client/remote computer

2010-08-31 Thread Shuja Rehman
Hi I am trying to implement according to documentation and i also added this line to connect remote server HBaseConfiguration config = new HBaseConfiguration(); config.set(hbase.master, myserver.mycompany.com:6); but I am getting following exception WARNING: instantiating

Re: Getting data from Hbase from client/remote computer

2010-08-31 Thread Shuja Rehman
Hi All I have also try by enabling the web server on the remote machine and use the following code. String host=myserver.mycompany.com http://myserver.mycompany.com:6; int port=80; String protocol = http; HBaseConfiguration config = new HBaseConfiguration();

Re: Getting data from Hbase from client/remote computer

2010-08-31 Thread Stack
On Tue, Aug 31, 2010 at 12:38 AM, Shuja Rehman shujamug...@gmail.com wrote: Hi I am trying to implement according to documentation and i also added this line to connect remote server  HBaseConfiguration config = new HBaseConfiguration();  config.set(hbase.master,

Re: Getting data from Hbase from client/remote computer

2010-08-31 Thread Stack
You don't have to instantiate the webserver. It comes up on by default. Browse to http://MASTER_HOST:60010/. I'd suggest you read the 'getting started' doc referred to earlier. St.Ack On Tue, Aug 31, 2010 at 4:32 AM, Shuja Rehman shujamug...@gmail.com wrote: Hi All I have also try by

RE: Getting data from Hbase from client/remote computer

2010-08-31 Thread Kelvin Rawls
Shuja: getting back to your original question, we are using JMXBeans and Locater code that return references to the proxies for the JMXBeans to allow remote clients to access HBase without any knowledge of HBase or Hadoop Kelvin From:

RE: Scan startRow seems to be broke in HBase 0.20.2

2010-08-31 Thread Kelvin Rawls
It seems my question is not clear: does this call: scan.setStartRow(Bytes.toBytes(lastDoc)) .. have any effect on rows returned for anyone else? Thanks, Kelvin From: Kelvin Rawls [kel...@iswcorp.com] Sent: Monday, August 30, 2010 11:25 AM To:

Re: Initial and max heap size

2010-08-31 Thread Jean-Daniel Cryans
It works for me, we run with 6 to 8GB. What's the error message? J-D On Tue, Aug 31, 2010 at 10:43 AM, Sharma, Avani agsha...@ebay.com wrote: Is there a way to specify an initial and max heap size to hbase ? Giving 4G to HBASE_HEAPSIZE fails to start the JVM. Thanks, Avani Sharma

Re: Initial and max heap size

2010-08-31 Thread Vidhyashankar Venkataraman
Make sure you are using a 64 bit JVM as opposed to 32-bit.. 32 bit java doesn't allow more than 3-4 gigs.. On 8/31/10 10:43 AM, Sharma, Avani agsha...@ebay.com wrote: Is there a way to specify an initial and max heap size to hbase ? Giving 4G to HBASE_HEAPSIZE fails to start the JVM. Thanks,

RE: Initial and max heap size

2010-08-31 Thread Sharma, Avani
Well, I have a 16G machine and I do not want to give all memory to hbase since each hbase deamon will take 4Gigs - master and regionserver are running on the same machines and also hdfs daemons. -Avani -Original Message- From: Vidhyashankar Venkataraman

Re: Initial and max heap size

2010-08-31 Thread Vidhyashankar Venkataraman
Hi Avani, 4 gigs might be enough for your app.. But did you make sure that you are using a 64-bit jvm? On 8/31/10 11:32 AM, Sharma, Avani agsha...@ebay.com wrote: Well, I have a 16G machine and I do not want to give all memory to hbase since each hbase deamon will take 4Gigs - master and

Re: Initial and max heap size

2010-08-31 Thread Matthew LeMieux
I've found that the master doesn't need as much memory as the regionserver. I've been successful giving the region servers 4GB or more and the master 1GB or less. (I used HBASE_MASTER_OPTS and HBASE_REGIONSERVER_OPTS in hbase-env.sh for specifying different heap sizes) Has anybody else had

Re: HBase table lost on upgrade

2010-08-31 Thread Stack
On Tue, Aug 31, 2010 at 11:36 AM, Sharma, Avani agsha...@ebay.com wrote: I just upgraded my 3-node cluster for 0.20.3 to 0.20.6. After I did this, I notice that some of my tables are missing. I recovered the lost tables using add_table.rb. But I am starting to have doubts about the stability

RE: HBase table lost on upgrade

2010-08-31 Thread Sharma, Avani
Thanks, Stack. Well, I was able to get the basic hbase cluster to run, but now that I am trying to boost read performance, I am running into stuff that is either not working or I cannot easily find solutions to on the net. -Avani -Original Message- From: saint@gmail.com

Re: HBase table lost on upgrade

2010-08-31 Thread Stack
On Tue, Aug 31, 2010 at 12:14 PM, Sharma, Avani agsha...@ebay.com wrote: Thanks, Stack. Well, I was able to get the basic hbase cluster to run, but now that I am trying to boost read performance, I am running into stuff that is either not working or I cannot easily find solutions to on the

Re: Getting data from Hbase from client/remote computer

2010-08-31 Thread Shuja Rehman
Kelvin Can you give me some more details or some reference links from where i can learn how to use JMXBean stuff to connect to master server and then perform operations on hbase. Thanks On Tue, Aug 31, 2010 at 8:58 PM, Kelvin Rawls kel...@iswcorp.com wrote: Shuja: getting back to your

Re: Getting data from Hbase from client/remote computer

2010-08-31 Thread Stack
On Tue, Aug 31, 2010 at 12:54 PM, Shuja Rehman shujamug...@gmail.com wrote: Hi Stack, I am reading the documentation from the following link http://hbase.apache.org/docs/r0.20.6/api/index.html http://hbase.apache.org/docs/r0.20.6/api/index.htmland in Example API Usage they just declare the

Log messages galore - urgent help recovering

2010-08-31 Thread Matthew LeMieux
I've been very happy with HBase, and am very much looking forward to more stable releases in the future.Today, I had another one of those unfortunate crashes that seems to occur every few days and need some help understanding how I can speed up the recovery, which is taking longer than

Re: Log messages galore - urgent help recovering

2010-08-31 Thread Ryan Rawson
When you have a master that is confused like this, you can try this: - make sure it isnt undergoing log splitting - kill -9 the master - restart the master the startup code will check the cluster status then take appropriate action. There is a new master which will make all this junk better

Re: Log messages galore - urgent help recovering

2010-08-31 Thread Jean-Daniel Cryans
One thing you can do is to kill -9 the master process, then restart it with bin/hbase-daemon.sh start master This will clear the master state and it will inspect the cluster when restarting to figure where things are. If that doesn't work you can also restart HBase completely. Are the region

Re: Getting data from Hbase from client/remote computer

2010-08-31 Thread Shuja Rehman
Stack, I have checked the example on the given link http://hbase.apache.org/docs/r0.89.20100726/apidocs/org/apache/hadoop/hbase/client/package-summary.html#package_description

Re: Getting data from Hbase from client/remote computer

2010-08-31 Thread Shuja Rehman
Hi Stack I have solved this problem Thanks On Wed, Sep 1, 2010 at 5:30 AM, Shuja Rehman shujamug...@gmail.com wrote: Stack, I have checked the example on the given link

Re: Getting data from Hbase from client/remote computer

2010-08-31 Thread Imran M Yousuf
Hi Shuja-Ur-Rahman, It would be nice if you would mention how you solved it in the mailing list so that if someone else runs into the same problem they know how to solve it. /Imran On Wed, Sep 1, 2010 at 7:29 AM, Shuja Rehman shujamug...@gmail.com wrote: Hi Stack I have solved this problem

Re: Getting data from Hbase from client/remote computer

2010-08-31 Thread Shuja Rehman
Hi Imran I have used these configuration settings and include the zoo keeper and log4j jars also in class path. HBaseConfiguration config = new HBaseConfiguration(); config.clear(); config.set(hbase.zookeeper.quorum, myserver.mycompany.com:2181);

Re: Getting data from Hbase from client/remote computer

2010-08-31 Thread Stack
On Tue, Aug 31, 2010 at 5:30 PM, Shuja Rehman shujamug...@gmail.com wrote: HBaseConfiguration#create() to construct a plain Configuration Exception in thread main java.lang.NoClassDefFoundError: org/apache/zookeeper/KeeperException As it says, NoClassDefFoundError. Try adding zookeeper jar to

RE: Getting data from Hbase from client/remote computer

2010-08-31 Thread Kelvin Rawls
Shuja No real magic code here, Google JMX Tutorial and take any hello world JMX example - gut method and change signature as needed - add HBase access code from any working example - get JMX client from tutorial mod as required and it just works. We are up against a deadline here - but if

JSONP and Stargate

2010-08-31 Thread Bradford Stephens
Hey homies, I'm trying to write some JavaScript (which I know little about) to pull data out of HBase via Stargate via jQuery. To get around the Single Origin Policy, I'm trying to do gets by using JSONP, which embeds/retrieves requests in script tags. This seems to be a relatively common way to

RE: Region servers down...

2010-08-31 Thread xiujin yang
HBase: 0.20.6 Hadoop: 0.20.2 After I upgrage to 0.20.6, It run no more than one week and one Region server down again. Please check HBase log: http://pastebin.com/J9LugZ17 HBase out : http://pastebin.com/QKbpSMwq Thank you in advance. Best, -- Xiujin Yang.