You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
320 B

7 years ago
7 years ago
7 years ago
  1. 1. create a keyspace
  2. CREATE KEYSPACE seaweedfs WITH replication = {'class':'SimpleStrategy', 'replication_factor' : 1};
  3. 2. create filemeta table
  4. USE seaweedfs;
  5. CREATE TABLE filemeta (
  6. directory varchar,
  7. name varchar,
  8. meta blob,
  9. PRIMARY KEY (directory, name)
  10. ) WITH CLUSTERING ORDER BY (name ASC);