use of edu.iu.dsc.tws.api.Twister2Job in project twister2 by DSC-SPIDAL.
the class TSetSourceExample method main.
public static void main(String[] args) {
JobConfig jobConfig = new JobConfig();
Twister2Job job = Twister2Job.newBuilder().setJobName(TSetSourceExample.class.getName()).setConfig(jobConfig).setWorkerClass(TSetSourceExample.class).addComputeResource(1, 512, 4).build();
Twister2Submitter.submitJob(job);
}
use of edu.iu.dsc.tws.api.Twister2Job in project twister2 by DSC-SPIDAL.
the class TSetCachingExample method main.
public static void main(String[] args) {
JobConfig jobConfig = new JobConfig();
Twister2Job job = Twister2Job.newBuilder().setJobName(TSetCachingExample.class.getName()).setConfig(jobConfig).setWorkerClass(TSetCachingExample.class).addComputeResource(1, 512, 4).build();
Twister2Submitter.submitJob(job);
}
use of edu.iu.dsc.tws.api.Twister2Job in project twister2 by DSC-SPIDAL.
the class TSetExampleMain method submitJob.
private static void submitJob(Config config, int containers, JobConfig jobConfig, String clazz) {
LOG.info("Submitting Job ...");
Twister2Job twister2Job;
twister2Job = Twister2Job.newBuilder().setJobName(clazz).setWorkerClass(clazz).addComputeResource(1, 512, containers).setConfig(jobConfig).build();
// now submit the job
Twister2Submitter.submitJob(twister2Job, config);
}
use of edu.iu.dsc.tws.api.Twister2Job in project twister2 by DSC-SPIDAL.
the class HadoopTSet method submitJob.
private static void submitJob(Config config, int containers, JobConfig jobConfig, String clazz) {
Twister2Job twister2Job;
twister2Job = Twister2Job.newBuilder().setJobName(clazz).setWorkerClass(clazz).addComputeResource(1, 512, containers).setConfig(jobConfig).build();
// now submit the job
Twister2Submitter.submitJob(twister2Job, config);
}
use of edu.iu.dsc.tws.api.Twister2Job in project twister2 by DSC-SPIDAL.
the class HelloTSet method submitJob.
private static void submitJob(Config config, int containers, JobConfig jobConfig, String clazz) {
Twister2Job twister2Job;
twister2Job = Twister2Job.newBuilder().setJobName(clazz).setWorkerClass(clazz).addComputeResource(1, 512, containers).setConfig(jobConfig).build();
// now submit the job
Twister2Submitter.submitJob(twister2Job, config);
}
Aggregations