如何在 Neo4j 中迁移/移位/复制/移动数据 [英] How to migrate/shift/copy/move data in Neo4j

查看:29
本文介绍了如何在 Neo4j 中迁移/移位/复制/移动数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何将数据从 Neo4j 的一个实例迁移到另一个实例吗?更准确地说,我想知道如何将数据从本地机器上的一个 Neo4j 实例移动到远程机器上的另一个实例.有没有人对此有任何想法.

Does any one know how to migrate data from one instance of Neo4j to another. To be more precise, I want to know, how to move the data from one instance of Neo4j on my local machine to another on remote machine. Does any one have any idea about it.

我正在使用 Eclipse 和 Embedded Neo4j 在我的 Windows 机器上工作.我需要将此数据传输到 Centos 机器上的远程 Neo4j 实例.请帮我解决一下这个.

I'm working on my windows machine with Eclipse and Embedded Neo4j . I need to transfer this data to remote Neo4j instance on a Centos machine. Please help me with this.

推荐答案

在使用 neo4j-import 工具后,我发现了以下解决方法,用于将数据从集群中的服务器复制到所有其他服务器:

I found out the following workaround for copying the data from a server in the cluster to all others, after using the neo4j-import tool:

  1. 停止所有节点.

  1. Stop all nodes.

在需要复制数据的新节点/服务器上,您必须为该图创建数据库文件夹(在我的情况下为 loadTest):/neo4j-enterprise-3.1.0/data/databases/loadTest.db

On the new node/server, where you need your data to be copied, you have to create the database folder for that graph (in my case loadTest): /neo4j-enterprise-3.1.0/data/databases/loadTest.db

然后,保存数据的源节点/服务器,您必须将 neostore.id 文件复制到目标服务器 db 文件夹(上一步中的 loadTest.db).

Then, the source node/server that is holding the data, you have to copy here the neostore.id file to the destination server db folder (loadTest.db from the previous step).

启动所有节点.在后台,neo4j 会将数据从其他集群服务器复制到新节点.

Start all nodes. In the background neo4j will copy data from other cluster servers to the new node.

这篇关于如何在 Neo4j 中迁移/移位/复制/移动数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