Using HBaseWD with Thrift

24 views
Skip to first unread message

Alex Baranau

unread,
Aug 3, 2012, 9:52:24 PM8/3/12
to hba...@googlegroups.com
RE using HBaseWD with Thrift (changed subject for this part of the thread to be about Thrift).

There's currently no ports to any of the scripting languages (like Python and such). I've added an issue to HBaseWD [1], but I can't promise it will get attention from me, as I'm mostly using Java in the development of the systems..

If you want to work on this, I will be happy to provide any guidance.

Alex Baranau
------
Sematext :: http://sematext.com/ :: Hadoop - HBase - ElasticSearch - Solr


On Fri, Aug 3, 2012 at 12:44 PM, syed kather <in.a...@gmail.com> wrote:
Team,
   How to do Pre splitting  for HBase table . As i mention in the earlier mail that my rowkey is followed by incremental sequence


when i had created a table like give below . I had notice the startkey and endkey is looking like that

bin/hbase org.apache.hadoop.hbase.util.RegionSplitter ObjectSequence4 -c 3 -f SequenceFamily:ObjectArray:UserArray

Name Region Server Start Key End Key Requests
ObjectSequence4,,1344011081570.941ae89b0c729c924b80d8cf8b8fa4b8. slave1:60030
2aaaaaaa 31670
ObjectSequence4,2aaaaaaa,1344011081570.f4c5647be69af33116fc214f913bb312. slave2:60030 2aaaaaaa 55555554 0
ObjectSequence4,55555554,1344011081570.e5bc298b6915f2b9c42bb28e31c8e640. master:60030 55555554
0
 Sorry if the question is so simple . I searched in net but i couldnt able to find right one

 Other than that i have another doubt
  I am calling the incrementColumnValue from ThriftAPI . How to call this custom incrementColumnValue   function from ThriftAPI and as i know that 
RowKeyDistributorByOneBytePrefix keyDistributor = new RowKeyDistributorByOneBytePrefix(bucketsCount);
we need to initialize this object only at the begining . I dont have idea how to do that

Now my IncrementColumnValue function looks like

public byte[] incrementColumnValue(final byte[] row, RowKeyDistributorByOneBytePrefix keyDistributor,final byte[] family, final byte[] qualifier, final long amount, boolean writeToWAL, byte bucketsCount) throws IOException
    {
        byte[] key=keyDistributor.getDistributedKey(Bytes.toBytes(incrementColumnValue(keyDistributor.getOriginalKey(row), family, qualifier, amount, true)));
        return key;

    }

syed kather

unread,
Aug 4, 2012, 2:37:51 PM8/4/12
to hba...@googlegroups.com

Hi Alex,
    Thanks for your response ..
     Yes  I would like to work on this .Let me know the process .

Thanks and regards
Syed Abdul kather
send from Samsung S3

syed kather

unread,
Aug 5, 2012, 1:20:30 PM8/5/12
to hba...@googlegroups.com

As i had disucussed in this earlier mail . I am very much interested to contribute .. i will further update you once it started working .. this is my first contribution too. Let me know is there any process i need to follow

Syed Abdul kather
send from Samsung S3

Alex Baranau

unread,
Aug 6, 2012, 3:57:47 PM8/6/12
to hba...@googlegroups.com
That would be really great. There's no formal process: just fork the sources, add needed code and when ready, create a pool request thru github.

But first I think we should may be discuss what is the plan (in the comments at: https://github.com/sematext/HBaseWD/issues/16). I.e. how do you see it's going to be implemented. Just added small comment there. 

Thank you!

Alex Baranau
------
Sematext :: http://sematext.com/ :: Hadoop - HBase - ElasticSearch - Solr

--
Alex Baranau
------
Sematext :: http://blog.sematext.com/ :: Hadoop - HBase - ElasticSearch - Solr

Reply all
Reply to author
Forward
0 new messages