kafka-rpc icon indicating copy to clipboard operation
kafka-rpc copied to clipboard

Error communicating through Kafka

Open NetBUG opened this issue 5 years ago • 2 comments

Hi! The projects seems cool and I'd like to use it. The problem is that I cannot make it work as it cannot communicate with Kafka.

The server is running on another machine in a Docker env (bitnami/kafka-2.5.0 image).

The error I get looks

Failed to create topic krpc_sum_server: KafkaError{code=_TIMED_OUT,val=-185,str="Timed out waiting for controller"}

I could not make it work yet ;(

NetBUG avatar Jul 22 '20 14:07 NetBUG

Update: the demo worked with 9093 port (with a delay of ~10 sec, which is fine but a bit unexpected), the real code throws ERROR:kafka_rpc.client:failed to handshake with krpc_servicename_server error, looking for it.

NetBUG avatar Jul 22 '20 15:07 NetBUG

Kafka sometimes crash for unknown reason. I'd clean up all kafka and zookeeper's cache and restart docker. And the first time is really slow, but it gets better afterward.

zylo117 avatar Jul 23 '20 03:07 zylo117