簡體   English   中英

從Windows導入neo4j數據庫到ubuntu

[英]import neo4j database from windows to ubuntu

我在Windows機器上創建了neo4j數據庫。 我已經將數據庫目錄的內容轉移到了我的linux機器上。 這是因為我有不支持備份功能的社區版。

mtt@mttPC:/var/lib/neo4j/data/log$ sudo service neo4j-service start
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
WARNING! You are using an unsupported Java runtime. 
* Please use Oracle(R) Java(TM) 7 to run Neo4j Server. Download "Java Platform (JDK) 7" from:
  http://www.oracle.com/technetwork/java/javase/downloads/index.html
* Please see http://docs.neo4j.org/ for Neo4j Server installation instructions.
Using additional JVM arguments:  -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
Starting Neo4j Server...WARNING: not changing user
process [21498]... waiting for server to be ready..... Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.

數據庫目錄中的messages.log文件什么也沒說。

任何想法? Windows和linux neo4j是否兼容? 謝謝。

編輯

我在ubuntu機器上重新安裝了neo4j。

現在我終於得到一些日志:

2014-05-16 20:01:10.958+0000 ERROR [o.n.k.EmbeddedGraphDatabase]: Startup failed: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager@25984c63' was successfully initialized, but failed to start. Please see attached cause exception.: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource@3d34dcb' was successfully initialized, but failed to start. Please see attached cause exception.: 'neostore' has a store version number that we cannot upgrade from. Expected 'NeoStore v0.A.0' but file is version 'NeoStore v0.A.2'.
2014-05-16 20:01:10.958+0000 INFO  [o.n.k.EmbeddedGraphDatabase]: Shutdown started

我應該與相關,但是我不確定如何進行。 問題是否與以下事實有關:復制數據庫時,我剛剛從neo4j窗口停止了Windows計算機上的neo4j?

沒有理由不能在操作系統之間轉移Neo4j數據庫。 您能否提供data/log/console.log的輸出? 首先想到的是您可能有權限問題。 對於Neo4j進程將以其運行的用戶,文件應該是讀/寫的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM