Ich versuche zu erstellen, meine Java-Webanwendung mit orient-db auf einer CENTOS7-Maschine bereitzustellen. Derzeit habe ich Orient-db auf einem root privilegierten Benutzer eingerichtet ~/softwares/$ ORIENTDB_HOME Der Server wurde erfolgreich auf der ersten Konfiguration mit Benutzername und Passwort und Start eingerichtet.Kann OrientDB nicht konfigurieren - Java-Integration auf CENTOS7
orientdb> CREATE DATABASE remote:localhost/test root root plocal
Ich bin jetzt eine Remote-DB zu erstellen versuchen, durch meine Java-Anwendung zugegriffen werden soll, unter Verwendung der Datenbank-Befehl erstellen, wie nach console.sh läuft folgt Aber ich erhalte die folgende Störung
Creating database [remote:localhost/test] using the storage type [plocal]... Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot create the remote storage: test
Error: com.orientechnologies.orient.core.exception.ODatabaseException: Cannot create database 'test' DB name="test" DB name="test"
Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot create folders in storage with path /softwares/orientdb-community-2.2.5/orientdb-community-2.2.5/databases/test DB name="test"
Ich versuchte CHMODing die .sh Bin-Verzeichnisse sowie die $ ORIENTDB_HOME/Datenbanken-Verzeichnis, aber das Problem bleibt bestehen.
aber es mir erlaubt, ein DB mit PLOCAL
orientdb> CREATE DATABASE plocal:localhost/test root root plocal
zu schaffen, aber dann bekomme ich die folgende Fehlermeldung auf dem Java-Ende
$ java -jar dataloader-jar-with-dependencies.ja
2016-11-24 20:10:41 DEBUG ASMLoader:38 - connecting to:plocal:localhost/asm
2016-11-24 20:10:41 DEBUG ASMLoader:39 - uname:admin
2016-11-24 20:10:41 DEBUG ASMLoader:40 - password :admin
Exception in thread "main" com.orientechnologies.orient.core.exception.ODatabaseException: Error on opening database 'plocal:localhost/asm' at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.(ODatabaseDocumentTx.java:190) at com.orientechnologies.orient.core.db.OPartitionedDatabasePool$DatabaseDocumentTxPooled.(OPartitionedDatabasePool.java:421) at com.orientechnologies.orient.core.db.OPartitionedDatabasePool$DatabaseDocumentTxPooled.(OPartitionedDatabasePool.java:417) at com.orientechnologies.orient.core.db.OPartitionedDatabasePool.initQueue(OPartitionedDatabasePool.java:353) at com.orientechnologies.orient.core.db.OPartitionedDatabasePool.(OPartitionedDatabasePool.java:114) at com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.(OrientGraphFactory.java:71) at com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.(OrientGraphFactory.java:52) at com.virtusa.asm.repo.ASMLoader.main(ASMLoader.java:42) Caused by: com.orientechnologies.orient.core.exception.OConfigurationException: Error on opening database: the engine 'plocal' was not found. URL was: plocal:localhost/asm. Registered engines are: [remote] DB name="plocal:localhost/asm" at com.orientechnologies.orient.core.Orient.loadStorage(Orient.java:462) at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.(ODatabaseDocumentTx.java:170) ... 7 more
Hav Hast du versucht den Ordner/databases/test zu erstellen und CHMODing? Versuchen Sie es auch mit der neuesten Version 2.2.13. –