Commit 7c245400 authored by aj7tesh's avatar aj7tesh
Browse files

changed bootstrap server conf for dev

Showing with 2 additions and 2 deletions
+2 -2
......@@ -19,7 +19,7 @@ def get_consumer(topics):
# group_id=group_id,
# value_deserializer=lambda x: json.loads(x.decode('utf-8')))
consumer = KafkaConsumer(
bootstrap_servers=[bootstrap_server],
bootstrap_servers=list(str(bootstrap_server).split(",")),
value_deserializer=lambda x: json.loads(x.decode('utf-8')))
consumer.subscribe(topics)
......
......@@ -10,7 +10,7 @@ bootstrap_server = os.environ.get(KAFKA_IP_HOST,default_value)
def get_producer():
try:
producer = KafkaProducer(bootstrap_servers=[bootstrap_server],
producer = KafkaProducer(bootstrap_servers=list(str(bootstrap_server).split(",")),
value_serializer=lambda x: json.dumps(x).encode('utf-8'))
logger.info('get_producer : producer returned successfully')
return producer
......
Supports Markdown
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