...
|
...
|
@@ -20,7 +20,7 @@ public class TraceFlinkExecutor { |
|
|
|
|
|
public static void main(String[] args) throws Exception{
|
|
|
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
|
|
|
env.setStreamTimeCharacteristic(TimeCharacteristic.ProcessingTime);
|
|
|
env.setStreamTimeCharacteristic(TimeCharacteristic.EventTime);
|
|
|
|
|
|
FlinkKafkaConsumerBase<String> kafkaConsumer = KafkaUtils.finkKafkaConsumer(PropertiesFactory.kafka().getBrokers(), PropertiesFactory.kafka().getGroup(), PropertiesFactory.kafka().getTopic());
|
|
|
SingleOutputStreamOperator<Spans> clickStream = env.addSource(kafkaConsumer)
|
...
|
...
|
|