You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Everton Lima <pe...@gmail.com> on 2013/02/25 19:06:56 UTC

Retrieving local data

Hi people,

I was needing to retrieve some data in a local machine that was running
cassandra.

I start the Cassandra's daemon with my java process, so now I need to
execute a CQL, but just in data that was storaged in that machine, is it
possible? How?

Thanks

-- 
Everton Lima Aleixo
Bacharel em Ciência da Computação pela UFG
Mestrando em Ciência da Computação pela UFG
Programador no LUPA

Re: Retrieving local data

Posted by aaron morton <aa...@thelastpickle.com>.
Yes. 
You can get the token ranges via astynax and only ask for rows that are within the token ranges. 

Cheers

-----------------
Aaron Morton
Freelance Cassandra Developer
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 28/02/2013, at 2:25 PM, Everton Lima <pe...@gmail.com> wrote:

> Ok aaron. But the problem is that I am running Cassandra 1.1.8. I am using it for the compatibility with Astyanax 1.56. So, it is possible in Cassandra 1.1.8, too?
> 
> 2013/2/28 aaron morton <aa...@thelastpickle.com>
> Take a look at the token function with the select statement http://www.datastax.com/docs/1.2/cql_cli/cql/SELECT
> 
> Cheers
> 
> -----------------
> Aaron Morton
> Freelance Cassandra Developer
> New Zealand
> 
> @aaronmorton
> http://www.thelastpickle.com
> 
> On 25/02/2013, at 10:06 AM, Everton Lima <pe...@gmail.com> wrote:
> 
>> Hi people,
>> 
>> I was needing to retrieve some data in a local machine that was running cassandra.
>> 
>> I start the Cassandra's daemon with my java process, so now I need to execute a CQL, but just in data that was storaged in that machine, is it possible? How?
>> 
>> Thanks
>> 
>> -- 
>> Everton Lima Aleixo
>> Bacharel em Ciência da Computação pela UFG
>> Mestrando em Ciência da Computação pela UFG
>> Programador no LUPA
>> 
> 
> 
> 
> 
> -- 
> Everton Lima Aleixo
> Bacharel em Ciência da Computação pela UFG
> Mestrando em Ciência da Computação pela UFG
> Programador no LUPA
> 


Re: Retrieving local data

Posted by Everton Lima <pe...@gmail.com>.
Ok aaron. But the problem is that I am running Cassandra 1.1.8. I am using
it for the compatibility with Astyanax 1.56. So, it is possible in
Cassandra 1.1.8, too?

2013/2/28 aaron morton <aa...@thelastpickle.com>

> Take a look at the token function with the select statement
> http://www.datastax.com/docs/1.2/cql_cli/cql/SELECT
>
> Cheers
>
> -----------------
> Aaron Morton
> Freelance Cassandra Developer
> New Zealand
>
> @aaronmorton
> http://www.thelastpickle.com
>
> On 25/02/2013, at 10:06 AM, Everton Lima <pe...@gmail.com> wrote:
>
> Hi people,
>
> I was needing to retrieve some data in a local machine that was running
> cassandra.
>
> I start the Cassandra's daemon with my java process, so now I need to
> execute a CQL, but just in data that was storaged in that machine, is it
> possible? How?
>
> Thanks
>
> --
> Everton Lima Aleixo
> Bacharel em Ciência da Computação pela UFG
> Mestrando em Ciência da Computação pela UFG
> Programador no LUPA
>
>
>


-- 
Everton Lima Aleixo
Bacharel em Ciência da Computação pela UFG
Mestrando em Ciência da Computação pela UFG
Programador no LUPA

Re: Retrieving local data

Posted by aaron morton <aa...@thelastpickle.com>.
Take a look at the token function with the select statement http://www.datastax.com/docs/1.2/cql_cli/cql/SELECT

Cheers

-----------------
Aaron Morton
Freelance Cassandra Developer
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 25/02/2013, at 10:06 AM, Everton Lima <pe...@gmail.com> wrote:

> Hi people,
> 
> I was needing to retrieve some data in a local machine that was running cassandra.
> 
> I start the Cassandra's daemon with my java process, so now I need to execute a CQL, but just in data that was storaged in that machine, is it possible? How?
> 
> Thanks
> 
> -- 
> Everton Lima Aleixo
> Bacharel em Ciência da Computação pela UFG
> Mestrando em Ciência da Computação pela UFG
> Programador no LUPA
>