Commit dabe6dd9 authored by 赵威's avatar 赵威

update data

parent b5d3a172
......@@ -6,3 +6,7 @@ scikit-learn==0.23.1
numba==0.50.1
redis==2.10.5
kafka-python
python-snappy
lz4
......@@ -9,8 +9,10 @@ def consume_kafka():
consumer.subscribe(["gm-portrait-update-device"])
for msg in consumer:
print(msg)
message = consumer.consume_data()
for msg in message:
print(msg.value)
if __name__ == "__main__":
......
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