I have a job Spark and I should read properties information from a file "config.properties" in this format:
var1=1
var2=12/10/2021
At the end of the process, I should update var1
and var2
, so I have to overwrite "config.properties" file.... how can I do?
This code would be part of the driver, so you write it as any Java/Scala app reading a configuration files, whether the properties format or using JSON.
What you need to keep in mind:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.