Re: Usage of getKeyRange method

2013-05-27 Thread Renato Marroquín Mogrovejo
eys are null then. > > Thank you, > Andrey > > > On Fri, May 24, 2013 at 6:53 AM, Renato Marroquín Mogrovejo < > renatoj.marroq...@gmail.com> wrote: > >> Hi all, >> >> I am trying to migrate some some Hector's RangeSlicesQuery to Astyanax, &g

Re: Hector vs Astyanax dependency issue

2013-05-26 Thread Renato Marroquín Mogrovejo
t; > it's also the sad fact that too many popular open source projects have way > more external dependencies than necessary. As an apache committer I've seen > this across most java open source projects. > > > On Sun, May 26, 2013 at 9:53 AM, Renato Marroquín Mogrovejo

Re: Hector vs Astyanax dependency issue

2013-05-26 Thread Renato Marroquín Mogrovejo
t >> over time you always hit an issue like this since guava gets included >> everywhere. As a result I commonly end up stripping out guava in out >> projects. >> >> ::Rant over:: >> >> Your only hope is to build a fork of one hector or astynax that uses th

Hector vs Astyanax dependency issue

2013-05-24 Thread Renato Marroquín Mogrovejo
Hi all, I am using Astyanax and Hector client within an application but right now I am hitting a dependency issue [1] related to Guava version being used by Hector and Astyanax which makes Maven headache. I have taken it out as exclusions within my poms but I still get the dependency issue. Do you

Usage of getKeyRange method

2013-05-24 Thread Renato Marroquín Mogrovejo
Hi all, I am trying to migrate some some Hector's RangeSlicesQuery to Astyanax, but the only method I have found is getKeyRange[1] which in turn has four parameters startKey,endKey, startToken, endToken, and count. The thing is that I am not sure what are the startToken and endToken parameters u

Re: hector or astyanax

2013-05-05 Thread Renato Marroquín Mogrovejo
Hey Shamim, Why do you say that Java-Driver has better performance over Hector or Astyanax? Is there any reasons for this? Thanks. Renato M. 2013/5/5 Shamim : > Hi, > Astyanax is just a refactoring of Hector and implements a few common > cassandra use cases. Very easy to use api. In Astyanax

Re: Hadoop+Cassandra

2013-03-11 Thread Renato Marroquín Mogrovejo
Hi there, Check this out [1]. It´s kinda old but I think it will help you get started. Renato M. [1] http://www.datastax.com/docs/0.7/map_reduce/hadoop_mr 2013/3/11 oualid ait wafli : > Hi > > I need a tutorial for deployong Hadoop+Cassandra on single-nodes > > Thanks

Re: Netflix/Astynax Client for Cassandra

2013-02-10 Thread Renato Marroquín Mogrovejo
Sorry to hijack into this email thread, but what are the use cases/benefits of using the new binary protocol? and why doesn't Cassandra offer a drive as a project driver? Renato M. 2013/2/8 aaron morton : > I'm going to guess Netflix are running Astynax in production with Cassandra > 1.1. > > ch

Composite Keys Query

2013-01-17 Thread Renato Marroquín Mogrovejo
Hi all, I am using some composite keys to get just some specific composite columns names which I am using as follows: create column family video_event with comparator = 'CompositeType(UTF8Type,UTF8Type)' and key_validation_class = 'UTF8Type' and default_validation_class = 'UTF8Type'; colu

Re: Query column names

2013-01-16 Thread Renato Marroquín Mogrovejo
After searching for a while I found what I was looking for [1] Hope it helps to someone else (: Renato M. [1] http://www.datastax.com/dev/blog/introduction-to-composite-columns-part-1 2013/1/16 Renato Marroquín Mogrovejo : > What I mean is that if there is a way of doing this but using Hec

Re: Query column names

2013-01-16 Thread Renato Marroquín Mogrovejo
e, "UTF-8")); } conn.close(); System.out.println("All done."); } --------- Thanks! 2013/1/16 Renato Marroquín Mogrovejo : > Hi, > > I am facing some problems while retrieving a som

