seaweedfs/weed/filer/cassandra/README.txt

15 lines
320 B
Plaintext
Raw Normal View History

2018-05-27 15:01:15 +08:00
1. create a keyspace
CREATE KEYSPACE seaweedfs WITH replication = {'class':'SimpleStrategy', 'replication_factor' : 1};
2. create filemeta table
2018-05-28 02:14:12 +08:00
USE seaweedfs;
2018-05-27 15:01:15 +08:00
CREATE TABLE filemeta (
directory varchar,
name varchar,
meta blob,
PRIMARY KEY (directory, name)
) WITH CLUSTERING ORDER BY (name ASC);