diff --git a/Filer-Cassandra-Setup.md b/Filer-Cassandra-Setup.md index b98c9b6..884b961 100644 --- a/Filer-Cassandra-Setup.md +++ b/Filer-Cassandra-Setup.md @@ -18,10 +18,11 @@ create keyspace seaweedfs WITH replication = { use seaweedfs; CREATE TABLE filemeta ( + dirhash bigint, directory varchar, name varchar, meta blob, - PRIMARY KEY (directory, name) + PRIMARY KEY ((dirhash, directory), name) ) WITH CLUSTERING ORDER BY (name ASC); ``` @@ -33,7 +34,7 @@ Try run ```weed filer -h``` to see an example filer.toml file. The file should b Here is the shortest example for Cassandra ```bash -[cassandra] +[cassandra2] enabled = true keyspace="seaweedfs" hosts=[ diff --git a/Super-Large-Directories.md b/Super-Large-Directories.md index a02bcc7..f905ab1 100644 --- a/Super-Large-Directories.md +++ b/Super-Large-Directories.md @@ -61,7 +61,7 @@ The consequences are: In `filer.toml` for Cassandra/Redis, there is an option `superLargeDirectories`. For example, if you will have a lot of user data under `/home/users` ``` -[cassandra] +[cassandra2] ... superLargeDirectories = [ "/home/users",