-
nebula 版本:2.0
-
部署方式:分布式
-
是否为线上版本:N
-
问题的具体描述
你的服务器可以联网吗?
建议本地打包copy上去吧
https://docs.nebula-graph.com.cn/2.0.1/nebula-importer/use-importer/#无网络编译方式
好的 谢谢 怎么检测nebula-importer方式已经成功了呢
用examples/v2里的配置文件和数据是这导入一下数据就知道了.
注意需要修改example.yml中的connection信息为你部署的nebula服务的信息
配置文件和数据放在哪个文件夹下呀
导入成功后如果没有索引就用
- match (n:tag) where id(n) = vid return n ;或者fetch prop on tag vidlist 来看数据有没有进去
FETCH PROP ON player “player101”;
match (p)-[r:serve]-(p2) where id(p)== “player100” and id(p2)== “team204” return r
使用 submit job stats ; show job $jobId ; show stats; 看一下tag下的数据总量对不对
然后建立索引,
然后用lookup on tag | limit n 来查看导入的数据
lookup on KNOWS | limit 10 //边
lookup on Person | limit 10 // 点
./nimporter --config ./nimportercfg/20210428-nebula-importer-cfg.yml 随便放哪里都可以
还是编译不成功 有什么别的办法吗
本地打包copy上去啥意思?
您用这个分支的代码试试呢
下面是操作过程
xxx@MSI:~$ cd /mnt/d/_xxx/2021/nebula/nebulainstall/nebula-importer/
xxx@MSI:/mnt/d/_xxx/2021/nebula/nebulainstall/nebula-importer$ ls
Dockerfile Makefile README_zh-CN.md cmd docs go.mod nebula-importer-buildsuccess
LICENSE README.md ci docker-compose.yaml examples go.sum pkg
xxx@MSI:/mnt/d/_xxx/2021/nebula/nebulainstall/nebula-importer$ ll
total 8304
drwxrwxrwx 1 xxx xxx 4096 Apr 28 12:02 ./
drwxrwxrwx 1 xxx xxx 4096 Apr 30 17:06 ../
-rwxrwxrwx 1 xxx xxx 26 Apr 25 17:32 .dockerignore*
-rwxrwxrwx 1 xxx xxx 210 Apr 25 17:32 .editorconfig*
drwxrwxrwx 1 xxx xxx 4096 Apr 25 17:32 .git/
drwxrwxrwx 1 xxx xxx 4096 Apr 25 17:32 .github/
-rwxrwxrwx 1 xxx xxx 267 Apr 25 17:32 .gitignore*
-rwxrwxrwx 1 xxx xxx 467 Apr 25 17:32 Dockerfile*
-rwxrwxrwx 1 xxx xxx 11558 Apr 25 17:32 LICENSE*
-rwxrwxrwx 1 xxx xxx 652 Apr 25 17:32 Makefile*
-rwxrwxrwx 1 xxx xxx 15525 Apr 25 17:32 README.md*
-rwxrwxrwx 1 xxx xxx 14030 Apr 25 17:32 README_zh-CN.md*
drwxrwxrwx 1 xxx xxx 4096 Apr 25 17:32 ci/
drwxrwxrwx 1 xxx xxx 4096 Apr 28 11:57 cmd/
-rwxrwxrwx 1 xxx xxx 2886 Apr 25 17:32 docker-compose.yaml*
drwxrwxrwx 1 xxx xxx 4096 Apr 25 17:32 docs/
drwxrwxrwx 1 xxx xxx 4096 Apr 25 17:32 examples/
-rwxrwxrwx 1 xxx xxx 378 Apr 28 11:56 go.mod*
-rwxrwxrwx 1 xxx xxx 2596 Apr 28 11:56 go.sum*
-rwxrwxrwx 1 xxx xxx 8446032 Apr 28 11:57 nebula-importer-buildsuccess*
drwxrwxrwx 1 xxx xxx 4096 Apr 25 17:32 pkg/
xxx@MSI:/mnt/d/_xxx/2021/nebula/nebulainstall/nebula-importer$ make build
rm -rf nebula-importer;
cmd/importer.go
pkg/base/stats.go
pkg/base/stoppable.go
pkg/base/tools.go
pkg/base/types.go
pkg/client/clientmgr.go
pkg/client/clientpool.go
pkg/cmd/runner.go
pkg/config/config.go
pkg/config/config_test.go
pkg/csv/csv_test.go
pkg/csv/errwriter.go
pkg/csv/reader.go
pkg/errhandler/datawriter.go
pkg/errhandler/handler.go
pkg/errors/wrapper.go
pkg/logger/adapter.go
pkg/logger/logger.go
pkg/reader/batch.go
pkg/reader/batchmgr.go
pkg/reader/reader.go
pkg/stats/statsmgr.go
pkg/web/httpserver.go
pkg/web/taskmgr.go
nebula-importer has been outputed to /mnt/d/_xxx/2021/nebula/nebulainstall/nebula-importer/nebula-importer
xxx@MSI:/mnt/d/_xxx/2021/nebula/nebulainstall/nebula-importer$ ll
total 16556
drwxrwxrwx 1 xxx xxx 4096 May 18 10:44 ./
drwxrwxrwx 1 xxx xxx 4096 Apr 30 17:06 ../
-rwxrwxrwx 1 xxx xxx 26 Apr 25 17:32 .dockerignore*
-rwxrwxrwx 1 xxx xxx 210 Apr 25 17:32 .editorconfig*
drwxrwxrwx 1 xxx xxx 4096 Apr 25 17:32 .git/
drwxrwxrwx 1 xxx xxx 4096 Apr 25 17:32 .github/
-rwxrwxrwx 1 xxx xxx 267 Apr 25 17:32 .gitignore*
-rwxrwxrwx 1 xxx xxx 467 Apr 25 17:32 Dockerfile*
-rwxrwxrwx 1 xxx xxx 11558 Apr 25 17:32 LICENSE*
-rwxrwxrwx 1 xxx xxx 652 Apr 25 17:32 Makefile*
-rwxrwxrwx 1 xxx xxx 15525 Apr 25 17:32 README.md*
-rwxrwxrwx 1 xxx xxx 14030 Apr 25 17:32 README_zh-CN.md*
drwxrwxrwx 1 xxx xxx 4096 Apr 25 17:32 ci/
drwxrwxrwx 1 xxx xxx 4096 May 18 10:44 cmd/
-rwxrwxrwx 1 xxx xxx 2886 Apr 25 17:32 docker-compose.yaml*
drwxrwxrwx 1 xxx xxx 4096 Apr 25 17:32 docs/
drwxrwxrwx 1 xxx xxx 4096 Apr 25 17:32 examples/
-rwxrwxrwx 1 xxx xxx 378 Apr 28 11:56 go.mod*
-rwxrwxrwx 1 xxx xxx 2596 Apr 28 11:56 go.sum*
-rwxrwxrwx 1 xxx xxx 8446032 May 18 10:44 nebula-importer*
-rwxrwxrwx 1 xxx xxx 8446032 Apr 28 11:57 nebula-importer-buildsuccess*
drwxrwxrwx 1 xxx xxx 4096 Apr 25 17:32 pkg/
xxx@MSI:/mnt/d/_xxx/2021/nebula/nebulainstall/nebula-importer$
nebula-importer 就是打包生成的可执行文件
你好 ,我用这个方法本地打包上传的方法根本没有生成新的那个文件是为啥呀
nebula-importer 这个文件有吗?
没有
您贴一下日志
你用的nebula-importer-2.0.0-ga编译的, 那生成的文件二进制文件是叫nebula-importer-2.0.0-ga吧.
你可以在nebula-importer-2.0.0-ga目录ls一下, 截图发出来看看