gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djkevi...@apache.org
Subject [05/32] gora git commit: Add support for aerospike in tutorial
Date Thu, 27 Jul 2017 18:45:31 GMT
Add support for aerospike in tutorial


Project: http://git-wip-us.apache.org/repos/asf/gora/repo
Commit: http://git-wip-us.apache.org/repos/asf/gora/commit/3900a41d
Tree: http://git-wip-us.apache.org/repos/asf/gora/tree/3900a41d
Diff: http://git-wip-us.apache.org/repos/asf/gora/diff/3900a41d

Branch: refs/heads/master
Commit: 3900a41d9a517025618f346b57bd0c5a1fbe89bd
Parents: 8571ad9
Author: nishadi <ndimeshi@gmail.com>
Authored: Sun Jun 18 14:14:34 2017 +0530
Committer: nishadi <ndimeshi@gmail.com>
Committed: Sun Jun 18 14:14:34 2017 +0530

----------------------------------------------------------------------
 gora-tutorial/conf/gora-aerospike-mapping.xml | 30 ++++++++++++++++++++++
 gora-tutorial/conf/gora.properties            |  3 ++-
 gora-tutorial/pom.xml                         |  4 +++
 3 files changed, 36 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/gora/blob/3900a41d/gora-tutorial/conf/gora-aerospike-mapping.xml
----------------------------------------------------------------------
diff --git a/gora-tutorial/conf/gora-aerospike-mapping.xml b/gora-tutorial/conf/gora-aerospike-mapping.xml
new file mode 100644
index 0000000..676f52c
--- /dev/null
+++ b/gora-tutorial/conf/gora-aerospike-mapping.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+
+<!--
+  Gora Mapping file for Aerospike Backend
+-->
+<gora-otd>
+
+  <policy name="write" gen="IGNORE" exists="CREATE" key="DIGEST" retry="ONCE" timeout="1000"/>
+  <policy name="read" key="DIGEST" timeout="1000"/>
+
+  <class name="org.apache.gora.tutorial.log.generated.Pageview" keyClass="java.lang.Long"
set="AccessLog" namespace = "test" />
+  <class name="org.apache.gora.tutorial.log.generated.MetricDatum" keyClass="java.lang.String"
set="Metrics" namespace = "test"/>
+
+</gora-otd>

http://git-wip-us.apache.org/repos/asf/gora/blob/3900a41d/gora-tutorial/conf/gora.properties
----------------------------------------------------------------------
diff --git a/gora-tutorial/conf/gora.properties b/gora-tutorial/conf/gora.properties
index 80de06d..296d191 100644
--- a/gora-tutorial/conf/gora.properties
+++ b/gora-tutorial/conf/gora.properties
@@ -16,7 +16,8 @@
 
 ##gora.datastore.default is the default detastore implementation to use 
 ##if it is not passed to the DataStoreFactory#createDataStore() method.
-gora.datastore.default=org.apache.gora.hbase.store.HBaseStore
+gora.datastore.default=org.apache.gora.aerospike.store.AerospikeStore
+#gora.datastore.default=org.apache.gora.hbase.store.HBaseStore
 #gora.datastore.default=org.apache.gora.couchdb.store.CouchDBStore
 #gora.datastore.default=org.apache.gora.cassandra.store.CassandraStore
 #gora.datastore.default=org.apache.gora.solr.store.SolrStore

http://git-wip-us.apache.org/repos/asf/gora/blob/3900a41d/gora-tutorial/pom.xml
----------------------------------------------------------------------
diff --git a/gora-tutorial/pom.xml b/gora-tutorial/pom.xml
index 26011a9..99ba41d 100644
--- a/gora-tutorial/pom.xml
+++ b/gora-tutorial/pom.xml
@@ -123,6 +123,10 @@
       <artifactId>gora-solr</artifactId>
     </dependency>
 
+    <dependency>
+      <groupId>org.apache.gora</groupId>
+      <artifactId>gora-aerospike</artifactId>
+    </dependency>
     <!-- Hadoop Dependencies -->
     <dependency>
       <groupId>org.apache.hadoop</groupId>


Mime
View raw message