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.

Host application can not connect to datanode due to internal ip

Highlighted

Host application can not connect to datanode due to internal ip

New Contributor
org.apache.hadoop.net.ConnectTimeoutException: 60000 millis timeout while waiting for channel to be ready for connect. ch : java.nio.channels.SocketChannel[connection-pending remote=/172.0.0.2:50010]
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:534) ~[hadoop-common-2.7.0.jar!/:na]

I installed docker image of cdh5.10 in a single node deployment to run my tests from host (Mac) machine. And these tests are failing with above error.

I can see telnet connecting over localhost:50010 but not 172.0.0.2:50010. Not sure how to change Hadoop to return localhost instead of up. I can successfully run example application within the guest os.

I see another related question here in this forum but that doesn't talk about the answer.