seaweedfs/weed/filer/cassandra/README.txt

15 lines
320 B
Plaintext
Raw Normal View History

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