http://git-wip-us.apache.org/repos/asf/giraph/blob/5d1bc2de/giraph-rexster/giraph-rexster-io/src/test/resources/org/apache/giraph/rexster/io/formats/rexster.xml ---------------------------------------------------------------------- diff --git a/giraph-rexster/giraph-rexster-io/src/test/resources/org/apache/giraph/rexster/io/formats/rexster.xml b/giraph-rexster/giraph-rexster-io/src/test/resources/org/apache/giraph/rexster/io/formats/rexster.xml new file mode 100644 index 0000000..9aebb89 --- /dev/null +++ b/giraph-rexster/giraph-rexster-io/src/test/resources/org/apache/giraph/rexster/io/formats/rexster.xml @@ -0,0 +1,155 @@ +<?xml version="1.0" encoding="UTF-8"?> +<rexster> + <http> + <server-port>18182</server-port> + <server-host>127.0.0.1</server-host> + <base-uri>http://127.0.0.1</base-uri> + <web-root>public</web-root> + <character-set>UTF-8</character-set> + <enable-jmx>false</enable-jmx> + <enable-doghouse>false</enable-doghouse> + <thread-pool> + <worker> + <core-size>8</core-size> + <max-size>8</max-size> + </worker> + <kernal> + <core-size>4</core-size> + <max-size>4</max-size> + </kernal> + </thread-pool> + <io-strategy>leader-follower</io-strategy> + </http> + <script-engine-reset-threshold>-1</script-engine-reset-threshold> + <script-engine-init>data/init.groovy</script-engine-init> + <script-engines>gremlin-groovy</script-engines> + <graphs> + <!-- graph that will contain data for the Input Format test --> + <graph> + <graph-name>orientdb</graph-name> + <graph-type>orientgraph</graph-type> + <graph-location>local:/tmp/orientdb</graph-location> + <properties> + <username>admin</username> + <password>admin</password> + <mvrbtree.lazyUpdates>1</mvrbtree.lazyUpdates> + </properties> + <extensions> + <allows> + <allow>tp:gremlin</allow> + <allow>tp:giraph</allow> + </allows> + </extensions> + </graph> + <graph> + <graph-name>neodb</graph-name> + <graph-location>/tmp/neodb</graph-location> + <graph-type>neo4jgraph</graph-type> + <properties> + <neostore.nodestore.db.mapped_memory>285M</neostore.nodestore.db.mapped_memory> + <neostore.relationshipstore.db.mapped_memory>285M</neostore.relationshipstore.db.mapped_memory> + <neostore.propertystore.db.mapped_memory>100M</neostore.propertystore.db.mapped_memory> + <neostore.propertystore.db.strings.mapped_memory>100M</neostore.propertystore.db.strings.mapped_memory> + <neostore.propertystore.db.arrays.mapped_memory>10M</neostore.propertystore.db.arrays.mapped_memory> + <neostore.propertystore.db.index.mapped_memory>10M</neostore.propertystore.db.index.mapped_memory> + <neostore.propertystore.db.index.keys.mapped_memory>10M</neostore.propertystore.db.index.keys.mapped_memory> + <use_adaptive_cache>YES</use_adaptive_cache> + <adaptive_cache_heap_ratio>0.77</adaptive_cache_heap_ratio> + <adaptive_cache_manager_decrease_ratio>1.15</adaptive_cache_manager_decrease_ratio> + <adaptive_cache_manager_increase_ratio>1.1</adaptive_cache_manager_increase_ratio> + <adaptive_cache_worker_sleep_time>3000</adaptive_cache_worker_sleep_time> + <min_node_cache_size>0</min_node_cache_size> + <min_relationship_cache_size>0</min_relationship_cache_size> + <max_node_cache_size>1500</max_node_cache_size> + <max_relationship_cache_size>3500</max_relationship_cache_size> + </properties> + <extensions> + <allows> + <allow>tp:gremlin</allow> + <allow>tp:giraph</allow> + </allows> + </extensions> + </graph> + <graph> + <graph-name>tgdb</graph-name> + <graph-location>/tmp/tgdb</graph-location> + <graph-type>tinkergraph</graph-type> + <extensions> + <allows> + <allow>tp:gremlin</allow> + <allow>tp:giraph</allow> + </allows> + </extensions> + </graph> + + <!-- graph that will be used for testing --> + <graph> + <graph-name>emptyorientdb</graph-name> + <graph-type>orientgraph</graph-type> + <graph-location>local:/tmp/emptyorientdb</graph-location> + <properties> + <username>admin</username> + <password>admin</password> + <mvrbtree.lazyUpdates>"fuffa"</mvrbtree.lazyUpdates> + </properties> + <extensions> + <allows> + <allow>tp:gremlin</allow> + <allow>tp:giraph</allow> + </allows> + </extensions> + </graph> + <graph> + <graph-name>emptyneodb</graph-name> + <graph-location>/tmp/emptyneodb</graph-location> + <graph-type>neo4jgraph</graph-type> + <properties> + <neostore.nodestore.db.mapped_memory>285M</neostore.nodestore.db.mapped_memory> + <neostore.relationshipstore.db.mapped_memory>285M</neostore.relationshipstore.db.mapped_memory> + <neostore.propertystore.db.mapped_memory>100M</neostore.propertystore.db.mapped_memory> + <neostore.propertystore.db.strings.mapped_memory>100M</neostore.propertystore.db.strings.mapped_memory> + <neostore.propertystore.db.arrays.mapped_memory>10M</neostore.propertystore.db.arrays.mapped_memory> + <neostore.propertystore.db.index.mapped_memory>10M</neostore.propertystore.db.index.mapped_memory> + <neostore.propertystore.db.index.keys.mapped_memory>10M</neostore.propertystore.db.index.keys.mapped_memory> + <use_adaptive_cache>YES</use_adaptive_cache> + <adaptive_cache_heap_ratio>0.77</adaptive_cache_heap_ratio> + <adaptive_cache_manager_decrease_ratio>1.15</adaptive_cache_manager_decrease_ratio> + <adaptive_cache_manager_increase_ratio>1.1</adaptive_cache_manager_increase_ratio> + <adaptive_cache_worker_sleep_time>3000</adaptive_cache_worker_sleep_time> + <min_node_cache_size>0</min_node_cache_size> + <min_relationship_cache_size>0</min_relationship_cache_size> + <max_node_cache_size>1500</max_node_cache_size> + <max_relationship_cache_size>3500</max_relationship_cache_size> + </properties> + <extensions> + <allows> + <allow>tp:gremlin</allow> + <allow>tp:giraph</allow> + </allows> + </extensions> + </graph> + <graph> + <graph-name>emptytgdb</graph-name> + <graph-location>/tmp/emptytgdb</graph-location> + <graph-type>tinkergraph</graph-type> + <extensions> + <allows> + <allow>tp:gremlin</allow> + <allow>tp:giraph</allow> + </allows> + </extensions> + </graph> + <!-- empty database which is used to test for empty input --> + <graph> + <graph-name>emptydb</graph-name> + <graph-location>/tmp/emptydb</graph-location> + <graph-type>tinkergraph</graph-type> + <extensions> + <allows> + <allow>tp:gremlin</allow> + <allow>tp:giraph</allow> + </allows> + </extensions> + </graph> + </graphs> +</rexster>
http://git-wip-us.apache.org/repos/asf/giraph/blob/5d1bc2de/giraph-rexster/giraph-rexster-io/src/test/resources/org/apache/giraph/rexster/io/formats/tgdb-output.json ---------------------------------------------------------------------- diff --git a/giraph-rexster/giraph-rexster-io/src/test/resources/org/apache/giraph/rexster/io/formats/tgdb-output.json b/giraph-rexster/giraph-rexster-io/src/test/resources/org/apache/giraph/rexster/io/formats/tgdb-output.json new file mode 100644 index 0000000..f4e61f3 --- /dev/null +++ b/giraph-rexster/giraph-rexster-io/src/test/resources/org/apache/giraph/rexster/io/formats/tgdb-output.json @@ -0,0 +1,5 @@ +[0,0,[[1,1]]] +[1,0,[[2,5],[0,1],[3,1]]] +[2,0,[[4,4],[1,2]]] +[3,0,[[0,3],[4,4],[1,1]]] +[4,0,[[3,4],[2,4]]]
