Header Shadow Image


Cloudera: Ncat: Connection timed out.

Getting this error when connecting Azure instances back to a Cloudera CM + CDH installation?

[root@cm-awn01 ~]# nc -vz srv-c01.mws.mds.xyz 7191
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connection timed out.
[root@cm-awn01 ~]#

Ensure ports are defined correctly in the local firewall configuration:

[root@cm-r01xs01 .ssh]# grep -Ei 7191 /etc/firewalld/zones/public.xml
  <port protocol="tcp" port="7191"/>
  <port protocol="udp" port="7191"/>

[root@cm-r01xs01 .ssh]#

Ensure NAT rules are also in place in case connectivity occurs through an external facing router.

iptables -t nat -I PREROUTING -s 123.123.123.123 -p tcp --dport 7191 -j DNAT --to 192.168.0.120:7191
iptables -I FORWARD -p tcp -d 192.168.0.120 --dport 7191 -j ACCEPT
iptables -t nat -I PREROUTING -s 123.123.123.123 -p udp --dport 7191 -j DNAT --to 192.168.0.120:7191
iptables -I FORWARD -p udp -d 192.168.0.120 --dport 7191 -j ACCEPT

Good Luck!
TK

Leave a Reply

You must be logged in to post a comment.


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License