I am using the hortonwork sandbox for the kafka server trying to connect kafka from eclipse using java code. Use this configuration to connect to the manufacturer to send the message.
metadata.broker.list=sandbox.hortonworks.com:45000
serializer.class=kafka.serializer.DefaultEncoder
zk.connect=sandbox.hortonworks.com:2181
request.required.acks=0
producer.type=sync
where sandbox.hortonworks.com is the sandbox I'm connecting to
in kafka server.properties I changed this configuration
host.name=sandbox.hortonworks.com
advertised.host.name=System IP(on which my eclipse is running)
advertised.port=45000
port forwarding was also performed
I can connect to the kafka server from eclipse, but when sending a message I get an exception Exception "Failed to send messages after 3 attempts."
source
share