Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc]Dump tool #1554

Merged
merged 6 commits into from
Jan 14, 2020
Merged

[doc]Dump tool #1554

merged 6 commits into from
Jan 14, 2020

Conversation

amber-moe
Copy link
Contributor

As title. Code pr #1479

@amber-moe amber-moe changed the title [doc]Dump tool [doc DRAFT]Dump tool Dec 30, 2019
@amber-moe amber-moe changed the title [doc DRAFT]Dump tool [doc]Dump tool Jan 6, 2020
@dutor dutor added the ready-for-testing PR: ready for the CI test label Jan 6, 2020
Copy link
Contributor

@whitewum whitewum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有些提示性的改动

@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing passed.


Dump Tool 源码位于 `nebula/src/tools/db_dump` 下,用户可以执行 `make db_dump` 命令来编译生成该工具。在使用本工具前,你可以使用 **Nebula Graph** CLI 的 [SHOW HOSTS](../../../../../2.query-language/4.statement-syntax/3.utility-statements/show-syntax.md) 命令查看分区的分布。使用 `vertex_id % partition_num` 来计算点对应的 [key](../../../../../1.overview/3.design-and-architecture/2.storage-design.md) 位于哪个分区。

**注意:** 该工具通过直接打开 RocksDB 转储数据,因此需要离线使用——拷贝本工具到对应 storaged 所在机器,关闭该 storaged 进程,并同时保持 meta_server 已启动。具体用法请参考下方说明。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

db_dump would be packaged into the rpm, it usually already on the machine.

wilsonyou
wilsonyou previously approved these changes Jan 14, 2020
@dutor dutor merged commit 713cddb into vesoft-inc:master Jan 14, 2020
@amber-moe amber-moe deleted the dump-tool branch January 14, 2020 05:44
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
* dump tool doc

* add dump tool in toc

* wilson

* wum

* cpw

Co-authored-by: dutor <440396+dutor@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants