When I try to use the Kafka output plugin I get this variable type error:
[ERROR][logstash.outputs.kafka ] Unable to create Kafka producer from given configuration {:kafka_error_message=>org.apache.kafka.common.config.ConfigException: Invalid value 32768 for configuration receive.buffer.bytes: Expected value to be a 32-bit integer, but it was a java.lang.Long, :cause=>nil}
I am just testing, so the output configuration is very simple:
Logstash version is 6.3.0, and Kafka output plugin version is 7.1.2. The platform is CentOS6 with Java OpenJDK version 1.8.0_171.
I have tried explicitly setting the receive_buffer_bytes parameter, with and without enclosing in quotes, but that made no difference. Does anybody have any ideas on how to fix please?
FYI I am using Elastic Official Docker Images. I updated the Logstash Image 6.3.2 to 6.4.0 and the issue is the same. The kafka output plugin 7.1.2 seems to be the issue. https://github.com/logstash-plugins/logstash-output-kafka/pull/198 . FYI Version ELK 6.3.2 was working fine.
Logstash 6.3.2 was released on July 24th (https://www.elastic.co/downloads/past-releases) and the Logstash Kafka Output Plugin 7.1.1 was released on June 5th (https://www.elastic.co/guide/en/logstash-versioned-plugins/current/v7.1.1-plugins-outputs-kafka.html). I am using the official Docker Image for Logstash and the 6.3.2 then must have been shipped with the Logstash Kafka Output Plugin version 7.1.1 . After updating to Docker Image 6.4.0 (released August 23rd,2018) the Logstash Kafka Output Plugin Version 7.1.2 (released August 8th, 2018) is released as part of the image. I rolled back the Kafka output plugin the following way:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.