DataStream<String> messageStream = env .addSource(new FlinkKafkaConsumer09<>( topic, new MsgPackDeserializer(), props)); // The Properties will be passed to the KafkaConsumer messageStream .rebalance() .filter(s->s.contains("XYZ")) .map(s -> s + " :" + new Date()) .print();
This works fine when I run the jar individually. eg. java -jar Myjar.jar
But when I start flink with local mode (bin/start-local.sh) and run the jar using bin/flink run Myjar.jar the map part doesn't seem to ru
It received messages from kafka but it din't print them.
DataStream<String> messageStream = env .addSource(new FlinkKafkaConsumer09<>( topic, new MsgPackDeserializer(), props)); // The Properties will be passed to the KafkaConsumer messageStream .rebalance() .filter(s->s.contains("XYZ")) .map(s -> s + " :" + new Date()) .print();
This works fine when I run the jar individually. eg. java -jar Myjar.jar
But when I start flink with local mode (bin/start-local.sh) and run the jar using bin/flink run Myjar.jar the map part doesn't seem to ru
It received messages from kafka but it din't print them.