Query column names

2013-01-16 Thread Renato Marroquín Mogrovejo
Hi, I am facing some problems while retrieving a some events from a column family. I am using as column family name the event name plus the timestamp of when it occurred. The thing is that now I want to find out the latest event and I don't how to query asking for the last event without a RangeSli

Re: read path, I have missed something

2013-01-16 Thread Renato Marroquín Mogrovejo
Thanks for the explanation Sylvain! 2013/1/16 Sylvain Lebresne : >> I mean if a node is down, then >> we get that node up and running again, wouldn't it be synchronized >> automatically? > > > It will, thanks to hinted handoff (not gossip, gossip only handle the ring > topology and a bunch of meta

Re: read path, I have missed something

2013-01-16 Thread Renato Marroquín Mogrovejo
Hi there, I am sorry to get into this thread with more questions but isn't the gossip protocol in charge of making the read_repair automatically anytime a new node comes into the ring? I mean if a node is down, then we get that node up and running again, wouldn't it be synchronized automatically?

Re: Retrieving data between two timestamps

2013-01-15 Thread Renato Marroquín Mogrovejo
but I don't recall any API available (Hector or > otherwise) which allows you to search based on the timestamp value. > > On Tue, Jan 15, 2013 at 11:51 AM, Renato Marroquín Mogrovejo > wrote: >> Hi Aaron, >> >> Thanks for answering! Yeah that is what I did but then

Re: Retrieving data between two timestamps

2013-01-15 Thread Renato Marroquín Mogrovejo
: > I don't think so. Usually you'd use either a Time-UUID or something > like epoch time as the column name to get a range of columns by time > range. > > On Tue, Jan 15, 2013 at 10:46 AM, Renato Marroquín Mogrovejo > wrote: >> Hi all, >> >> I am hav

Retrieving data between two timestamps

2013-01-15 Thread Renato Marroquín Mogrovejo
Hi all, I am having some problems while retrieving some events from a column family I have created. My column family has been created as follows: create column family click_event WITH comparator = UTF8Type and column_metadata = [ {column_name: event, validation_class: UTF8Type} ]; My table i

Re: Retrieving all columns from a result

2013-01-14 Thread Renato Marroquín Mogrovejo
ringSerializer, stringSerializer) >> .setColumnFamily("columnFamily1") >> .setRowCount(pCount) >> .setRange("", "", true, Integer.MAX_VALUE); > > > Try this, if it works for you. > > -Vivek > >

Retrieving all columns from a result

2013-01-14 Thread Renato Marroquín Mogrovejo
Hi all, I am trying to get all columns from a certain number of records I am fetching. I am using the RangeSlicesQuery to achieve this, but it forces me to set how many columns I want to be retrieved. RangeSlicesQuery rangeSlicesQuery = HFactory .createRangeSlicesQuery(keyspace,

Re: Cassandra supported Avro data types

2013-01-03 Thread Renato Marroquín Mogrovejo
used to store pretty > much anything. So you could serialise the avro types and store them as byte > streams if you wanted to. > > Hope that helps. > > - > Aaron Morton > Freelance Cassandra Developer > New Zealand > > @aaronmorton > http://www.thelastpickle.com > > On 4/01/2013, at 7:22 AM, Renato Marroquín Mogrovejo > wrote: > > Hi all, > > I have started playing around with Cassandra and I am not sure which > Avro data types Cassandra supports. Is there any type of documentation > or could anyone please help me on this doubt of mine? > Thanks! > > > Renato M. > >

Cassandra supported Avro data types

2013-01-03 Thread Renato Marroquín Mogrovejo
Hi all, I have started playing around with Cassandra and I am not sure which Avro data types Cassandra supports. Is there any type of documentation or could anyone please help me on this doubt of mine? Thanks! Renato M.