Add cql jar to graphadmin 02/71702/1
authorKajur, Harish (vk250x) <vk250x@att.com>
Thu, 1 Nov 2018 22:49:20 +0000 (18:49 -0400)
committerKajur, Harish (vk250x) <vk250x@att.com>
Thu, 1 Nov 2018 22:49:25 +0000 (18:49 -0400)
Issue-ID: AAI-1834
Change-Id: Ib41b52ead6800475af3c8def9373a2c84150d871
Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
pom.xml
src/main/java/org/onap/aai/schema/GenTester.java
src/main/resources/etc/appprops/janusgraph-cached.properties
src/main/resources/etc/appprops/janusgraph-realtime.properties

diff --git a/pom.xml b/pom.xml
index eb4b986..75ddc14 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
                 </exclusion>
             </exclusions>
         </dependency>
+        <dependency>
+            <groupId>org.janusgraph</groupId>
+            <artifactId>janusgraph-cql</artifactId>
+           <version>${janusgraph.version}</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.slf4j</groupId>
+                    <artifactId>slf4j-log4j12</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
         <!-- End of Janus Graph Dependencies -->
         <!-- Start of Tinkerpop Dependencies -->
         <dependency>
             <artifactId>tinkergraph-gremlin</artifactId>
             <version>${gremlin.version}</version>
         </dependency>
+
+        <dependency>
+            <groupId>org.antlr</groupId>
+            <artifactId>antlr4-runtime</artifactId>
+            <version>${antlr.version}</version>
+        </dependency>
         <dependency>
             <groupId>org.apache.tinkerpop</groupId>
             <artifactId>gremlin-core</artifactId>
index 812c7b0..e79256f 100644 (file)
@@ -73,6 +73,8 @@ public class GenTester {
                );
 
                try {
+            LOGGER.info("GenTester uses either cql jar or Cassandra jar");
+
                        AAIConfig.init();
                if (args != null && args.length > 0 ){
                        if( "genDbRulesOnly".equals(args[0]) ){
index c90816d..23e5c3d 100644 (file)
@@ -33,4 +33,21 @@ cache.db-cache-time = 180000
 cache.db-cache-size = 0.3
 
 #load graphson file on startup
-load.snapshot.file=false
\ No newline at end of file
+load.snapshot.file=false
+
+#storage.backend=cql
+#storage.hostname=host1,host2,host3
+#storage.cql.replication-strategy-class=NetworkTopologyStrategy
+#storage.cql.replication-strategy-options=options
+# for single datacenter cluster
+#storage.cql.replication-factor=3
+
+#storage.cql.keyspace=aaigraph_single_dc
+#storage.cql.only-use-local-consistency-for-system-operations=true
+#storage.cql.cluster-name=clusterName
+#storage.cql.local-datacenter=dataCenter
+#storage.cql.read-consistency-level=QUORUM
+#storage.cql.write-consistency-level=QUORUM
+#storage.connection-timeout=100000
+#cache.tx-cache-size = 1000000
+#metrics.enabled=true
index ccbe5ba..b45d7ee 100644 (file)
@@ -30,4 +30,21 @@ storage.hbase.ext.zookeeper.znode.parent=/hbase-unsecure
 cache.db-cache = false
 
 #load graphson file on startup
-load.snapshot.file=false
\ No newline at end of file
+load.snapshot.file=false
+
+#storage.backend=cql
+#storage.hostname=host1,host2,host3
+#storage.cql.replication-strategy-class=NetworkTopologyStrategy
+#storage.cql.replication-strategy-options=options
+# for single datacenter cluster
+#storage.cql.replication-factor=3
+
+#storage.cql.keyspace=aaigraph_single_dc
+#storage.cql.only-use-local-consistency-for-system-operations=true
+#storage.cql.cluster-name=clusterName
+#storage.cql.local-datacenter=dataCenter
+#storage.cql.read-consistency-level=QUORUM
+#storage.cql.write-consistency-level=QUORUM
+#storage.connection-timeout=100000
+#cache.tx-cache-size = 1000000
+#metrics.enabled=true