微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

我可以将 mlDatabasesWithForestsOnOneHost 与副本一起使用吗?

如何解决我可以将 mlDatabasesWithForestsOnOneHost 与副本一起使用吗?

当我尝试将 mlPrintForestPlan 与 3 节点集群中的副本一起使用时,

mlDatabasesWithForestsOnOneHost 出现错误

# gradle-prod.properties
mlDatabasesWithForestsOnOneHost=myApp-modules,myApp-schemas,myApp-triggers
mlDatabaseNamesAndReplicaCounts=myApp-content,1,myApp-modules,myApp-triggers,1

mlPrintForestPlan 命令显示上述配置错误。我是否需要指定其他内容来仅在一台主机上设置数据库,并在另一台主机上设置副本?

./gradlew mlPrintForestPlan -Pdatabase=myApp-modules -PenvironmentName=prod
> Task :mlPrintForestPlan Failed

FAILURE: Build Failed with an exception.

* What went wrong:
Execution Failed for task ':mlPrintForestPlan'.
> Not enough hosts exists to create 1 replicas for database 'myApp-modules'; possible hosts,which may include the host with the primary forest and thus cannot have a replica: [myHost1]

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build,making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD Failed in 4s
1 actionable task: 1 executed

版本:

  • MarkLogic:10.0-5.1
  • ml-gradle:6.3
  • JDK:openjdk 版本“13.0.2” 2020-01-14

解决方法

如果它不起作用,这听起来像是一个未经测试的场景 - 只需在 ml-app-deployer 中创建一个新票证,以获取对为配置为仅在一台主机上具有森林的数据库创建副本的支持。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?