我正在使用Flux
将拓扑部署到远程集群。是否可以通过命令行传递nimbus.seeds
以便我可以使用Flux将拓扑部署到不同的群集。
我正在使用此链接here进行使用flux的部署。它说我们应该使用-c
标志,但是没有用。我正在运行以下命令:
storm jar path\to\jar org.apache.storm.flux.Flux --remote .\config.yaml --filter .\src\main\resources\application.properties -c 'nimbus.seeds=["my-nimbus"]'
我遇到以下异常:
Exception in thread "main" java.lang.IllegalArgumentException: Field NIMBUS_SEEDS must be an Iterable but was a class java.lang.String
at org.apache.storm.validation.ConfigValidationUtils$2.validateField(ConfigValidationUtils.java:125)
at org.apache.storm.validation.ConfigValidationUtils$NestableFieldValidator.validateField(ConfigValidationUtils.java:48)
at org.apache.storm.validation.ConfigValidation$ListEntryTypeValidator.validateField(ConfigValidation.java:304)
at org.apache.storm.validation.ConfigValidation$ListEntryTypeValidator.validateField(ConfigValidation.java:299)
at org.apache.storm.validation.ConfigValidation.validateField(ConfigValidation.java:640)
at org.apache.storm.validation.ConfigValidation.validateFields(ConfigValidation.java:675)
at org.apache.storm.validation.ConfigValidation.validateFields(ConfigValidation.java:654)
at org.apache.storm.StormSubmitter.validateConfs(StormSubmitter.java:559)
at org.apache.storm.StormSubmitter.submitTopologyAs(StormSubmitter.java:207)
at org.apache.storm.StormSubmitter.submitTopology(StormSubmitter.java:387)
at org.apache.storm.flux.Flux.runCli(Flux.java:176)
at org.apache.storm.flux.Flux.main(Flux.java:103)
预先感谢:)