add rocks_storage.conf.
 - now run test `sbt "project s2core" -Dconfig.file=rocks_storage.conf test`.
 - want to remove rocks.storage.mode, but not sure how to force test to run 
sequentially.


Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/5fa98bb6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/5fa98bb6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/5fa98bb6

Branch: refs/heads/master
Commit: 5fa98bb69eed8681908cedd728ba6cb47d75f5c2
Parents: 80f1418
Author: DO YUNG YOON <[email protected]>
Authored: Tue Nov 21 10:18:18 2017 +0900
Committer: DO YUNG YOON <[email protected]>
Committed: Fri Dec 1 12:01:08 2017 +0900

----------------------------------------------------------------------
 s2core/src/main/resources/rocks_storage.conf    | 24 ++++++++++++++++++++
 .../scala/org/apache/s2graph/core/S2Graph.scala |  4 +---
 2 files changed, 25 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/5fa98bb6/s2core/src/main/resources/rocks_storage.conf
----------------------------------------------------------------------
diff --git a/s2core/src/main/resources/rocks_storage.conf 
b/s2core/src/main/resources/rocks_storage.conf
new file mode 100644
index 0000000..9e9323a
--- /dev/null
+++ b/s2core/src/main/resources/rocks_storage.conf
@@ -0,0 +1,24 @@
+#
+# 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.
+#
+
+s2graph.storage.backend = rocks
+rocks.storage.file.path = rocks_db
+rocks.storage.mode = test
+rocks.storage.ttl = -1
+rocks.storage.read.only = false
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/5fa98bb6/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala
----------------------------------------------------------------------
diff --git a/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala 
b/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala
index 2fc36b6..c3d3887 100644
--- a/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala
+++ b/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala
@@ -82,9 +82,7 @@ object S2Graph {
     "query.future.cache.expire.after.write" -> 
java.lang.Integer.valueOf(10000),
     "query.future.cache.expire.after.access" -> 
java.lang.Integer.valueOf(5000),
     "query.future.cache.metric.interval" -> java.lang.Integer.valueOf(60000),
-//    "s2graph.storage.backend" -> "hbase",
-    "s2graph.storage.backend" -> "rocks",
-    RocksStorage.FilePathKey -> "rocks_db",
+    "s2graph.storage.backend" -> "hbase",
     "query.hardlimit" -> java.lang.Integer.valueOf(100000),
     "hbase.zookeeper.znode.parent" -> "/hbase",
     "query.log.sample.rate" -> Double.box(0.05)

Reply via email to