Re: How to generate UUID in real time environment for Accumulo

2015-06-24 Thread mohit.kaushik
On 06/23/2015 06:44 PM, Keith Turner wrote: row=time_client id_client counter this will definitely generate a UUID but if I use 14 digits for time + 12 digits for client_id + say 6 digits for client_counter which makes the UUID 32 bit long. I want UUID to be 16 digits long. Can you suggest

Re: Abnormal behaviour of custom iterator in getting entries

2015-06-24 Thread Dylan Hutchison
Chiming in on one of Josh's comments Since you're passing in what are likely multiple, disjoint ranges, I'm not sure you're going to get much of a performance optimization out of a custom iterator in this case. After each seek, your iterator would need to return the entries that it summed in

Re: Connection pooling in accumulo

2015-06-24 Thread Dylan Hutchison
Don't forget the MultiTableBatchWriter http://accumulo.apache.org/1.7/apidocs/org/apache/accumulo/core/client/MultiTableBatchWriter.html =) On Wed, Jun 24, 2015 at 2:58 PM, Josh Elser josh.el...@gmail.com wrote: Yep, connections to TabletServers and the Master are automatically pooled. There

Re: How to generate UUID in real time environment for Accumulo

2015-06-24 Thread Keith Turner
Could look into using Lexicoders. The following program prints out 19. However this will vary depending on how many leading 0 bytes the longs have, because those are dropped. long time = System.currentTimeMillis(); ListLexicoderLong ll = new ListLexicoderLong(new ULongLexicoder());

Re: How to generate UUID in real time environment for Accumulo

2015-06-24 Thread Russ Weeks
Hi, Mohit, I'm not sure what you mean when you say, which makes the UUID 32 bit long. I want UUID to be 16 digits long Do you want the UUID to be 16 bytes long, giving you 128 bits to work with? Do you care if the UUID is human-readable (ie. ascii text) or not? If not, take a look at how

Connection pooling in accumulo

2015-06-24 Thread vaibhav thapliyal
Hi everyone, I wanted to ask if Accumulo supports connection pooling? If yes is there something in the JAVA api that can be used to make use of it? Thanks Vaibhav

Re: Connection pooling in accumulo

2015-06-24 Thread Josh Elser
Yep, connections to TabletServers and the Master are automatically pooled. There shouldn't be anything you have to do yourself -- it should just work out of the box. On Wed, Jun 24, 2015 at 2:54 PM, vaibhav thapliyal vaibhav.thapliyal...@gmail.com wrote: Hi everyone, I wanted to ask if