Set<FlowElement> accumulated = new HashSet<>( node.getSourceElements() );
accumulated.remove( streamedSource );
Hadoop2TezFlowProcess tezProcess = (Hadoop2TezFlowProcess) flowProcess;
TezConfiguration conf = tezProcess.getConfiguration();
for( FlowElement flowElement : accumulated )
{
LOG.info( "using accumulated source: " + flowElement );
if( flowElement instanceof Tap )
{
Tap source = (Tap) flowElement;
// allows client side config to be used cluster side
String property = conf.getRaw( "cascading.node.accumulated.source.conf." + Tap.id( source ) );
if( property == null )
throw new IllegalStateException( "accumulated source conf property missing for: " + source.getIdentifier() );
conf = getSourceConf( tezProcess, conf, property );
}
else
{
conf = (TezConfiguration) inputConfigMap.get( FlowElements.id( flowElement ) );
}
FlowProcess flowProcess = conf == null ? tezProcess : new Hadoop2TezFlowProcess( tezProcess, conf );
handleHead( flowElement, flowProcess );
}
}