# Copyright 2020 JanusGraph Authors | |
# | |
# Licensed 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. | |
# | |
# Hadoop Graph Configuration | |
# | |
gremlin.graph=org.apache.tinkerpop.gremlin.hadoop.structure.HadoopGraph | |
gremlin.hadoop.graphReader=org.janusgraph.hadoop.formats.cql.CqlInputFormat | |
gremlin.hadoop.graphWriter=org.apache.hadoop.mapreduce.lib.output.NullOutputFormat | |
gremlin.hadoop.jarsInDistributedCache=true | |
gremlin.hadoop.inputLocation=none | |
gremlin.hadoop.outputLocation=output | |
gremlin.spark.persistContext=true | |
# | |
# JanusGraph Cassandra InputFormat configuration | |
# | |
# These properties defines the connection properties which were used while write data to JanusGraph. | |
janusgraphmr.ioformat.conf.storage.backend=cql | |
# This specifies the hostname & port for Cassandra data store. | |
janusgraphmr.ioformat.conf.storage.hostname=127.0.0.1 | |
janusgraphmr.ioformat.conf.storage.port=9042 | |
# This specifies the keyspace where data is stored. | |
janusgraphmr.ioformat.conf.storage.cql.keyspace=janusgraph | |
# This defines the indexing backend configuration used while writing data to JanusGraph. | |
janusgraphmr.ioformat.conf.index.search.backend=elasticsearch | |
janusgraphmr.ioformat.conf.index.search.hostname=127.0.0.1 | |
# Use the appropriate properties for the backend when using a different storage backend (HBase) or indexing backend (Solr). | |
# | |
# Apache Cassandra InputFormat configuration | |
# | |
cassandra.input.partitioner.class=org.apache.cassandra.dht.Murmur3Partitioner | |
cassandra.input.widerows=true | |
# | |
# SparkGraphComputer Configuration | |
# | |
spark.master=spark://127.0.0.1:7077 | |
spark.executor.memory=1g | |
spark.executor.extraClassPath=/opt/lib/janusgraph/* | |
spark.serializer=org.apache.spark.serializer.KryoSerializer | |
spark.kryo.registrator=org.janusgraph.hadoop.serialize.JanusGraphKryoRegistrator | |