Star

exchange2.0 编译报错

  • nebula 版本:2.0.0
  • 部署方式(分布式 / 单机 / Docker / DBaaS):docker swarm

exchange 2.0 打包出错,我看是meta相关类引起的,是2.0移除了吗,替代的方式是什么

[ERROR] D:\work\project\nebula-spark-utils\nebula-exchange\src\main\scala\com\vesoft\nebula\tools\importer\MetaProvider.scala:11: error: object meta is not a member of package com.vesoft.nebula.client
[INFO] import com.vesoft.nebula.client.meta.MetaClient
[INFO]                                 ^
[ERROR] D:\work\project\nebula-spark-utils\nebula-exchange\src\main\scala\com\vesoft\nebula\tools\importer\MetaProvider.scala:12: error: object meta is not a member of package com.vesoft.nebula
[INFO] import com.vesoft.nebula.meta.PropertyType
[INFO]                          ^
[ERROR] D:\work\project\nebula-spark-utils\nebula-exchange\src\main\scala\com\vesoft\nebula\tools\importer\MetaProvider.scala:31: error: not found: type MetaClient
[INFO]   private val metaClient = new MetaClient(address.asJava)
[INFO]                                ^
[ERROR] D:\work\project\nebula-spark-utils\nebula-exchange\src\main\scala\com\vesoft\nebula\tools\importer\processor\Processor.scala:9: error: object meta is not a member of package com.vesoft.nebula
[INFO] import com.vesoft.nebula.meta.PropertyType
[INFO]                          ^
[ERROR] D:\work\project\nebula-spark-utils\nebula-exchange\src\main\scala\com\vesoft\nebula\tools\importer\processor\Processor.scala:49: error: not found: value PropertyType
[INFO]       case PropertyType.STRING => {
[INFO]            ^
[ERROR] D:\work\project\nebula-spark-utils\nebula-exchange\src\main\scala\com\vesoft\nebula\tools\importer\processor\Processor.scala:53: error: not found: value PropertyType
[INFO]       case PropertyType.DATE     => "date(\"" + row.get(index) + "\")"
[INFO]            ^
[ERROR] D:\work\project\nebula-spark-utils\nebula-exchange\src\main\scala\com\vesoft\nebula\tools\importer\processor\Processor.scala:54: error: not found: value PropertyType
[INFO]       case PropertyType.DATETIME => "datatime(\"" + row.get(index) + "\")"
[INFO]            ^
[ERROR] D:\work\project\nebula-spark-utils\nebula-exchange\src\main\scala\com\vesoft\nebula\tools\importer\processor\Processor.scala:55: error: not found: value PropertyType
[INFO]       case PropertyType.TIME     => "time(\"" + row.get(index) + "\")"
[INFO]            ^
[ERROR] D:\work\project\nebula-spark-utils\nebula-exchange\src\main\scala\com\vesoft\nebula\tools\importer\utils\NebulaUtils.scala:9: error: object meta is not a member of package com.vesoft.nebula
[INFO] import com.vesoft.nebula.meta.{PropertyType}
[INFO]                          ^
[ERROR] D:\work\project\nebula-spark-utils\nebula-exchange\src\main\scala\com\vesoft\nebula\tools\importer\utils\NebulaUtils.scala:49: error: not found: value PropertyType
[INFO]                           PropertyType.STRING)
[INFO]                           ^
[ERROR] D:\work\project\nebula-spark-utils\nebula-exchange\src\main\scala\com\vesoft\nebula\tools\importer\utils\NebulaUtils.scala:52: error: not found: value PropertyType
[INFO]                           PropertyType.STRING)
[INFO]                           ^
[ERROR] D:\work\project\nebula-spark-utils\nebula-exchange\src\main\scala\com\vesoft\nebula\tools\importer\utils\NebulaUtils.scala:54: error: not found: value PropertyType
[INFO]                           PropertyType.STRING)
[INFO]                           ^
[ERROR] 12 errors found

看手册readme说明哦,要先install 2.0 最新的java-client,再编译exchange

浙ICP备20010487号