nebula-importer导入数据出错,提示failed to verify client version: verifyClientVersion failed: wrong method name

  • nebula 版本:V2.6.2, console版本2.6.0,importer版本2.6.0
  • 部署方式:分布式
  • 安装方式:tar.gz
  • 是否为线上版本:Y / N
    yaml文件:
version: v2

description: example

removeTempFiles: false

clientSettings:

  retry: 3

  concurrency: 3 # number of graph clients

  channelBufferSize: 128

  space: rational_drug_v2

  connection:

    user: graph53

    password: jss@123

    address: 192.168.107.53:9689

  postStart:

    commands: 

      DROP SPACE IF EXISTS rational_drug_v2;

      CREATE SPACE IF NOT EXISTS rational_drug_v2(partition_num=5, replica_factor=1, vid_type=FIXED_STRING(32));
	  
      USE rational_drug_v2;

      CREATE TAG place_0_0(id string, countryName string, website string, country string);

    afterPeriod: 8s

  preStop:

    commands: |

logPath: /home/graph53/cncao/nebula/err/test.log

files:

  - path: /home/graph53/cncao/data/place_0_0.csv

    failDataPath: /home/graph53/cncao/nebula/err/place_0_0.csv

    batchSize: 2

    inOrder: true

    type: csv

    csv:

      withHeader: false

      withLabel: false

      delimiter: ","

    schema:

      type: vertex

      vertex:

        vid:

           index: 0

           type: string

        tags:

          - name: place_0_0

            props:

              - name: id

                type: string

                index: 1

              - name: countryName

                type: string

                index: 2

              - name: website

                type: string

                index: 3

              - name: country

                type: string

                index: 4


执行./nebula-importer --config test.yaml

终端输出:failed to verify client version: verifyClientVersion failed: wrong method name

贴一下你的 Nebula 配置,确认下是不是这个 ip 和端口号和 Nebula 的配置是一致的,以及,测试下是否网络通畅。

两种可能:版本不匹配 或者连错了地址

端口号配置的是metad,graphd还是storaged的?我用的是stroaged的端口号

--daemonize=true
# The file to host the process id
--pid_file=pids/nebula-storaged.pid
# Whether to use the configuration obtained from the configuration file
--local_config=true

########## logging ##########
# The directory to host logging files
--log_dir=logs
# Log level, 0, 1, 2, 3 for INFO, WARNING, ERROR, FATAL respectively
--minloglevel=0
# Verbose log level, 1, 2, 3, 4, the higher of the level, the more verbose of the logging
--v=0
# Maximum seconds to buffer the log messages
--logbufsecs=0
# Whether to redirect stdout and stderr to separate output files
--redirect_stdout=true
# Destination filename of stdout and stderr, which will also reside in log_dir.
--stdout_log_file=storaged-stdout.log
--stderr_log_file=storaged-stderr.log
# Copy log messages at or above this level to stderr in addition to logfiles. The numbers of severity levels INFO, WARNING, ERROR, and FATAL are 0, 1, 2, and 3, respectively.
--stderrthreshold=2

########## networking ##########
# Comma separated Meta server addresses
--meta_server_addrs=192.168.107.53:9119,192.168.107.53:9889,192.168.107.53:9999
# Local IP used to identify the nebula-storaged process.
# Change it to an address other than loopback if the service is distributed or
# will be accessed remotely.
--local_ip=192.168.107.53
# Storage daemon listening port
--port=9689
# HTTP service ip
--ws_ip=0.0.0.0
# HTTP service port
--ws_http_port=19689
# HTTP2 service port
--ws_h2_port=19690
# heartbeat with meta service
--heartbeat_interval_secs=10

应该配graphd的端口号,使用 Nebula Importer - Nebula Graph Database 手册

1 个赞

解决了谢谢,但是又提示prop index 4 out range 4 of record
place_0_0.csv文件内容如下片段

0,India,http://dbpedia.org/resource/India,country
1,China,http://dbpedia.org/resource/China,country

一样的问题,以 importer导入csv文件提示prop index 4 out range 4 of record 的回复为准哈。这个帖子的问题已经解决了,先行关闭啦。