summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <[email protected]>2022-06-22 15:58:49 +0800
committerunknown <[email protected]>2022-06-22 15:58:49 +0800
commit94e8fb807a0ebbdca259cd82d71acbc251e1777e (patch)
treeb2b8a28c692db25f84f74ead05b85bfde1bce25f
parentcead1d4d990b25557aca0f91c6e508282f1d4322 (diff)
集成nacos,修复依赖冲突,启动报错
-rw-r--r--pom.xml38
-rw-r--r--src/main/resources/common.properties42
2 files changed, 53 insertions, 27 deletions
diff --git a/pom.xml b/pom.xml
index 52bd475..cb05963 100644
--- a/pom.xml
+++ b/pom.xml
@@ -227,16 +227,30 @@
</exclusions>
</dependency>
- <!--<dependency>-->
- <!--<groupId>com.alibaba.nacos</groupId>-->
- <!--<artifactId>nacos-client</artifactId>-->
- <!--<version>1.4.1</version>-->
- <!--</dependency>-->
-
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
<version>1.2.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-databind</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <!-- https://mvnrepository.com/artifact/commons-codec/commons-codec -->
+ <dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ <version>1.11</version>
</dependency>
<dependency>
@@ -244,7 +258,19 @@
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
+ <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-databind</artifactId>
+ <version>2.9.10</version>
+ </dependency>
+ <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ <version>22.0</version>
+ </dependency>
</dependencies>
diff --git a/src/main/resources/common.properties b/src/main/resources/common.properties
index 7237611..0a5212f 100644
--- a/src/main/resources/common.properties
+++ b/src/main/resources/common.properties
@@ -22,15 +22,15 @@ kafka.input.group.id=2112080949
kafka.output.metric.parallelism=1
#发送kafka metrics topic名
-#kafka.output.metric.topic.name=TRAFFIC-TOP-DESTINATION-IP-METRICS
-kafka.output.metric.topic.name=test
+kafka.output.metric.topic.name=TRAFFIC-TOP-DESTINATION-IP-METRICS
+#kafka.output.metric.topic.name=test
#发送kafka event并行度大小
kafka.output.event.parallelism=1
#发送kafka event topic名
-#kafka.output.event.topic.name=DOS-EVENT
-kafka.output.event.topic.name=storm-dos-test
+kafka.output.event.topic.name=DOS-EVENT
+#kafka.output.event.topic.name=storm-dos-test
#kafka输出地址
kafka.output.bootstrap.servers=192.168.44.12:9094
@@ -78,22 +78,22 @@ ip.mmdb.path=D:\\data\\dat\\
#ip.mmdb.path=/home/bigdata/topology/dat/
#ip.mmdb.path=/home/bigdata/wlh/topology/dos-detection/dat/
-#静态敏感阈值,速率小于此值不报警
-static.sensitivity.threshold=500
-
-#基线敏感阈值
-baseline.sensitivity.threshold=0.2
-
-#基于baseline判定dos攻击的上下限
-baseline.sessions.minor.threshold=0.5
-baseline.sessions.warning.threshold=1
-baseline.sessions.major.threshold=2.5
-baseline.sessions.severe.threshold=5
-baseline.sessions.critical.threshold=8
+##静态敏感阈值,速率小于此值不报警
+#static.sensitivity.threshold=500
+#
+##基线敏感阈值
+#baseline.sensitivity.threshold=0.2
+#
+##基于baseline判定dos攻击的上下限
+#baseline.sessions.minor.threshold=0.5
+#baseline.sessions.warning.threshold=1
+#baseline.sessions.major.threshold=2.5
+#baseline.sessions.severe.threshold=5
+#baseline.sessions.critical.threshold=8
#bifang服务访问地址
-#bifang.server.uri=http://192.168.44.72:80
-bifang.server.uri=http://192.168.44.3:80
+bifang.server.uri=http://192.168.44.72:80
+#bifang.server.uri=http://192.168.44.3:80
#访问bifang只读权限token,bifang内置,无需修改
bifang.server.token=ed04b942-7df4-4e3d-b9a9-a881ca98a867
@@ -142,10 +142,10 @@ sasl.jaas.config.password=6MleDyA3Z73HSaXiKsDJ2k7Ys8YWLhEJ
sasl.jaas.config.flag=1
#nacos配置
-nacos.server.addr=192.168.44.12:8848
-nacos.namespace=flink
+nacos.server.addr=192.168.40.42:8848
+nacos.namespace=prod
nacos.username=nacos
nacos.password=nacos
-nacos.data.id=dos_baseline.properties
+nacos.data.id=dos_detection.properties
nacos.group=Galaxy
nacos.read.timeout=5000 \ No newline at end of file