use of org.pentaho.di.trans.cluster.TransSplitter in project pentaho-kettle by pentaho.
the class PartitioningIT method testClusteringWithPartitioningOnMaster.
/**
* See PDI-12766
*
* @throws Exception
*/
public void testClusteringWithPartitioningOnMaster() throws Exception {
init();
ClusterGenerator clusterGenerator = new ClusterGenerator();
LogChannel log = new LogChannel("cluster unit test <test-partitioning-on-master-and-clustering>");
try {
clusterGenerator.launchSlaveServers();
TransMeta transMeta = loadAndModifyTestTransformation(clusterGenerator, "src/it/resources/org/pentaho/di/cluster/test-partitioning-on-master-and-clustering.ktr");
TransExecutionConfiguration config = createClusteredTransExecutionConfiguration();
TransSplitter transSplitter = Trans.executeClustered(transMeta, config);
long nrErrors = Trans.monitorClusteredTransformation(log, transSplitter, null);
assertEquals(0L, nrErrors);
} catch (Exception e) {
e.printStackTrace();
fail(e.toString());
} finally {
try {
clusterGenerator.stopSlaveServers();
} catch (Exception e) {
e.printStackTrace();
fail(e.toString());
}
}
}
Aggregations