You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by al...@ceid.upatras.gr on 2010/12/21 15:00:01 UTC
Create CF in Mapper's setup
I'd like to have a Hadoop MapReduce job create a column family in the
setup() method of the Mapper, if it doesn't already exist. How would I do
that correctly? I thought of using CassandraServer's methods (which is a
bit of a hack, I know), but they are private, so I suppose there is a
better way. Any help?
Alexander Altanis
Re: Create CF in Mapper's setup
Posted by al...@ceid.upatras.gr.
Thank you, I hadn't realized I should use thrift.
Alexander Altanis
> Download the source version of the latest 0.7 from
> http://cassandra.apache.org/download/ and take a look at the
> contrib/word_count example. Specifically, in the
> contrib/word_count/src/WordCountSetup.java file, there are examples of how
> to create a column family using thrift.
>
> On Dec 21, 2010, at 8:00 AM, altanis@ceid.upatras.gr wrote:
>
>> I'd like to have a Hadoop MapReduce job create a column family in the
>> setup() method of the Mapper, if it doesn't already exist. How would I
>> do
>> that correctly? I thought of using CassandraServer's methods (which is a
>> bit of a hack, I know), but they are private, so I suppose there is a
>> better way. Any help?
>>
>> Alexander Altanis
>
>
Re: Create CF in Mapper's setup
Posted by Jeremy Hanna <je...@gmail.com>.
Download the source version of the latest 0.7 from http://cassandra.apache.org/download/ and take a look at the contrib/word_count example. Specifically, in the contrib/word_count/src/WordCountSetup.java file, there are examples of how to create a column family using thrift.
On Dec 21, 2010, at 8:00 AM, altanis@ceid.upatras.gr wrote:
> I'd like to have a Hadoop MapReduce job create a column family in the
> setup() method of the Mapper, if it doesn't already exist. How would I do
> that correctly? I thought of using CassandraServer's methods (which is a
> bit of a hack, I know), but they are private, so I suppose there is a
> better way. Any help?
>
> Alexander Altanis