簡體   English   中英

為什么neo4j的.db文件路徑無效?

[英]Why the path of the .db files for the neo4j are invalid?

我正在嘗試配置我的neo4j服務器(在Mac )使用dbpedia4neo這里是neo4j-server.properties文件:

################################################################
# Neo4j configuration
#
################################################################

#***************************************************************
# Server configuration
#***************************************************************

# location of the database directory 
org.neo4j.server.database.location=/Users/0x90/dbpedia4neo/index.db

# let the webserver only listen on the specified IP. Default
# is localhost (only accept local connections). Uncomment to allow
# any connection. Please see the security section in the neo4j 
# manual before modifying this.
#org.neo4j.server.webserver.address=0.0.0.0

#
# HTTP Connector
#

# http port (for all data, administrative, and UI access)
org.neo4j.server.webserver.port=7474

#
# HTTPS Connector
#

# Turn https-support on/off
org.neo4j.server.webserver.https.enabled=true

# https port (for all data, administrative, and UI access)
org.neo4j.server.webserver.https.port=7473

# Certificate location (auto generated if the file does not exist)
org.neo4j.server.webserver.https.cert.location=conf/ssl/snakeoil.cert

# Private key location (auto generated if the file does not exist)
org.neo4j.server.webserver.https.key.location=conf/ssl/snakeoil.key

# Internally generated keystore (don't try to put your own
# keystore there, it will get deleted when the server starts)
org.neo4j.server.webserver.https.keystore.location=data/keystore

#*****************************************************************
# Administration client configuration
#*****************************************************************

# location of the servers round-robin database directory. possible values:
# - absolute path like /var/rrd
# - path relative to the server working directory like data/rrd
# - commented out, will default to the database data directory.
org.neo4j.server.webadmin.rrdb.location=data/rrd

# REST endpoint for the data API
# Note the / in the end is mandatory
org.neo4j.server.webadmin.data.uri=/db/data/

# REST endpoint of the administration API (used by Webadmin)
org.neo4j.server.webadmin.management.uri=/db/manage/

# Low-level graph engine tuning file
org.neo4j.server.db.tuning.properties=conf/neo4j.properties


# Comma separated list of JAX-RS packages containing JAX-RS resources, one package name for each mountpoint.
# The listed package names will be loaded under the mountpoints specified. Uncomment this line
# to mount the org.neo4j.examples.server.unmanaged.HelloWorldResource.java from neo4j-examples
# under /examples/unmanaged, resulting in a final URL of
# http://localhost:7474/examples/unmanaged/helloworld/{nodeId}
#org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.examples.server.unmanaged=/examples/unmanaged


#*****************************************************************
# HTTP logging configuration
#*****************************************************************

# HTTP logging is disabled. HTTP logging can be enabled by setting this property to 'true'.
org.neo4j.server.http.log.enabled=false 

# Logging policy file that governs how HTTP log output is presented and archived.
# Note: changing the rollover and retention policy is sensible, but changing the
# output format is less so, since it is configured to use the ubiquitous common log format
org.neo4j.server.http.log.config=conf/neo4j-http-logging.xml

我擁有的.db文件的替代方案是:

./index/lucene-store.db
./index/neostore.relationshipstore.db
./index/neostore.relationshipstore.db/index/lucene-store.db
./index/neostore.relationshipstore.db/neostore.nodestore.db
./index/neostore.relationshipstore.db/neostore.propertystore.db
./index/neostore.relationshipstore.db/neostore.relationshipstore.db
./index/neostore.relationshipstore.db/neostore.relationshiptypestore.db
./index.db
./neostore.nodestore.db
./neostore.propertystore.db
./neostore.relationshipstore.db
./neostore.relationshiptypestore.db
./upgrade_backup/neostore.nodestore.db
./upgrade_backup/neostore.propertystore.db
./upgrade_backup/neostore.relationshipstore.db
./upgrade_backup/neostore.relationshiptypestore.db

但是當我嘗試它們時,我得到了這個錯誤:

./bin/neo4j start
Starting Neo4j Server...WARNING: not changing user
process [31011]... waiting for server to be ready.. Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.

這是日志:

java.lang.IllegalArgumentException: Invalid value '/Users/0x90/dbpedia4neo/index.db' for config property 'store_dir': Must be a valid file path.
    at org.neo4j.graphdb.factory.GraphDatabaseSetting.illegalValue(GraphDatabaseSetting.java:963)
    at org.neo4j.graphdb.factory.GraphDatabaseSetting.illegalValue(GraphDatabaseSetting.java:951)
    at org.neo4j.graphdb.factory.GraphDatabaseSetting$DirectorySetting.validate(GraphDatabaseSetting.java:668)
    at org.neo4j.graphdb.factory.GraphDatabaseSetting.validate(GraphDatabaseSetting.java:903)
    at org.neo4j.kernel.configuration.ConfigurationValidator.validate(ConfigurationValidator.java:50)
    at org.neo4j.kernel.configuration.Config.applyChanges(Config.java:125)
    at org.neo4j.kernel.configuration.Config.<init>(Config.java:81)
    at org.neo4j.kernel.InternalAbstractGraphDatabase.<init>(InternalAbstractGraphDatabase.java:206)
    at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:77)
    at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:70)
    at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:205)
    at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:55)
    at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:103)
    at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:79)
    at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:46)

路徑值應指向包含數據庫文件的目錄,而不是單個文件。

試試吧

org.neo4j.server.database.location=/Users/0x90/dbpedia4neo

暫無
暫無

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

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