虚拟机 rpm 安装 1.1.0版本 nebula graph
运行nebula-spark 1.1.0版本的例子NebulaReaderExample报错
SparkSession sparkSession = SparkSession
.builder()
.config(sparkConf)
.master("local[4]")
.getOrCreate();
Dataset<Row> vertexDataset = sparkSession
.read()
.format("nebula")
.option(Parameters.TYPE, Type.VERTEX.getType())
.option(Parameters.HOST_AND_PORTS, "192.168.137.111:45500")
.option(Parameters.PARTITION_NUMBER, "100")
.option(Parameters.SPACE_NAME, "test")
.option(Parameters.LABEL, "student")
// if configuration "returnCols" is null or "", then return all cols
.option(Parameters.RETURN_COLS, "")
.load();
LOGGER.info("vertex course schema: ");
vertexDataset.printSchema();
vertexDataset.show();
Caused by: com.vesoft.nebula.exception.GraphOperateException: Failed to connect 127.0.0.1:44500
44500这个端口应该是集群心跳端口,不清楚这为啥会请求