I had already defined the data schema.
Then when I loading data,there throw an exception:
gremlin> :load test/bulk-load-BLVP.groovy
This is bulk-load-BLVP.groovy contents:
graph = GraphFactory.open("conf/hadoop-graph/hadoop-script-my.properties")
blvp = BulkLoaderVertexProgram.build().keepOriginalIds(false).writeGraph("conf/titan-hbase-bulk-load-test.properties").
intermediateBatchSize(10000).create(graph)
graph.compute(SparkGraphComputer).program(blvp).submit().get()
This is hadoop-script-my.properties contents:
gremlin.graph=org.apache.tinkerpop.gremlin.hadoop.structure.HadoopGraph
gremlin.hadoop.graphInputFormat=org.apache.tinkerpop.gremlin.hadoop.structure.io.script.ScriptInputFormat
gremlin.hadoop.graphOutputFormat=org.apache.hadoop.mapreduce.lib.output.NullOutputFormat
gremlin.hadoop.memoryOutputFormat=org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat
gremlin.hadoop.jarsInDistributedCache=true
gremlin.hadoop.deriveMemory=false
gremlin.hadoop.inputLocation=test/vote.txt
gremlin.hadoop.scriptInputFormat.script=data/script-input-test.groovy
gremlin.hadoop.outputLocation=output
####################################
# SparkGraphComputer Configuration #
####################################
spark.master=local[4]
spark.executor.memory=1g
spark.serializer=org.apache.spark.serializer.KryoSerializer
This is script-input-test.groovy contents:
def parse(line, factory) {
def (sourceId,targetId) = line.split(/\t/).toList()
def v1 = factory.vertex(sourceId, 'user')
v1.property('userId', sourceId)
def v2 = factory.vertex(targetId,'user')
//
v2.property('userId', targetId)
def edge = factory.edge(v1, v2,'friend')
edge.property('voteFor', targetId)
return v1
}
This is titan-hbase-bulk-load-test.properties contents:
#my individuted configuration
gremlin.graph=com.thinkaurelius.titan.core.TitanFactory
#Blow is config batch
loading.
storage.batch-loading=true
storage.read-only=false
storage.hbase.table=test
storage.backend=hbase
storage.hostname=127.0.0.1
cache.db-cache = true
cache.db-cache-clean-wait = 20
cache.db-cache-time = 180000
cache.db-cache-size = 0.5
My vote.txt contents as follows:
30 1412
30 3352
30 5254
30 5543
30 7478
3 28
3 30
3 39
3 54
3 214
3 271
3 286
3 590
3 604
3 611
3 8283
25 3
25 6
Can
you help me to solve this problem?
Thank you!
Zhou
--
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraph...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/35ec8efc-b859-42d5-b5c6-50e9e802f531%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
...
--
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraph...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/246ebed1-af21-40ac-8ef1-3b7af8a76999%40googlegroups.com.