MXS-1316: Read the raw input in cdc_kafka_producer.py

The input can be read as raw bytes since kafka expects the data to be of
type bytes instead of str.
This commit is contained in:
Markus Mäkelä
2017-07-13 13:27:51 +03:00
parent fd77b18c49
commit 00f046da1b

View File

@ -30,6 +30,7 @@ parser.add_argument("-T", "--kafka-topic", dest="kafka_topic",
opts = parser.parse_args(sys.argv[1:])
producer = KafkaProducer(bootstrap_servers=[opts.kafka_broker])
sys.stdin = sys.stdin.detach()
while True:
try: