Nebula-Up, oneliner installer for Nebula Graph Playground

Update: the All-in-one mode is introduced! Check here and try it!
Nebula-Up
is PoC utility to enable developer to bootstrap an nebula-graph cluster with nebula-graph-studio(Web UI) + nebula-graph-console(Command UI) ready out of box in an oneliner run. All required packages will handled with nebula-up
as well, including Docker on Linux(Ubuntu/CentOS), Docker Desktop on macOS(including both Intel and M1 chip based), and Docker Desktop Windows.
Also, it’s optimized to leverage China Repo Mirrors(docker, brew, gitee, etc…) in case needed enable a smooth deployment for both Mainland China users and others.
macOS and Linux with Shell:
|
|
Note: you could specify the version of Nebula Graph like:
|
|
1 All-in-one mode
With all-in-one mode, you could play with many Nebula Tools in one command, too:
Supported tools:
- Nebula Dashboard
- Nebula Graph Studio
- Nebula Graph Console
- Nebula BR(backup & restore)
- Nebula Graph Spark utils
- Nebula Graph Spark Connector/PySpark
- Nebula Graph Algorithm
- Nebula Graph Exchange
- Nebula Graph Importer
- Nebula Graph Fulltext Search
- Nebula Bench
1.1 Install all in one
|
|
1.2 Install Nebula Core and One of the coponent:
|
|
1.3 How to play with all-in-one mode:
1.3.1 Console and Basketballplayer Dataset Loading
Then you could call Nebula Console like:
|
|
1.3.2 Monitor the whole cluster with Nebula Dashboard
Visit http://127.0.0.1:7003 with user: root
, password: nebula
.
Note, thanks to the sponsorship of Microsoft, we have a demo site of Nebula-UP on Azure: you could visit the dashboard here: http://nebula-demo.siwei.io:7003 .
1.3.3 Access Nebula Graph Studio
Visit http://127.0.0.1:7001 with user: root
, password: nebula
, host: graphd:9669
(for non-all-in-one case, this should be <host-ip>:9669
).
Note, thanks to the sponsorship of Microsoft, we have a demo site of Nebula-UP on Azure: you could visit the studio here: http://nebula-demo.siwei.io:7001 .
1.3.4 Query Data with Nebula Spark Connector in PySpark Shell
Or play in PySpark like:
|
|
The output may look like:
|
|
1.3.5 Run Nebula Exchange
Or run an example Nebula Exchange job to import data from CSV file:
|
|
You could check the example configuration file in ~/.nebula-up/nebula-up/spark/exchange.conf
1.3.6 Run Nebula Graph Algorithm
Reference: https://github.com/wey-gu/nebula-livejournal
Load LiveJournal dataset with Nebula Importer:
|
|
Run Nebula Algorithm like:
|
|
1.3.7 Try Backup and Restore with MinIO as Storage
|
|
Note, you could also browser files in MinIO with from http://127.0.0.1:9001 with user: minioadmin
, password: minioadmin
.
Note, thanks to the sponsorship of Microsoft, we have a demo site of Nebula-UP on Azure: you could visit the MinIO site here: http://nebula-demo.siwei.io:9001 .
Windows with PowerShell(Working In Progress):
|
|
TBD:
- Finished Windows(Docker Desktop instead of the WSL 1&2 in initial phase) part, leveraging chocolatey package manager as homebrew was used in macOS
- Fully optimized for CN users, for now, git/apt/yum repo were not optimised, newly installed docker repo, brew repo were automatically optimised for CN internet access
- Packaging similar content into homebrew/chocolatey?
- CI/UT