My issue look identical to https://community.hortonworks.com/questions/90687/kafka-gssapi-error.html , but I already checked that the broker is listening to the port 6667. I would like to get the command line producer working.
/usr/hdp/2.5.3.0-37/kafka/bin/kafka-console-producer.sh --broker-list cgihdp0.localnet:6667 --topic TSTRECV --security-protocol SASL_PLAINTEXT
And i am getting this error (repeatedly):
[2017-12-10 18:31:52,979] WARN Unexpected error from cgihdp0.localnet/10.30.152.13; closing connection (org.apache.kafka.common.network.Selector)
org.apache.kafka.common.errors.IllegalSaslStateException: Unexpected handshake request with client mechanism GSSAPI, enabled mechanisms are [GSSAPI]<br>
Up to here it seems to be the same issue as the one I listed above, but there the solution was a different broker port, while in my config, the port really is 6667:
netstat -tulpn | grep 6667
tcp 0 0 10.30.152.13:6667 0.0.0.0:* LISTEN 32355/java