是否有可能使用的NodeJS TinkerPop有关/精怪在OrientDB操纵数据?

问题描述 投票:1回答:1

我想连接我的本地使用的NodeJS精怪/ TinkerPop有关到远程OrientDB 3.x的实例(NO JVM)的应用程序。这是可能的呢?怎么样?

我试了一下使用“小鬼”故宫图书馆没有成功。

const gremlin = require('gremlin');

const DriverRemoteConnection = gremlin.driver.DriverRemoteConnection;
const traversal = gremlin.process.traversal;
const PlainTextSaslAuthenticator = gremlin.driver.auth.PlainTextSaslAuthenticator;

const authenticator = new PlainTextSaslAuthenticator('root', 'admin');
const g = await traversal().withRemote(new DriverRemoteConnection('wss://localhost:8182/demodb', {authenticator: authenticator}));

并希望它来连接,而是我得到这个错误:

Unhandled exception at: Error: Client network socket disconnected before secure TLS connection was established
    at TLSSocket.onConnectEnd (_tls_wrap.js:1177:19)
    at Object.onceWrapper (events.js:285:13)
    at TLSSocket.emit (events.js:202:15)
    at endReadableNT (_stream_readable.js:1129:12)
    at processTicksAndRejections (internal/process/next_tick.js:76:17)
orientdb gremlin tinkerpop3
1个回答
0
投票

好吧,我用管理URL ws://localhost:8182/gremlin做到这一点,和小鬼访问的数据库我在OrientDB文件夹中的文件gremlin-server.yaml配置。

© www.soinside.com 2019 - 2024. All rights reserved.