kafka-console-producer --broker-list localhost:9092 --topic com-hftl2 < file.txt
[2019-12-25 16:09:24,476] ERROR Error when sending message to topic com-hftl2 with key: null, value: 20299831 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback) org.apache.kafka.common.errors.RecordTooLargeException: The message is 20299919 bytes when serialized which is larger than the maximum request size you have configured with the max.request.size configuration.
max.request.size
configuration value? – Progman