/** * Initialize the Kettle environment with settings from the provided configuration * * @param conf Configuration to configure Kettle environment with */ private static void initKettleEnvironment(Configuration conf) throws KettleException { if (!KettleEnvironment.isInitialized()) { String kettleHome = getKettleHomeProperty(conf); String pluginDir = getPluginDirProperty(conf); System.setProperty("KETTLE_HOME", kettleHome); System.setProperty(Const.PLUGIN_BASE_FOLDERS_PROP, pluginDir); System.out.println(BaseMessages.getString(MRUtil.class, "KettleHome.Info", kettleHome)); System.out.println(BaseMessages.getString(MRUtil.class, "PluginDirectory.Info", pluginDir)); KettleEnvironment.init(); } }