-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* add NebulaGraph Lite (#2535) * add NebulaGraph Lite #2526 * Update 8.deploy-nebula-graph-with-lite.md * Update 8.deploy-nebula-graph-with-lite.md * update * update * update * update * update * Update 8.deploy-nebula-graph-with-lite.md * Update 8.deploy-nebula-graph-with-lite.md
- Loading branch information
1 parent
3671afa
commit e153f27
Showing
3 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
...tallation/2.compile-and-install-nebula-graph/8.deploy-nebula-graph-with-lite.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Deploy NebulaGraph with NebulaGraph Lite | ||
|
||
Using [NebulaGraph Lite](https://github.com/nebula-contrib/nebulagraph-lite) can quickly deploy NebulaGraph and start experiencing NebulaGraph in just five minutes. It is ideal for ad-hoc development and learning NebulaGraph. | ||
|
||
## Benefits | ||
|
||
- Quick installation of NebulaGraph Lite through the Python package management tool. | ||
- NebulaGraph Lite supports the deployment of NebulaGraph with non-root permission. | ||
- NebulaGraph Lite supports the deployment of NebulaGraph in containers or any Jupyter Notebook platform on Linux-based systems. | ||
|
||
## Steps | ||
|
||
1. Run the following statement to install NebulaGraph Lite. | ||
|
||
```bash | ||
pip3 install nebulagraph-lite | ||
``` | ||
|
||
2. Start NebulaGraph Lite. NebulaGraph Lite automatically deploys and starts a single-node NebulaGraph service, and imports a test dataset. | ||
|
||
- Start from Jupyter Notebook | ||
|
||
```bash | ||
from nebulagraph_lite import nebulagraph_let as ng_let | ||
n = ng_let() | ||
n.start() | ||
``` | ||
|
||
- Start from the command line | ||
|
||
```bash | ||
nebulagraph start | ||
``` | ||
|
||
The following result is returned indicating that the startup and import of the test dataset was successful. | ||
|
||
```bash | ||
Info: loading basketballplayer dataset... | ||
_ _ _ _ ____ _ | ||
| \ | | ___| |__ _ _| | __ _ / ___|_ __ __ _ _ __ | |__ | ||
| \| |/ _ | '_ \| | | | |/ _` | | _| '__/ _` | '_ \| '_ \ | ||
| |\ | __| |_) | |_| | | (_| | |_| | | | (_| | |_) | | | | | ||
|_| \_|\___|_.__/ \__,_|_|\__,_|\____|_| \__,_| .__/|_| |_| | ||
|_| | ||
lite version | ||
|
||
[ OK ] nebulagraph_lite started successfully! | ||
``` | ||
## What's next | ||
- Connect to NebulaGraph with [NebulaGraph Jupyter Extension](https://jupyter-nebulagraph.readthedocs.io/en/latest/). | ||
- Connect to NebulaGraph with [NebulaGraph Console](../connect-to-nebula-graph.md). |
54 changes: 54 additions & 0 deletions
54
...tallation/2.compile-and-install-nebula-graph/8.deploy-nebula-graph-with-lite.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# 使用 NebulaGraph Lite 部署 {{nebula.name}} | ||
|
||
使用 [NebulaGraph Lite](https://github.com/nebula-contrib/nebulagraph-lite) 可以快速安装部署 {{nebula.name}},仅需五分钟即可开始体验 {{nebula.name}} 图数据库,适用于临时开发、学习 {{nebula.name}}。 | ||
|
||
## 优势 | ||
|
||
- 通过 Python 包管理工具快速安装 NebulaGraph Lite。 | ||
- 支持非 Root 权限部署 {{nebula.name}}。 | ||
- 支持在容器或基于 Linux 系统的 Jupyter Notebook 平台上部署 {{nebula.name}}。 | ||
|
||
## 操作步骤 | ||
|
||
1. 执行如下命令安装 NebulaGraph Lite。 | ||
|
||
```bash | ||
pip3 install nebulagraph-lite | ||
``` | ||
|
||
2. 启动 NebulaGraph Lite。NebulaGraph Lite 会自动部署并启动单节点 {{nebula.name}} 服务,以及导入测试数据集。 | ||
|
||
- 从 Jupyter Notebook 启动 | ||
|
||
```bash | ||
from nebulagraph_lite import nebulagraph_let as ng_let | ||
n = ng_let() | ||
n.start() | ||
``` | ||
|
||
- 从命令行启动 | ||
|
||
```bash | ||
nebulagraph start | ||
``` | ||
|
||
返回如下结果表示启动并导入测试数据集成功。 | ||
|
||
```bash | ||
Info: loading basketballplayer dataset... | ||
_ _ _ _ ____ _ | ||
| \ | | ___| |__ _ _| | __ _ / ___|_ __ __ _ _ __ | |__ | ||
| \| |/ _ | '_ \| | | | |/ _` | | _| '__/ _` | '_ \| '_ \ | ||
| |\ | __| |_) | |_| | | (_| | |_| | | | (_| | |_) | | | | | ||
|_| \_|\___|_.__/ \__,_|_|\__,_|\____|_| \__,_| .__/|_| |_| | ||
|_| | ||
lite version | ||
|
||
[ OK ] nebulagraph_lite started successfully! | ||
``` | ||
## 下一步 | ||
- 使用[NebulaGraph Jupyter Extension](https://jupyter-nebulagraph.readthedocs.io/en/latest/)连接 {{nebula.name}}。 | ||
- 使用[NebulaGraph Console](../connect-to-nebula-graph.md)连接 {{nebula.name}}。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters