无法在OrientDB分布式模式下创建数据库

时间:2018-11-08 12:21:22

标签: kubernetes orientdb hazelcast

我使用Kubernetes在分布式模式下设置了OrientDB(3.0.10)。我尝试用一​​些数据填充每个pod的数据库。因此,我在其中一个节点上运行了控制台,并尝试创建数据库,这就是输出:

self.plot = self.plotWidget.addPlot(axisItem={'bottom': axis})

在此节点和群集的其他节点上创建数据库的文件夹:

   orientdb> create database remote:localhost/Test root rootpwd PLOCAL
    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 open database 'Test'
    Error: com.orientechnologies.orient.server.distributed.ODistributedException: No active nodes found to execute command: sql.select from OUser where name = ? limit 1
orientdb {server=remote:localhost/Test}> 

但是,当我尝试通过控制台从每个节点连接到数据库时,出现错误:

+-----------------------+------+---------------------------+-----+---------+---------------+---------------+------------------------+
|Name                   |Status|Databases                  |Conns|StartedOn|Binary         |HTTP           |UsedMemory              |
+-----------------------+------+---------------------------+-----+---------+---------------+---------------+------------------------+
|orientdbservice-1      |ONLINE|Test=ONLINE (MASTER)       |5    |11:50:22 |172.17.0.8:2424|172.17.0.8:2480|283.58MB/1.93GB (14.32%)|
|orientdbservice-2      |ONLINE|Test=NOT_AVAILABLE (MASTER)|4    |11:50:31 |172.17.0.9:2424|172.17.0.9:2480|265.17MB/1.93GB (13.39%)|
|orientdbservice-0(*)(@)|ONLINE|Test=NOT_AVAILABLE (MASTER)|4    |11:50:12 |172.17.0.7:2424|172.17.0.7:2480|288.95MB/1.93GB (14.60%)|
+-----------------------+------+---------------------------+-----+---------+---------------+---------------+------------------------+
 [OHazelcastPlugin]

此消息出现在群集的日志中:

orientdb> connect remote:localhost/Test root rootpwd
Connecting to database [remote:localhost/Test] with user 'root'...
Error: com.orientechnologies.orient.core.exception.ODatabaseException: Cannot open database 'Test'
    DB name="Test"
Error: com.orientechnologies.orient.core.exception.ODatabaseException: Cannot open database 'Test'
Error: com.orientechnologies.orient.server.distributed.ODistributedException: No active nodes found to execute command: sql.select from OUser where name = ? limit 1
orientdb {server=remote:localhost/Test}>

这种行为的原因可能是什么?我应该在集群配置中修复某些问题吗? 我关注了this tutorial

0 个答案:

没有答案