seaweedfs/weed/filer/cassandra2
2025-02-26 17:29:22 -08:00
..
cassandra_store_kv.go add cassandra2 (#6582) 2025-02-26 17:29:22 -08:00
cassandra_store.go add cassandra2 (#6582) 2025-02-26 17:29:22 -08:00
README.txt add cassandra2 (#6582) 2025-02-26 17:29:22 -08:00

1. create a keyspace

CREATE KEYSPACE seaweedfs WITH replication = {'class':'SimpleStrategy', 'replication_factor' : 1};

2. create filemeta table

 USE seaweedfs;

 CREATE TABLE filemeta (
    dirhash bigint,
    directory varchar,
    name varchar,
    meta blob,
    PRIMARY KEY ((dirhash, directory), name)
 ) WITH CLUSTERING ORDER BY (name ASC);