Skip to content
cassandra demo app -- import a filesystem into cassandra and browse it, with versioning
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
public
views
README.md
display_tree.rb
file_tree.rb

README.md

Cassandra Filesystem Browser

This is a quick demo app for my presentation on Cassandra for URUG, July 2010. Run file_tree.rb my_username /Root/of/filesystem to import your filesystem into Cassandra. Then browse it with the display_tree.rb sinatra app.

Run the same file_tree.rb command again to walk through the filesystem and update Cassandra with any changed files. This currently does not detect deletes.

Cassandra 0.6 Schema

<Keyspace Name="FileTree">
  <ColumnFamily Name="User" />
  <ColumnFamily Name="Directories" ColumnType="Super" CompareSubcolumnsWith="UTF8Type" />
  <ColumnFamily Name="Files" ColumnType="Super" CompareWith="LongType" />
  <ColumnFamily Name="FileNameSearch" CompareWith="UTF8Type" />

  <ReplicaPlacementStrategy>org.apache.cassandra.locator.RackUnawareStrategy</ReplicaPlacementStrategy>

  <ReplicationFactor>1</ReplicationFactor>

  <EndPointSnitch>org.apache.cassandra.locator.EndPointSnitch</EndPointSnitch>
</Keyspace>

Required Gems

  • cassandra
  • sinatra
  • haml
Something went wrong with that request. Please try again.