mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-16 03:29:01 +08:00
15 lines
320 B
Plaintext
15 lines
320 B
Plaintext
1. create a keyspace
|
|
|
|
CREATE KEYSPACE seaweedfs WITH replication = {'class':'SimpleStrategy', 'replication_factor' : 1};
|
|
|
|
2. create filemeta table
|
|
|
|
USE seaweedfs;
|
|
|
|
CREATE TABLE filemeta (
|
|
directory varchar,
|
|
name varchar,
|
|
meta blob,
|
|
PRIMARY KEY (directory, name)
|
|
) WITH CLUSTERING ORDER BY (name ASC);
|