@Override public void flowConfInit(Flow<Object> flow) { initInnerTapIfNotSet(flow, "cascading.flow.hadoop.HadoopFlow"); if (runningInHadoop) { CascadingUtils.addSerializationToken(flow.getConfig()); } }
static Settings addDefaultsToSettings( Properties flowProperties, Properties tapProperties, Log log) { Settings settings = HadoopSettingsManager.loadFrom(CascadingUtils.extractOriginalProperties(flowProperties)) .merge(tapProperties); InitializationUtils.discoverNodesIfNeeded(settings, log); InitializationUtils.filterNonClientNodesIfNeeded(settings, log); InitializationUtils.discoverEsVersion(settings, log); InitializationUtils.setValueWriterIfNotSet(settings, CascadingValueWriter.class, log); InitializationUtils.setValueReaderIfNotSet(settings, JdkValueReader.class, log); InitializationUtils.setBytesConverterIfNeeded( settings, CascadingLocalBytesConverter.class, log); InitializationUtils.setFieldExtractorIfNotSet(settings, CascadingFieldExtractor.class, log); return settings; }