Example #1
0
 /**
  * Load the defaults config
  *
  * @param heronHome, directory of heron home
  * @param configPath, directory containing the config
  * @param releaseFile, release file containing build information
  *     <p>return config, the defaults config
  */
 protected static Config defaultConfigs(String heronHome, String configPath, String releaseFile) {
   Config config =
       Config.newBuilder()
           .putAll(ClusterDefaults.getDefaults())
           .putAll(ClusterDefaults.getSandboxDefaults())
           .putAll(ClusterConfig.loadConfig(heronHome, configPath, releaseFile))
           .build();
   return config;
 }
Example #2
0
 /**
  * Load the override config from cli
  *
  * @param overrideConfigPath, override config file path
  *     <p>
  * @return config, the override config
  */
 protected static Config overrideConfigs(String overrideConfigPath) {
   Config config =
       Config.newBuilder().putAll(ClusterConfig.loadOverrideConfig(overrideConfigPath)).build();
   return config;
 }