I have installed zookeeper and kafka, first step : running zookeeper by the following commands :
bin/zkServer.sh start bin/zkCli.sh second step : running kafka server
bin/kafka-server-start.sh config/server.properties kafka should run at localhost:9092
but I am getting the following error :
WARN Unexpected error from /0:0:0:0:0:0:0:1; closing connection (org.apache.kafka.common.network.Selector) org.apache.kafka.common.network.InvalidReceiveException: Invalid receive (size = 1195725856 larger than 104857600) I am following the following link : enter link description here enter link description here
I am new to kafka ,please help me to set it up.
2 Answers
Answers 1
Try to reset socket.request.max.bytes value in $KAFKA_HOME/config/server.properties file to more than your packet size and restart kafka server.
Answers 2
Most probably you are trying to connect to a non-SSL-listener. If you are using the default broker of the port, you need to verify that :9092 is the SSL listener port on that broker.
For example,
listeners=SSL://:9092 advertised.listeners=SSL://:9092 inter.broker.listener.name=SSL should do the trick for you (Make sure you restart Kafka after re-configuring these properties).
Alternatively,you might be trying to receive a request that is too large. The maximum size is the default size for socket.request.max.bytes, which is 100MB. So if you have a message which is bigger than 100MB try to increase the value of this variable under server.properties.
0 comments:
Post a Comment