解决部分source_country为空的问题
This commit is contained in:
4
pom.xml
4
pom.xml
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>com.zdjizhi</groupId>
|
<groupId>com.zdjizhi</groupId>
|
||||||
<artifactId>flink-dos-detection</artifactId>
|
<artifactId>flink-dos-detection</artifactId>
|
||||||
<version>24-08-16</version>
|
<version>24-09-25</version>
|
||||||
|
|
||||||
<name>flink-dos-detection</name>
|
<name>flink-dos-detection</name>
|
||||||
<url>http://www.example.com</url>
|
<url>http://www.example.com</url>
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<finalName>flink-dos-detection-24-08-16</finalName>
|
<finalName>flink-dos-detection-24-09-25</finalName>
|
||||||
<relocations>
|
<relocations>
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>org.apache.http</pattern>
|
<pattern>org.apache.http</pattern>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public class MetricsAggregationReduce implements ReduceFunction<DosSketchLog> {
|
|||||||
value1.setEnd_timestamp_ms(value2.getEnd_timestamp_ms());
|
value1.setEnd_timestamp_ms(value2.getEnd_timestamp_ms());
|
||||||
}
|
}
|
||||||
value1.getClient_ips().addAll(value2.getClient_ips());
|
value1.getClient_ips().addAll(value2.getClient_ips());
|
||||||
value2.getClient_countrys().addAll(value2.getClient_countrys());
|
value1.getClient_countrys().addAll(value2.getClient_countrys());
|
||||||
return value1;
|
return value1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user