Don't print the kafka-console-consumer warnings
问题 I am trying to debug encrypted messages onto a Kafka cluster. Obviously these messages are full of non printable characters and are not usable on a console, so I wanted to save the output in a file like this: kafka-console-consumer \ --zookeeper 0.zookeeper.local,1.zookeeper.local \ --max-messages 1 \ --topic MYTOPIC > /tmp/message I am unable to decrypt the resulting message, because the output contains, along with the ciphertext, warning messages such as: [2016-02-24 11:52:47,488] WARN