This is pretty up to date
http://www.packtpub.com/cassandra-apache-high-performance-cookbook/book

A

-----------------
Aaron Morton
Freelance Cassandra Developer
@aaronmorton
http://www.thelastpickle.com

On 22/09/2011, at 7:07 PM, Maki Watanabe wrote:

> You have a chance to write it by your own. I'll buy one :-)
> 
> maki
> 
> 2011/9/22 Sajith Kariyawasam <saj...@gmail.com>:
>> Thanks Maki.
>> If you came across with any other book supporting latest Cassandara
>> versions, pls let me know.
>> 
>> On Thu, Sep 22, 2011 at 12:03 PM, Maki Watanabe <watanabe.m...@gmail.com>
>> wrote:
>>> 
>>> The book is a bit out dated now.
>>> You should better to use cassandra-cli to define your application schema.
>>> Please refer to conf/schema-sample.txt and help in cassandra-cli.
>>> 
>>> % cassandra-cli
>>> [default@unknown] help;
>>> [default@unknown] help create keyspace;
>>> [default@unknown] help create column family;
>>> 
>>> You can load schema defined in text file by cassandra-cli:
>>> % cassandra-cli -h host -p port --file your-schema-definition.txt
>>> 
>>> maki
>>> 
>>> 
>>> 
>>> 2011/9/22 Sajith Kariyawasam <saj...@gmail.com>:
>>>> Hi all,
>>>> Im refering to the book authored by Eben Hewitt, named Cassandra The
>>>> Definitive Guide
>>>> 
>>>> There, in the Sample Application chapter (Chapter 4), example 4.1, a
>>>> sample
>>>> schema is given in a file named "cassandra.yaml". (I have mentioned it
>>>> below)
>>>> I'm using Cassandra 0.8.6 version.
>>>> My question is that, whether the given format of the file is correct? if
>>>> so,
>>>> where i have to mention in the cassandra configuration to load this yaml
>>>> file?
>>>> because the format of the sample schema  comes with Cassandra
>>>> (conf/schema-sample.txt) is bit different from the sample given in the
>>>> book.
>>>> 
>>>> Schema definition in cassandra.yaml
>>>> ================================
>>>> keyspaces:
>>>> - name: Hotelier
>>>> replica_placement_strategy:
>>>> org.apache.cassandra.locator.RackUnawareStrategy
>>>> replication_factor: 1
>>>> column_families:
>>>> - name: Hotel
>>>> compare_with: UTF8Type
>>>> - name: HotelByCity
>>>> compare_with: UTF8Type
>>>> - name: Guest
>>>> compare_with: BytesType
>>>> - name: Reservation
>>>> compare_with: TimeUUIDType
>>>> - name: PointOfInterest
>>>> column_type: Super
>>>> compare_with: UTF8Type
>>>> compare_subcolumns_with: UTF8Type
>>>> - name: Room
>>>> compare_with: BytesType
>>>> compare_subcolumns_with: BytesType
>>>> - name: RoomAvailability
>>>> column_type: Super
>>>> compare_with: BytesType
>>>> compare_subcolumns_with: BytesType
>>>> 
>>>> --
>>>> Best Regards
>>>> Sajith
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> w3m
>> 
>> 
>> 
>> --
>> Best Regards
>> Sajith
>> 
> 
> 
> 
> -- 
> w3m

Reply via email to