помогите пжл не понимаю в чем ошибка обясните ктот нибудь

46 views
Skip to first unread message

Raiymbek Nagashybaev

unread,
May 13, 2016, 6:09:13 PM5/13/16
to OrientDB
orientdb> create database remote:localhost/people root root local

Creating database [remote:localhost/people] using the storage type [local]...Cannot create the remote storage: people
com.orientechnologies.orient.enterprise.channel.binary.OResponseProcessingException: Exception during response processing.
        at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.throwSerializedException(OChannelBinaryAsynchClient.java:447)
        at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.handleStatus(OChannelBinaryAsynchClient.java:399)
        at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:283)
        at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:171)
        at com.orientechnologies.orient.client.remote.OStorageRemote.beginResponse(OStorageRemote.java:2162)
        at com.orientechnologies.orient.client.remote.OStorageRemote.getResponse(OStorageRemote.java:2170)
        at com.orientechnologies.orient.client.remote.OServerAdmin.createDatabase(OServerAdmin.java:206)
        at com.orientechnologies.orient.client.remote.OServerAdmin.createDatabase(OServerAdmin.java:171)
        at com.orientechnologies.orient.console.OConsoleDatabaseApp.createDatabase(OConsoleDatabaseApp.java:333)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.orientechnologies.common.console.OConsoleApplication.execute(OConsoleApplication.java:395)
        at com.orientechnologies.common.console.OConsoleApplication.executeCommands(OConsoleApplication.java:256)
        at com.orientechnologies.common.console.OConsoleApplication.run(OConsoleApplication.java:141)
        at com.orientechnologies.orient.graph.console.OGremlinConsole.main(OGremlinConsole.java:66)
Caused by: java.lang.IllegalArgumentException: Cannot create database: storage mode 'local' is not supported.
        at com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.getDatabaseInstance(OBinaryNetworkProtocolAbstract.java:323)
        at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.createDatabase(ONetworkProtocolBinary.java:1107)
        at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:300)
        at com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:223)
        at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:77)

Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot create the remote storage: people

Error: com.orientechnologies.orient.enterprise.channel.binary.OResponseProcessingException: Exception during response processing.

Error: java.lang.IllegalArgumentException: Cannot create database: storage mode 'local' is not supported.

Luca Son

unread,
May 13, 2016, 6:38:50 PM5/13/16
to OrientDB
Hi,

If I launch your command from console I obtain your same error:

orientdb {server=remote:localhost/}> create database remote:localhost/people root root local

Creating database [remote:localhost/people] using the storage type [local]...Cannot create the remote storage: people
com.orientechnologies.orient.enterprise.channel.binary.OResponseProcessingException: Exception during response processing.
        at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.throwSerializedException(OChannelBinaryAsynchClient.java:447)
        at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.handleStatus(OChannelBinaryAsynchClient.java:399)
        at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:283)
        at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:171)
        at com.orientechnologies.orient.client.remote.OStorageRemote.beginResponse(OStorageRemote.java:2162)
        at com.orientechnologies.orient.client.remote.OStorageRemote.getResponse(OStorageRemote.java:2170)
        at com.orientechnologies.orient.client.remote.OServerAdmin.createDatabase(OServerAdmin.java:206)
        at com.orientechnologies.orient.client.remote.OServerAdmin.createDatabase(OServerAdmin.java:171)
        at com.orientechnologies.orient.console.OConsoleDatabaseApp.createDatabase(OConsoleDatabaseApp.java:333)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.orientechnologies.common.console.OConsoleApplication.execute(OConsoleApplication.java:395)
        at com.orientechnologies.common.console.OConsoleApplication.executeCommands(OConsoleApplication.java:256)
        at com.orientechnologies.common.console.OConsoleApplication.run(OConsoleApplication.java:141)
        at com.orientechnologies.orient.graph.console.OGremlinConsole.main(OGremlinConsole.java:66)
Caused by: java.lang.IllegalArgumentException: Cannot create database: storage mode 'local' is not supported.
        at com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.getDatabaseInstance(OBinaryNetworkProtocolAbstract.java:323)
        at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.createDatabase(ONetworkProtocolBinary.java:1107)
        at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:300)
        at com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:223)
        at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:77)

Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot create the remote storage: people

Error: com.orientechnologies.orient.enterprise.channel.binary.OResponseProcessingException: Exception during response processing.

Error: java.lang.IllegalArgumentException: Cannot create database: storage mode 'local' is not supported.


This happens because you have to use the plocal storage type instead of local:

orientdb {server=remote:localhost/}> create database remote:localhost/people root root plocal

Creating database [remote:localhost/people] using the storage type [plocal]...
Disconnecting from remote server [remote:localhost/]...
OK
Connecting to database [remote:localhost/people] with user 'admin'...OK
Database created successfully.

Current database is: remote:localhost/people
orientdb {db=people}>


Hope to have been helpful

Luca
Reply all
Reply to author
Forward
0 new messages