Skip to content

thheller/greek_architect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consider this a work in progress

HOWTO:

Install Cassandra (0.6.2+ required)

add:

<Keyspace Name="TwitterSpec">
  <ColumnFamily CompareWith="BytesType" Name="User_Profile" />
  <ColumnFamily CompareWith="TimeUUIDType" Name="User_Tweets" />
  <ColumnFamily CompareWith="TimeUUIDType" Name="User_Timeline" />
  <ColumnFamily CompareWith="LexicalUUIDType" Name="User_Followers" />
  <ColumnFamily CompareWith="LexicalUUIDType" Name="User_Following" />

  <ColumnFamily CompareWith="BytesType" Name="Tweet_Message" />


  <ReplicaPlacementStrategy>org.apache.cassandra.locator.RackUnawareStrategy</ReplicaPlacementStrategy>
  <ReplicationFactor>1</ReplicationFactor>
  <EndPointSnitch>org.apache.cassandra.locator.EndPointSnitch</EndPointSnitch>
</Keyspace> 

<Keyspace Name="GreekArchitectByExample">
  <ColumnFamily CompareWith="AsciiType" Name="User_Profile" />
  <ColumnFamily CompareWith="TimeUUIDType" Name="ByCreationDate_Users" />
  <ColumnFamily CompareWith="UTF8Type" Name="ByName_Users" />

  <ReplicaPlacementStrategy>org.apache.cassandra.locator.RackUnawareStrategy</ReplicaPlacementStrategy>
  <ReplicationFactor>1</ReplicationFactor>
  <EndPointSnitch>org.apache.cassandra.locator.EndPointSnitch</EndPointSnitch>
</Keyspace>

to storage-conf.xml

Run

gem install thrift
gem install msgpack
gem install json
gem install rspec --pre

git clone git://github.com/thheller/greek_architect.git
cd greek_architect

rspec examples/demo
rspec examples/twitter

About

currently unmaintained client for Cassandra (0.6 only)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published