Questions tagged [hocon]

HOCON (Human-Optimized Config Object Notation) keep the semantics (tree structure; set of types; encoding/escaping) from JSON, but make it more convenient as a human-editable config file format.

HOCON (Human-Optimized Config Object Notation) keeps the semantics (tree structure; set of types; encoding/escaping) from JSON, but makes it more convenient as a human-editable config file format.

https://github.com/typesafehub/config/blob/master/HOCON.md

90 questions
0
votes
1 answer

Scala changing parquet path in config (typesafe)

Currently I have a configuration file like this: project { inputs { baseFile { paths = ["project/src/test/resources/inputs/parquet1/date=2020-11-01/"] type = parquet applyConversions = false } } } And I want to change…
0
votes
1 answer

How to censor/hide a HOCON value from appearing in Ktor logs

Using Ktor as a web server and configuring it with the (HOCON) application.conf file. I've setup a default password for connecting to a database in the configuration, as well as the ability for it to be overridden with an environment variable. When…
Morgan
  • 303
  • 2
  • 15
0
votes
0 answers

How to load a hocon config into a case class dynamically at run time

I am working on a library that will take a user config hocon and user provide case class(in the classpath of the user application), I need to read the hocon config to the case class dynamically at runtime.. Dynamically I mean here that I would not…
Praneeth Ramesh
  • 3,434
  • 1
  • 28
  • 34
0
votes
3 answers

Read Hocon config as a Map[String, String] with key in dot notation and value

I have following HOCON config: a { b.c.d = "val1" d.f.g = "val2" } HOCON represents paths "b.c.d" and "d.f.g" as objects. So, I would like to have a reader, which reads these configs as Map[String, String], ex: Map("b.c.d" -> "val1", "d.f.g" ->…
user23
  • 21
  • 6
0
votes
0 answers

Library or algorithm to convert a HOCON string to a valid json string

I am limited to using hocon for our config files in our java app's. My problem is I cannot change the format but I now need to store it in another backend that only accepts flat yaml files. Example app.conf file: play { http { port = 9000 …
Louis B
  • 342
  • 1
  • 5
  • 21
0
votes
0 answers

HOCON : How to limit the base include

I am using a HOCON configuration file where I am having a base file like Value{ key1{ somekey: testvalue } key2{ somekey: testvalue } } There are 2 derived confs which are like below Conf1 include "base" value{ …
Swaraj
  • 589
  • 4
  • 15
0
votes
1 answer

Do we have a proper serializable for HOCON which would respect the order or does a inline replacement in java?

I am developing an application in java where it has a config file(I am choosing HOCON, if we have other option please let me know which meets my requirement ) and a UI for editing the config file. Users can either edit the config file directly or…
user7131571
  • 239
  • 2
  • 3
  • 12
0
votes
3 answers

How to add a new node to an existing corda network?

I have a use case where I need to add a new node to an existing Corda network (let's say in existing Corda network 2 nodes are running currently (A, B node) and now need to add node C to this network. I went through following links as well but no…
0
votes
1 answer

How to insert bash script into Hocon variable

I have a kubernetes yaml file with a bash script as variable value. I would like to translate the yaml to Hocon / Typsafe .conf format so I can inject variables and translate to yaml on they fly. If possible How do I translate this value to…
Rubber Duck
  • 3,673
  • 3
  • 40
  • 59
0
votes
1 answer

How can I get the HOCON configuration file format to work in Vert.x deployed as fat jar?

I want to use the HOCON format for configuration in a Vert.x application deployed as a fat jar. I'm facing the same issue as described in this similar question. However I applied the gradle Plugin "io.vertx.vertx-plugin" (v1.0.1) and succeeded in…
A. Gldmn
  • 11
  • 2
0
votes
1 answer

How to merge an Object and non-object-valued in HOCON?

I am using HOCON configuration in my project. But I am stuck with Configuring a Hive connection. The HOCON doc says: The JSON spec does not clarify how duplicate keys in the same object should be handled. In HOCON, duplicate keys that appear…
Adelin
  • 18,144
  • 26
  • 115
  • 175
0
votes
2 answers

How to Enable Scala plugin typsafe hocon support on IntelliJ Idea

I recently updated Intellij Ultimate to 2019.2.2 Since the update .conf files are interpreted as smarty PHP configuration files and I dont have the usual Scala typsafe file support. How do I Enable Scala plugin typsafe hocon support on IntelliJ
Rubber Duck
  • 3,673
  • 3
  • 40
  • 59
0
votes
1 answer

How do you overwrite array elements in HOCONS?

I have this in a .conf file and I want to overwrite the value at index 0 in array field1 database { master { field1:["a","b","c"] } } and I run the application via sbt like this: sbt -Ddatabase.master.field1.0="11.111.11.111:3306"…
Adrian
  • 5,603
  • 8
  • 53
  • 85
0
votes
0 answers

spark submit-read command line argument which is config file [HOCON] using Scopt and ConfigFactory

I have a jar that I am running through spark-submit and earlier i was using Argot to parse a HOCON config file which was parsed through ConfigFactory and then I'd read from there. * spark/bin/spark-submit --class ConsumerApp \ * …
Egyptian
  • 63
  • 1
  • 3
  • 9
0
votes
1 answer

In pyhocon is it possible to include a file in runtime

In pyhocon can is it possible to include a file in runtime? I know how to merge trees in runtime e.g. conf = ConfigFactory.parse_file(conf_file) conf1 = ConfigFactory.parse_file(include_conf) conf = ConfigTree.merge_configs(conf, conf1) I would…
Rubber Duck
  • 3,673
  • 3
  • 40
  • 59