Dev 日誌 | 文章《快速體驗知識圖譜 OwnThink》中的技術問題

Dev log

社區小夥伴反饋在實踐文章《使用圖數據庫 Nebula Graph 數據導入快速體驗知識圖譜 OwnThink》時,遇到了一些問題,Nebula Graph 將在本文對該文章中出現的問題進行 Debug。git

報錯信息:panic: yaml: line 14: mapping values are not allowed in this contex

使用 nebula-importer 時,報錯: panic: yaml: line 14: mapping values are not allowed in this contex <br />這個錯誤緣由是 config.yaml 文件裏的第一個** ****- path** 字段沒對齊,更改方式是在第一個 - path 字段前面加個空格。該錯誤在最新打包的 oss 包裏已經更正。更改以後的配置文件可去 GitHub (連接:https://github.com/jievince/rdf-converter/blob/master/rdf-import.yaml)或者直接複製下面信息。github

version: v1rc1
description: example
clientSettings:
  concurrency: 10 # number of graph clients
  channelBufferSize: 128
  space: test
  connection:
    user: user
    password: password
    address: 127.0.0.1:3699
logPath: ./err/test.log
files:
  - path: ./vertex.csv
    failDataPath: ./err/vertex.csv
    batchSize: 100
    type: csv
    csv:
      withHeader: false
      withLabel: false
    schema:
      type: vertex
      vertex:
        tags:
          - name: entity
            props:
              - name: name
                type: string
  - path: ./edge.csv
    failDataPath: ./err/edge.csv
    batchSize: 100
    type: csv
    csv:
      withHeader: false
      withLabel: false
    schema:
      type: edge
      edge:
        name: relation
        withRanking: false
        props:
          - name: name
            type: string

報錯信息:writing tcp 127.0.0.1... write: broken_pipe

使用 nebula-importer 導數據的過程當中,報 writing tcp 127.0.0.1... write: broken_pipe 錯誤信息,這個報錯是 Nebula Graph 的一個 bug 致使,已在本次 rc2 (預發佈)更新包內修復,請去 GitHub (連接:https://github.com/vesoft-inc/nebula/releases/tag/v1.0.0-rc2) 下載。數據庫

佔用內存太高

在部分低配置機器上內存不夠的問題,原默認配置針對 64 GB 以上內存的機型。更改了默認 partition 數量, 默認 wal 文件大小和 wal buffer 大小。pr 見:https://github.com/vesoft-inc/nebula/pull/1330bash

storage 啓動過慢,報 Internal error,或者報端口占用

當有大量數據時,storage 忽然 failover 後,存在啓動過程數據加載過慢,報 Internal error,或者報端口占用的等問題,目前已被修復。pr 見:https://github.com/vesoft-inc/nebula/pull/1341微信

其餘修復信息

最後,附上 Nebula Graph GitHub 地址:https://github.com/vesoft-inc/nebula,若是你在使用 Nebula Graph 過程當中遇到任何問題,歡迎 GitHub 聯繫咱們或者加入微信交流羣,請聯繫微信號:NebulaGraphbot app

推薦閱讀

關注公衆號

相關文章
相關標籤/搜索