Exchange配置metad的地址报错

  • nebula 版本:v2.0.0
  • 部署方式(分布式 / 单机 / Docker / DBaaS):k8s
  • Exchange版本:2.0.0

报错信息:

Exception in thread "main" java.lang.IllegalArgumentException: nebula-metad-0.nebula-metad.nebula-lins.svc.cluster.local:9559 is not a valid address
	at com.vesoft.nebula.client.meta.AbstractMetaClient.<init>(AbstractMetaClient.java:34)
	at com.vesoft.nebula.client.meta.MetaClient.<init>(MetaClient.java:81)
	at com.vesoft.nebula.client.meta.MetaClient.<init>(MetaClient.java:76)
	at com.vesoft.nebula.client.meta.MetaClient.<init>(MetaClient.java:72)
	at com.vesoft.nebula.exchange.MetaProvider.<init>(MetaProvider.scala:31)
	at com.vesoft.nebula.exchange.processor.VerticesProcessor.process(VerticesProcessor.scala:109)
	at com.vesoft.nebula.exchange.Exchange$$anonfun$main$2.apply(Exchange.scala:145)
	at com.vesoft.nebula.exchange.Exchange$$anonfun$main$2.apply(Exchange.scala:122)
	at scala.collection.immutable.List.foreach(List.scala:392)
	at com.vesoft.nebula.exchange.Exchange$.main(Exchange.scala:122)
	at com.vesoft.nebula.exchange.Exchange.main(Exchange.scala)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
	at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:845)
	at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:161)
	at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:184)
	at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86)
	at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:920)
	at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:929)
	at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)

查看代码发现是nebula-java中AbstractMetaClient的部分,判断地址是否合法ip地址的问题,所以exchange的meta必须是ip地址吗

exchange使用javaClient 与NebulaGraph建立连接,client 校验ip时不支持uriAddress,exchange也无法支持的,就算支持了也会在AbstractMetaClient校验的地方拦住。

所以,有计划支持用uri而不是ip地址进行连接的feature的支持不 :sweat_smile:

我看到你提的pr了,感谢贡献,我们会review的哈~

1 个赞

浙ICP备20010487号