简体   繁体   English

覆盖typesafe配置列表以使其在命令行上为空

[英]override typesafe configuration list to empty on command line

How can I override a list in typesafe configuration to empty list ? 如何将类型安全配置中的列表覆盖为空列表

My error is 我的错误是

has type STRING rather than LIST

for experimenting with: 用于试验:

--conf "spark.driver.extraJavaOptions=-Dvalue-foo=''"
--conf "spark.driver.extraJavaOptions=-Dvalue-foo=[]"

how can i override a typesafe config list value on the command line? 如何在命令行上覆盖Typesafe配置列表值? only outlines how to set specific values 仅概述如何设置特定值

This was an mitigation but as cant override Typesafe configuration on commmandline in spark is working no longer required. 这是一种缓解措施,但由于无法覆盖spark中的commmandline上的Typesafe配置,因此不再需要。

Also, it seems that this is currently unsupported behavior: https://github.com/lightbend/config/issues/380 另外,这似乎是当前不受支持的行为: https : //github.com/lightbend/config/issues/380

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM