Search in sources :

Example 1 with ConfigUtils

use of org.apache.gobblin.util.ConfigUtils in project incubator-gobblin by apache.

the class GobblinTaskRunner method saveConfigToFile.

private Config saveConfigToFile(Config config) throws IOException {
    Config newConf = config.withValue(CLUSTER_WORK_DIR, ConfigValueFactory.fromAnyRef(this.appWorkPath.toString()));
    ConfigUtils configUtils = new ConfigUtils(new FileUtils());
    configUtils.saveConfigToFile(newConf, CLUSTER_CONF_PATH);
    return newConf;
}
Also used : FileUtils(org.apache.gobblin.util.FileUtils) Config(com.typesafe.config.Config) ConfigUtils(org.apache.gobblin.util.ConfigUtils)

Aggregations

Config (com.typesafe.config.Config)1 ConfigUtils (org.apache.gobblin.util.ConfigUtils)1 FileUtils (org.apache.gobblin.util.FileUtils)1