kubernetes - 分布式 OrientDB 在 kubernetes 中相互连接的问题
问题描述
我们在 2 个不同区域的 Kubernetes 中部署了一个分布式 orientdb,我们计划在更改密码后更改 orientdb 中的 root 密码,其中一个集群正常工作,但另一个开始给出以下日志,
DB name=“OurDB”
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:323)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:259)
at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:988)
at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:958)
at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:949)
at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.openDatabase(ONetworkProtocolBinary.java:915)
at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.handshakeRequest(ONetworkProtocolBinary.java:249)
at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.execute(ONetworkProtocolBinary.java:214)
at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:82)
Caused by: com.orientechnologies.orient.core.exception.OStorageException: Cannot open storage it is acquired by other process
and this–
DB name=“OSystem”
at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedStorageDirtyFlag.lockFile(OPaginatedStorageDirtyFlag.java:109)
at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedStorageDirtyFlag.open(OPaginatedStorageDirtyFlag.java:142)
at com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.preOpenSteps(OLocalPaginatedStorage.java:438)
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:271)
… 18 more
$ANSI{green {db=videoDB}} authenticate()
com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage ‘/orientdb/databases/OSystem’ with mode=rw
“”</p>
当我们尝试更改管理员密码时,它给出 com.orientechnologies.orient.server.distributed.ODistributedException: Quorum (2) cannot be reach on server "server2 name" 因为它比可用节点 (1) 大
为什么 orientdb 想要在 mode=rw 中打开 OSystem db?它不是我们创建的,并且 OSystem 数据库是空的。为什么一个集群中的 db 允许我更改密码,而另一个集群给了我 Ouorum 问题?
提前致谢
解决方案
推荐阅读
- python - ElementTree 解析 xml 文件 - 解析问题
- excel - Excel VBA:无法从 VBA 中的日期变量填写
- docker - 如何从 docker 容器在主机中运行 bash 脚本并获得结果
- python - 使用python将列值与数据框中的int进行比较
- python - Python 进入一个什么都不做的无限循环
- here-api - HERE API 演示与实际
- c# - 通过 HTTP 连接到 Azure Redis 缓存
- ascii - Pentaho 加载带有 ASCII 分隔符的纯文本文件
- json - 在 JSend 规范中,fail 和 error 有什么区别?
- python - 使用 ptb 进行 Python 日志记录:同一行记录了两次,但只添加了一个处理程序