private FlinkKafkaConsumer08( List<String> topics, Pattern subscriptionPattern, KeyedDeserializationSchema<T> deserializer, Properties props) { super( topics, subscriptionPattern, deserializer, getLong( checkNotNull(props, "props"), KEY_PARTITION_DISCOVERY_INTERVAL_MILLIS, PARTITION_DISCOVERY_DISABLED), !getBoolean(props, KEY_DISABLE_METRICS, false)); this.kafkaProperties = props; // validate the zookeeper properties validateZooKeeperConfig(props); // eagerly check for invalid "auto.offset.reset" values before launching the job validateAutoOffsetResetValue(props); }
/** * Creates a new Kafka streaming source consumer for Kafka 0.8.x * * This constructor allows passing multiple topics and a key/value deserialization schema. * * @param topics * The Kafka topics to read from. * @param deserializer * The keyed de-/serializer used to convert between Kafka's byte messages and Flink's objects. * @param props * The properties that are used to configure both the fetcher and the offset handler. */ public FlinkKafkaConsumer08(List<String> topics, KeyedDeserializationSchema<T> deserializer, Properties props) { super(topics, deserializer); checkNotNull(topics, "topics"); this.kafkaProperties = checkNotNull(props, "props"); // validate the zookeeper properties validateZooKeeperConfig(props); // eagerly check for invalid "auto.offset.reset" values before launching the job validateAutoOffsetResetValue(props); }
private FlinkKafkaConsumer08( List<String> topics, Pattern subscriptionPattern, KeyedDeserializationSchema<T> deserializer, Properties props) { super( topics, subscriptionPattern, deserializer, getLong( checkNotNull(props, "props"), KEY_PARTITION_DISCOVERY_INTERVAL_MILLIS, PARTITION_DISCOVERY_DISABLED), !getBoolean(props, KEY_DISABLE_METRICS, false)); this.kafkaProperties = props; // validate the zookeeper properties validateZooKeeperConfig(props); // eagerly check for invalid "auto.offset.reset" values before launching the job validateAutoOffsetResetValue(props); }
private FlinkKafkaConsumer08( List<String> topics, Pattern subscriptionPattern, KeyedDeserializationSchema<T> deserializer, Properties props) { super( topics, subscriptionPattern, deserializer, getLong( checkNotNull(props, "props"), KEY_PARTITION_DISCOVERY_INTERVAL_MILLIS, PARTITION_DISCOVERY_DISABLED), !getBoolean(props, KEY_DISABLE_METRICS, false)); this.kafkaProperties = props; // validate the zookeeper properties validateZooKeeperConfig(props); // eagerly check for invalid "auto.offset.reset" values before launching the job validateAutoOffsetResetValue(props); }