Star

exchange csv导入报错

  • nebula 版本:v2-preview-nightly
  • 部署方式(分布式 / 单机 / Docker / DBaaS):Docker swarm

使用exchange导入报如下错误,是目前还不支持v2版本的导入吗?如果想使用v2有v2的api吗?
下面是报错

 java.lang.RuntimeException: switchCode:-5 Switch Failed
        at com.vesoft.nebula.tools.importer.writer.NebulaGraphClientWriter.prepare(ServerBaseWriter.scala:147)
        at com.vesoft.nebula.tools.importer.processor.VerticesProcessor.com$vesoft$nebula$tools$importer$processor$VerticesProcessor$$processEachPartition(VerticesProcessor.scala:75)
        at com.vesoft.nebula.tools.importer.processor.VerticesProcessor$$anonfun$process$4.apply(VerticesProcessor.scala:263)
        at com.vesoft.nebula.tools.importer.processor.VerticesProcessor$$anonfun$process$4.apply(VerticesProcessor.scala:263)
        at org.apache.spark.rdd.RDD$$anonfun$foreachPartition$1$$anonfun$apply$28.apply(RDD.scala:980)
        at org.apache.spark.rdd.RDD$$anonfun$foreachPartition$1$$anonfun$apply$28.apply(RDD.scala:980)
        at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:2101)
        at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:2101)
        at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90)
        at org.apache.spark.scheduler.Task.run(Task.scala:123)
        at org.apache.spark.executor.Executor$TaskRunner$$anonfun$10.apply(Executor.scala:408)
        at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1360)
        at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:414)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

恩 目前exchange 工具暂时不支持 nebula v2 版本

那么有2.0的api吗,我理解换成2.0的api就可以了

https://github.com/vesoft-inc/nebula-clients

数据量多少啊,api导入效率不高吧

就两种方式,一种client,一种sst

我理解 client 也是生成sst文件再导入到nebula的

对了,exchange支持哪个版本的nebula

不是,client是通过graph 服务导入

目前exchange支持1.x版本的nebula graph, 2.0版本的exchange coming soon~

浙ICP备20010487号