You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Badrinarayanan S <ba...@fifthgentech.com> on 2011/06/14 06:20:59 UTC
PIG Cassandra Consistency Level
Hi, can anyone let me know the configuration steps required to read data
from Cassandra using PIG with consistency level of LOCAL_QUORUM.
Thanks,
badri
RE: PIG Cassandra Consistency Level
Posted by Badrinarayanan S <ba...@fifthgentech.com>.
Thanks, it helped.
Regards,
badri
-----Original Message-----
From: Dmitriy Ryaboy [mailto:dvryaboy@gmail.com]
Sent: Tuesday, June 14, 2011 10:56 AM
To: user@pig.apache.org
Subject: Re: PIG Cassandra Consistency Level
you can set them in a pig script, too.
set my.property myvalue
Or via command line
pig -Dmy.propert=myvalue
Or (as soon as I get a patch tested and committed) you'll be able to
set them in pig.properties....
D
On Mon, Jun 13, 2011 at 9:42 PM, Jeremy Hanna
<je...@gmail.com> wrote:
> You need to set the property in your hadoop configuration:
> cassandra.consistencylevel.read
> to LOCAL_QUORUM.
>
> All of the properties you can set are in the
org.apache.cassandra.hadoop.ConfigHelper class. You can call that directly
with Java/MapReduce or use the properties defined at the top in your hadoop
configuration. See:
> For 0.7.6:
http://svn.apache.org/repos/asf/cassandra/tags/cassandra-0.7.6-2/src/java/or
g/apache/cassandra/hadoop/ConfigHelper.java
> For 0.8.0:
http://svn.apache.org/repos/asf/cassandra/tags/cassandra-0.8.0/src/java/org/
apache/cassandra/hadoop/ConfigHelper.java
> (though they should be nearly identical)
>
>
> On Jun 13, 2011, at 11:20 PM, Badrinarayanan S wrote:
>
>> Hi, can anyone let me know the configuration steps required to read data
>> from Cassandra using PIG with consistency level of LOCAL_QUORUM.
>>
>>
>>
>> Thanks,
>>
>> badri
>>
>
>
Re: PIG Cassandra Consistency Level
Posted by Dmitriy Ryaboy <dv...@gmail.com>.
you can set them in a pig script, too.
set my.property myvalue
Or via command line
pig -Dmy.propert=myvalue
Or (as soon as I get a patch tested and committed) you'll be able to
set them in pig.properties....
D
On Mon, Jun 13, 2011 at 9:42 PM, Jeremy Hanna
<je...@gmail.com> wrote:
> You need to set the property in your hadoop configuration:
> cassandra.consistencylevel.read
> to LOCAL_QUORUM.
>
> All of the properties you can set are in the org.apache.cassandra.hadoop.ConfigHelper class. You can call that directly with Java/MapReduce or use the properties defined at the top in your hadoop configuration. See:
> For 0.7.6: http://svn.apache.org/repos/asf/cassandra/tags/cassandra-0.7.6-2/src/java/org/apache/cassandra/hadoop/ConfigHelper.java
> For 0.8.0: http://svn.apache.org/repos/asf/cassandra/tags/cassandra-0.8.0/src/java/org/apache/cassandra/hadoop/ConfigHelper.java
> (though they should be nearly identical)
>
>
> On Jun 13, 2011, at 11:20 PM, Badrinarayanan S wrote:
>
>> Hi, can anyone let me know the configuration steps required to read data
>> from Cassandra using PIG with consistency level of LOCAL_QUORUM.
>>
>>
>>
>> Thanks,
>>
>> badri
>>
>
>
Re: PIG Cassandra Consistency Level
Posted by Jeremy Hanna <je...@gmail.com>.
You need to set the property in your hadoop configuration:
cassandra.consistencylevel.read
to LOCAL_QUORUM.
All of the properties you can set are in the org.apache.cassandra.hadoop.ConfigHelper class. You can call that directly with Java/MapReduce or use the properties defined at the top in your hadoop configuration. See:
For 0.7.6: http://svn.apache.org/repos/asf/cassandra/tags/cassandra-0.7.6-2/src/java/org/apache/cassandra/hadoop/ConfigHelper.java
For 0.8.0: http://svn.apache.org/repos/asf/cassandra/tags/cassandra-0.8.0/src/java/org/apache/cassandra/hadoop/ConfigHelper.java
(though they should be nearly identical)
On Jun 13, 2011, at 11:20 PM, Badrinarayanan S wrote:
> Hi, can anyone let me know the configuration steps required to read data
> from Cassandra using PIG with consistency level of LOCAL_QUORUM.
>
>
>
> Thanks,
>
> badri
>