Commit f4e7ec37 authored by 赵威's avatar 赵威

remove logger

parent 2d6e2c05
...@@ -34,7 +34,7 @@ object Main extends LazyLogging { ...@@ -34,7 +34,7 @@ object Main extends LazyLogging {
// val query = ES.generateServiceDiaryRequest(List("光子嫩肤", "水光针"), List("丰胸", "胸部塑身"), -1) // val query = ES.generateServiceDiaryRequest(List("光子嫩肤", "水光针"), List("丰胸", "胸部塑身"), -1)
// println("###############") // println("###############")
try { try {
// logger.info("UserPortrait Flink Started") logger.info("UserPortrait Flink Started")
val env = StreamExecutionEnvironment.getExecutionEnvironment val env = StreamExecutionEnvironment.getExecutionEnvironment
// TODO read from config // TODO read from config
...@@ -45,9 +45,8 @@ object Main extends LazyLogging { ...@@ -45,9 +45,8 @@ object Main extends LazyLogging {
"172.16.44.25:9092,172.16.44.31:9092,172.16.44.45:9092" "172.16.44.25:9092,172.16.44.31:9092,172.16.44.45:9092"
) )
// remove test
val kafkaConsumer = new FlinkKafkaConsumer[UserInfo]( val kafkaConsumer = new FlinkKafkaConsumer[UserInfo](
"gm-portrait-update-device-test", "gm-portrait-update-device",
new UserInfoDeserializationSchema, new UserInfoDeserializationSchema,
kafkaConsumerProperties kafkaConsumerProperties
) )
......
...@@ -99,7 +99,7 @@ object Redis { ...@@ -99,7 +99,7 @@ object Redis {
try { try {
implicit val formats = Serialization.formats(NoTypeHints) implicit val formats = Serialization.formats(NoTypeHints)
val key = s"streaming:candidate:service_diary:device_id:${deviceId}" val key = s"streaming:candidate:str:service_diary:device_id:${deviceId}"
contentEitherFuture match { contentEitherFuture match {
case Left(e) => e.printStackTrace() case Left(e) => e.printStackTrace()
case Right(contentFuture) => case Right(contentFuture) =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment