Package kafka.etl

Examples of kafka.etl.Props


  public static void main(String[] args) throws Exception {

    if (args.length < 1)
      throw new Exception("Usage: - config_file");

    Props props = new Props(args[0]);
    SimpleKafkaETLJob job = new SimpleKafkaETLJob("SimpleKafkaETLJob",
        props);
    job.execute();
  }
View Full Code Here


  public static void main(String[] args) throws Exception {

    if (args.length < 1)
      throw new Exception("Usage: - config_file");

    Props props = new Props(args[0]);
    DataGenerator job = new DataGenerator("DataGenerator", props);
    job.run();
  }
View Full Code Here

  public static void main(String[] args) throws Exception {

    if (args.length < 1)
      throw new Exception("Usage: - config_file");

    Props props = new Props(args[0]);
    SimpleKafkaETLJob job = new SimpleKafkaETLJob("SimpleKafkaETLJob",
        props);
    job.run();
  }
View Full Code Here

    _count = props.getInt("event.count");

    // initialize kafka producer to generate count events
    String nodePath = KafkaETLCommons.getNodesPath(_props);
    System.out.println("node path=" + nodePath);
    Props nodesProps = KafkaETLUtils.readProps(nodePath);
    _producers = new ArrayList<SimpleProducer>();
    for (String key : nodesProps.stringPropertyNames()) {
      URI uri = nodesProps.getUri(key);
      System.out.println("server uri:" + uri.toString());
      _producers.add(new SimpleProducer(uri.getHost(), uri.getPort(),
          TCP_BUFFER_SIZE, CONNECT_TIMEOUT, RECONNECT_INTERVAL));
    }
  }
View Full Code Here

  public static void main(String[] args) throws Exception {

    if (args.length < 1)
      throw new Exception("Usage: - config_file");

    Props props = new Props(args[0]);
    DataGenerator job = new DataGenerator("DataGenerator", props);
    job.run();
  }
View Full Code Here

  public static void main(String[] args) throws Exception {

    if (args.length < 1)
      throw new Exception("Usage: - config_file");

    Props props = new Props(args[0]);
    DataGenerator job = new DataGenerator("DataGenerator", props);
    job.run();
  }
View Full Code Here

  public static void main(String[] args) throws Exception {

    if (args.length < 1)
      throw new Exception("Usage: - config_file");

    Props props = new Props(args[0]);
    SimpleKafkaETLJob job = new SimpleKafkaETLJob("SimpleKafkaETLJob",
        props);
    job.execute();
  }
View Full Code Here

  public static void main(String[] args) throws Exception {

    if (args.length < 1)
      throw new Exception("Usage: - config_file");

    Props props = new Props(args[0]);
    DataGenerator job = new DataGenerator("DataGenerator", props);
    job.run();
  }
View Full Code Here

TOP

Related Classes of kafka.etl.Props

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.