HBase: Filters not working for negative integers

2013-06-26 Thread Madhukar Pandey
We have implemented QualifierFilter as well as ValueFilter (using BinaryComparator) of Hbase successfully and they are working fine for most of our cases. However they are failing in cases like number -10 or number -10 Please note that number = -10 is working perfectly fine. Also, number 10

HBase: Filters not working for negative integers

2013-06-26 Thread Madhukar Pandey
Please ignore my previous mail..there was some copy paste issue in it.. this is the correct mail.. We have implemented QualifierFilter as well as ValueFilter (using BinaryComparator) of Hbase successfully and they are working fine for most of our cases. However they are failing in cases like

Re: HBase: Filters not working for negative integers

2013-06-26 Thread James Taylor
You'll need to flip the sign bit for ints and longs like Phoenix does. Feel free to borrow our serializers (in PDataType) or just use Phoenix. Thanks, James On 06/26/2013 12:16 AM, Madhukar Pandey wrote: Please ignore my previous mail..there was some copy paste issue in it.. this is the

Control connection behavior to zookeeper with HBase?

2013-06-26 Thread Jason Huang
Not sure if I should post this to the zookeeper list or here but I will try here first for my luck. The application that I am working on runs a small HBase cluster (0.94.3) with an external zookeeper(3.4.4). Within the java client, when we invoke the first call to fetch data from HBase table, a

Re: Control connection behavior to zookeeper with HBase?

2013-06-26 Thread Stack
On Wed, Jun 26, 2013 at 6:57 AM, Jason Huang jason.hu...@icare.com wrote: My question is - is this kind of heartbeat expected and useful? Our normal use case involves fetching data to HBase table every 60 seconds or so. Could we stop that heartbeat and re-connect to zookeeper on the fly only

Installing HBase, what jar files from Hadoop need to match?

2013-06-26 Thread Tecno Brain
I'm trying to install HBase 0.94.8 just for testing purposes on a single node Hadoop cluster running on a Mac OS X with Hadoop 1.1.2 ( Pig 0.11.1 + Hive 0.11.0 ) I found the following paragraph in the HBase documentation: Because HBase depends on Hadoop, it bundles an instance of the

Re: Control connection behavior to zookeeper with HBase?

2013-06-26 Thread Jason Huang
cool. thanks Stack. On Wed, Jun 26, 2013 at 10:52 AM, Stack st...@duboce.net wrote: On Wed, Jun 26, 2013 at 6:57 AM, Jason Huang jason.hu...@icare.com wrote: My question is - is this kind of heartbeat expected and useful? Our normal use case involves fetching data to HBase table every 60

Re: Installing HBase, what jar files from Hadoop need to match?

2013-06-26 Thread Jean-Marc Spaggiari
Hi, If you try to run hbase in a standalone mode, you don't need anything. Download the tar.gz, export JAVA_HOME and run bin/start-hbase.sh ... JM 2013/6/26 Tecno Brain cerebrotecnolog...@gmail.com: I'm trying to install HBase 0.94.8 just for testing purposes on a single node Hadoop cluster

Re: Installing HBase, what jar files from Hadoop need to match?

2013-06-26 Thread Mohammad Tariq
Hello there, I don't think it is necessary anymore. It was the case for older versions of hadoop and hbase. Both these projects are much more mature now and work perfectly well without any jar transfer from one to another. But if you still face nay problem try copying hadoop-core and

Re: Installing HBase, what jar files from Hadoop need to match?

2013-06-26 Thread Tecno Brain
Thank you Tariq and JM. I didn't have to replace any files. I was able to run HBase in top of HDFS following (partially) the instructions for pseudo-distributed mode. I only had to change the port number to match the one used by my namenode in the file hbase-site.xml -Jorge On Wed, Jun 26,

Adding a new region server or splitting an old region in a Hash-partitioned HBase Data Store

2013-06-26 Thread Joarder KAMAL
May be a simple question to answer for the experienced HBase users and developers: If I use hash partitioning to evenly distribute write workloads into my region servers and later add a new region server to scale or split an existing region, then do I need to change my hash function and

Re: NullPointerException when opening a region on new table creation

2013-06-26 Thread Viral Bajaria
To close the loop here, I wasn't able to repro it again and it seems the issue was due to a race condition in create table commands. Eventually the tableinfo file was missing on HDFS and hence there was an exception storm. I fixed it by manually creating the file with the right definition and then