Search in sources :

Example 11 with CommandLine

use of org.apache.samza.util.CommandLine in project samza by apache.

the class AsyncApplicationExample method main.

public static void main(String[] args) {
    CommandLine cmdLine = new CommandLine();
    Config config = cmdLine.loadConfig(cmdLine.parser().parse(args));
    ApplicationRunner runner = ApplicationRunners.getApplicationRunner(new AsyncApplicationExample(), config);
    runner.run();
    runner.waitForFinish();
}
Also used : CommandLine(org.apache.samza.util.CommandLine) ApplicationRunner(org.apache.samza.runtime.ApplicationRunner) Config(org.apache.samza.config.Config)

Example 12 with CommandLine

use of org.apache.samza.util.CommandLine in project samza by apache.

the class KeyValueStoreExample method main.

// local execution mode
public static void main(String[] args) {
    CommandLine cmdLine = new CommandLine();
    Config config = cmdLine.loadConfig(cmdLine.parser().parse(args));
    ApplicationRunner runner = ApplicationRunners.getApplicationRunner(new KeyValueStoreExample(), config);
    runner.run();
    runner.waitForFinish();
}
Also used : CommandLine(org.apache.samza.util.CommandLine) ApplicationRunner(org.apache.samza.runtime.ApplicationRunner) Config(org.apache.samza.config.Config)

Example 13 with CommandLine

use of org.apache.samza.util.CommandLine in project samza by apache.

the class PageViewCounterExample method main.

// local execution mode
public static void main(String[] args) {
    CommandLine cmdLine = new CommandLine();
    Config config = cmdLine.loadConfig(cmdLine.parser().parse(args));
    PageViewCounterExample app = new PageViewCounterExample();
    ApplicationRunner runner = ApplicationRunners.getApplicationRunner(app, config);
    runner.run();
    runner.waitForFinish();
}
Also used : CommandLine(org.apache.samza.util.CommandLine) ApplicationRunner(org.apache.samza.runtime.ApplicationRunner) Config(org.apache.samza.config.Config)

Example 14 with CommandLine

use of org.apache.samza.util.CommandLine in project samza by apache.

the class SessionWindowApp method main.

public static void main(String[] args) {
    CommandLine cmdLine = new CommandLine();
    Config config = cmdLine.loadConfig(cmdLine.parser().parse(args));
    ApplicationRunner runner = ApplicationRunners.getApplicationRunner(new SessionWindowApp(), config);
    runner.run();
    runner.waitForFinish();
}
Also used : CommandLine(org.apache.samza.util.CommandLine) ApplicationRunner(org.apache.samza.runtime.ApplicationRunner) Config(org.apache.samza.config.Config)

Example 15 with CommandLine

use of org.apache.samza.util.CommandLine in project samza by apache.

the class TumblingWindowApp method main.

public static void main(String[] args) {
    CommandLine cmdLine = new CommandLine();
    Config config = cmdLine.loadConfig(cmdLine.parser().parse(args));
    ApplicationRunner runner = ApplicationRunners.getApplicationRunner(new TumblingWindowApp(), config);
    runner.run();
    runner.waitForFinish();
}
Also used : CommandLine(org.apache.samza.util.CommandLine) ApplicationRunner(org.apache.samza.runtime.ApplicationRunner) Config(org.apache.samza.config.Config)

Aggregations

Config (org.apache.samza.config.Config)15 CommandLine (org.apache.samza.util.CommandLine)15 ApplicationRunner (org.apache.samza.runtime.ApplicationRunner)12 OptionSet (joptsimple.OptionSet)3 JobConfig (org.apache.samza.config.JobConfig)2 SetConfig (org.apache.samza.coordinator.stream.messages.SetConfig)2 OptionParser (joptsimple.OptionParser)1 YarnConfiguration (org.apache.hadoop.yarn.conf.YarnConfiguration)1 MapConfig (org.apache.samza.config.MapConfig)1 MetricsConfig (org.apache.samza.config.MetricsConfig)1 ClientHelper (org.apache.samza.job.yarn.ClientHelper)1 MetricsValidator (org.apache.samza.metrics.MetricsValidator)1 HttpFileSystem (org.apache.samza.util.hadoop.HttpFileSystem)1