diff --git a/README-zh.md b/README-zh.md index 247eced8c0f..18ce798bbbd 100644 --- a/README-zh.md +++ b/README-zh.md @@ -26,5 +26,9 @@ docker-compose down ## 应用访问 http://0.0.0.0:7001 +## 更多 +[用户手册](https://www.yuque.com/nebulagraph/bh6cky/kx7aug) +[测试数据](./example/follow.csv) + ## 常见问题 - 建立数据库连接时: 即使是本机数据库,不要使用`127.0.0.1:3699`地址,请使用真实ip,应用运行在独立的网络环境需要真实ip寻址。 diff --git a/REMADE-en.md b/REMADE-en.md index fc0ffd2e462..88cef836cd9 100644 --- a/REMADE-en.md +++ b/REMADE-en.md @@ -26,5 +26,10 @@ docker-compose down ## Vist http://0.0.0.0:7001 + +## More +[User Manual](https://www.yuque.com/nebulagraph/bh6cky/kx7aug) +[Sample Data](./example/follow.csv) + ## FAQ - Config Nebula Server: when use local nebula server, use the real ip host instead of `127.0.0.1:3699` due to the docker container isolated enviroment. \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 4084f4ee032..ac7ff41e5c3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: networks: - nebula-web web: - image: vesoft/nebula-web-console:0.0.1 + image: vesoft/nebula-web-console:0.0.2 environment: USER: root WORKING_DIR: ${WORKING_DIR} diff --git a/example/follow.csv b/example/follow.csv new file mode 100644 index 00000000000..ee63d0f4279 --- /dev/null +++ b/example/follow.csv @@ -0,0 +1,9 @@ +100,101,95 +100,102,90 +101,100,95 +102,101,75 +102,100,75 +103,102,70 +104,101,50 +104,105,60 +105,104,83 diff --git a/example/player.csv b/example/player.csv new file mode 100644 index 00000000000..c6c3f9596c3 --- /dev/null +++ b/example/player.csv @@ -0,0 +1,9 @@ +100,Tim Duncan,42 +101,Tony Parker,36 +102,LaMarcus Aldridge,33 +103,Rudy Gay,32 +104,Marco Belinelli,32 +105,Danny Green,31 +106,Kyle Anderson,25 +107,Aron Baynes,32 +108,Boris Diaw,36 diff --git a/example/serve.csv b/example/serve.csv new file mode 100644 index 00000000000..8cd7dfa1328 --- /dev/null +++ b/example/serve.csv @@ -0,0 +1,6 @@ +100,200,1997,2016 +101,201,1999,2018 +102,203,2006,2015 +102,204,2015,2019 +103,204,2017,2019 +104,200,2007,2009 diff --git a/example/team.csv b/example/team.csv new file mode 100644 index 00000000000..124774faeb7 --- /dev/null +++ b/example/team.csv @@ -0,0 +1,9 @@ +200,Warriors +201,Nuggets +202,Rockets +203,Trail +204,Spurs +205,Thunders +206,Jazz +207,Clippers +208,Kings diff --git a/example/tmp/config.yaml b/example/tmp/config.yaml new file mode 100644 index 00000000000..4cc7277046b --- /dev/null +++ b/example/tmp/config.yaml @@ -0,0 +1,52 @@ +{ + "version": "v1rc1", + "description": "web console import", + "clientSettings": { + "concurrency": 10, + "channelBufferSize": 128, + "space": "test", + "connection": { + "user": "user", + "password": "password", + "address": "192.168.3.38:3699" + } + }, + "logPath": "/Users/niania/WorkSpace/nebula-web-docker/example/tmp/import.log", + "files": [ + { + "path": "/Users/niania/WorkSpace/nebula-web-docker/example/player.csv", + "failDataPath": "/Users/niania/WorkSpace/nebula-web-docker/example/tmp/err/Vertex 0Fail.scv", + "batchSize": 10, + "type": "csv", + "csv": { + "withHeader": false, + "withLabel": false + }, + "schema": { + "type": "vertex", + "vertex": { + "vid": { + "index": 0 + }, + "tags": [ + { + "name": "person", + "props": [ + { + "name": "name", + "type": "string", + "index": 1 + }, + { + "name": "age", + "type": "int", + "index": 2 + } + ] + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/example/tmp/err/Vertex 0Fail.scv b/example/tmp/err/Vertex 0Fail.scv new file mode 100644 index 00000000000..e69de29bb2d diff --git a/example/tmp/import.log b/example/tmp/import.log new file mode 100644 index 00000000000..dee4a315bca --- /dev/null +++ b/example/tmp/import.log @@ -0,0 +1,5 @@ +2020/01/08 13:21:12 [INFO] clientmgr.go:28: Create 10 Nebula Graph clients +2020/01/08 13:21:12 [INFO] reader.go:53: Start to read file(0): /Users/niania/WorkSpace/nebula-web-docker/example/player.csv, schema: < :VID,person.name:string,person.age:int > +2020/01/08 13:21:12 [INFO] reader.go:108: Total lines of file(/Users/niania/WorkSpace/nebula-web-docker/example/player.csv) is: 9, error lines: 0 +2020/01/08 13:21:12 [INFO] statsmgr.go:61: Done(/Users/niania/WorkSpace/nebula-web-docker/example/player.csv): Time(0.16s), Finished(9), Failed(0), Latency AVG(5282us), Batches Req AVG(13235us), Rows AVG(56.04/s) +2020/01/08 13:21:12 [INFO] cmd.go:32: Finish import data, consume time: 0.24s