正在显示
3 个修改的文件
包含
3 行增加
和
2 行删除
@@ -79,7 +79,7 @@ spec: | @@ -79,7 +79,7 @@ spec: | ||
79 | - name: BUSINESS_ADMIN_HOST | 79 | - name: BUSINESS_ADMIN_HOST |
80 | value: "http://suplus-business-admin-dev.fjmaimaimai.com" | 80 | value: "http://suplus-business-admin-dev.fjmaimaimai.com" |
81 | - name: KAFKA_HOST | 81 | - name: KAFKA_HOST |
82 | - value: "106.52.15.41:9092" | 82 | + value: "192.168.0.250:9092;192.168.0.251:9092;192.168.0.252:9092" |
83 | - name: KAFKA_CONSUMER_ID | 83 | - name: KAFKA_CONSUMER_ID |
84 | value: "partnermg_dev" | 84 | value: "partnermg_dev" |
85 | volumes: | 85 | volumes: |
@@ -14,7 +14,7 @@ var KafkaCfg KafkaConfig | @@ -14,7 +14,7 @@ var KafkaCfg KafkaConfig | ||
14 | 14 | ||
15 | func init() { | 15 | func init() { |
16 | KafkaCfg = KafkaConfig{ | 16 | KafkaCfg = KafkaConfig{ |
17 | - Servers: []string{"192.168.190.136:9092"}, | 17 | + Servers: []string{"114.55.200.59:30092"}, |
18 | ConsumerId: "partnermg_local", | 18 | ConsumerId: "partnermg_local", |
19 | } | 19 | } |
20 | if os.Getenv("KAFKA_HOST") != "" { | 20 | if os.Getenv("KAFKA_HOST") != "" { |
@@ -41,6 +41,7 @@ func (c *MessageConsumer) ConsumeClaim(groupSession sarama.ConsumerGroupSession, | @@ -41,6 +41,7 @@ func (c *MessageConsumer) ConsumeClaim(groupSession sarama.ConsumerGroupSession, | ||
41 | err error | 41 | err error |
42 | ) | 42 | ) |
43 | for message := range groupClaim.Messages() { | 43 | for message := range groupClaim.Messages() { |
44 | + | ||
44 | logs.Debug("Done Message claimed: timestamp = %v, topic = %s offset = %v value = %v \n", | 45 | logs.Debug("Done Message claimed: timestamp = %v, topic = %s offset = %v value = %v \n", |
45 | message.Timestamp, message.Topic, message.Offset, string(message.Value)) | 46 | message.Timestamp, message.Topic, message.Offset, string(message.Value)) |
46 | for i := range c.beforeHandles { | 47 | for i := range c.beforeHandles { |
-
请 注册 或 登录 后发表评论