Selaa lähdekoodia

Merge branch 'master' of ssh://git.sip-router.org/sip-router

Marius Bucur 13 vuotta sitten
vanhempi
commit
bc93a66c53

+ 13 - 8
modules/db_cassandra/README

@@ -10,12 +10,6 @@ Anca Vamanu
 
    <[email protected]>
 
-Edited by
-
-Alex Balashov
-
-   <[email protected]>
-
    Copyright © 2012 1&1 Internet AG
      __________________________________________________________________
 
@@ -94,8 +88,19 @@ Chapter 1. Admin Guide
    You will find the schemas for location, subscriber and version tables
    in utils/kamctl/dbcassandra directory. You have to provide the path to
    the directory containing the table definitions by setting the module
-   parameter schema_path. NOTE that there is no need to configure a table
-   metadata in Cassandra cluster.
+   parameter schema_path.
+
+   There is no need to configure a table metadata in Cassandra cluster.
+   You only need to define a keyspace with the name of the database and
+   for each table a column family inside that keyspace with the name of
+   the table. The comparator and validators should be either UTF8Type or
+   ASCIIType. Example:
+   ...
+   create keyspace openser;
+   use openser;
+   create column family 'location' with comparator='UTF8Type' and
+default_validation_class='UTF8Type' and key_validation_class='UTF8Type';
+   ...
 
    Special attention was given to performance in Cassandra. Therefore, the
    implementation uses only the native row indexing in Cassandra and no

+ 0 - 5
modules/db_cassandra/doc/db_cassandra.xml

@@ -23,11 +23,6 @@
 				<surname>Vamanu</surname>
 				<email>[email protected]</email>
 			</editor>
-			<editor>
-				<firstname>Alex</firstname>
-				<surname>Balashov</surname>
-				<email>[email protected]</email>
-			</editor>
 		</authorgroup>
 		<copyright>
 			<year>2012</year>

+ 16 - 1
modules/db_cassandra/doc/db_cassandra_admin.xml

@@ -52,8 +52,23 @@
 		utils/kamctl/dbcassandra directory. You have to provide the path to the 
 		directory containing the table definitions by setting the module parameter
 		schema_path.
-		NOTE that there is no need to configure a table metadata in Cassandra cluster.
 	</para>
+	<para>
+		There is no need to configure a table metadata in Cassandra cluster.
+		You only need to define a keyspace with the name of the database and for each table
+		a column family inside that keyspace with the name of the table. The comparator
+		and validators should be either UTF8Type or ASCIIType.
+		Example:
+	</para>
+<programlisting format="linespecific">
+   ...
+   create keyspace openser;
+   use openser;
+   create column family 'location' with comparator='UTF8Type' and 
+default_validation_class='UTF8Type' and key_validation_class='UTF8Type';
+   ...
+</programlisting>
+
 	<para>
 		Special attention was given to performance in Cassandra. Therefore, the
 		implementation uses only the native row indexing in Cassandra and no secondary