Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Issues when create kafka-connect-mongodb, connection refused

Issues when create kafka-connect-mongodb, connection refused

Contributor

I have 3 nodes in kafka cluster, and need to create connector to stream data to mongodb. so on kafka side, I need to create this connector, seemed it has some issues.

when I run this curl : curl -X POST -H "Content-Type: application/json" --data @/tmp/mongo_connector_configs.json http://localhost:8083/connectors

1. always get connect to localhost:8083 refused, after change to FQDN, still the same error.

2. So cat id_rsa.pub>>authorized_keys, the error is gone, no errors after execute curl command above.

3. when netstats -tunlp|grep 8083, the output is nothing -- this means 8083 is not listen

4. after I started producer, and enter some doc, I just dont see data insert to mongdb at all.

Dont let mongdb part freak you out, it is all about kafka connector creation.

Can any one help me with this issue? thank you very much.

Robin

4 REPLIES 4
Highlighted

Re: Issues when create kafka-connect-mongodb, connection refused

What is the o/p of this command.

telnet localhost 8083

Highlighted

Re: Issues when create kafka-connect-mongodb, connection refused

Contributor

I got this

telnet localhost 8083,

connect to address 127.0.0.1: Connection refused

please let me know what I can do from here. 8083 is default port for kafka connector, how come it refused connection?

Highlighted

Re: Issues when create kafka-connect-mongodb, connection refused

What is the host entries

cat /etc/hosts

What is the ip binded to port.

netstat -tulpn | grep -i 8083
Highlighted

Re: Issues when create kafka-connect-mongodb, connection refused

Contributor

thank you for your time, this is the /etc/hosts file, I have 6 of them

b1 ec2-54-216-249-113.us-west-1.compute.amazonaws.com 54.216.249.113 ip-172-31-4-232.us-west-1.compute.internal b2 ec2-54-215-167-71.us-west-1.compute.amazonaws.com 54.216.167.71 ip-172-31-14-204.us-west-1.compute.internal b3 ec2-54-192-74-19.us-west-1.compute.amazonaws.com 54.192.74.19 ip-172-31-0-58.us-west-1.compute.internal

b4 ec2-54-183-108-236.us-west-1.compute.amazonaws.com 54.183.108.236 ip-172-31-12-149.us-west-1.compute.internal

netstat -tulpn | grep -i 8083
output is nothing 
Don't have an account?
Coming from Hortonworks? Activate your account here