Support Questions
Find answers, ask questions, and share your expertise

timeout error in connection while fetching the file in HDFS


We are trying to fetch file from HDFS (hdfs://,we are able to list the files on HDFS however while fetching the file we are getting below error : hdfs.DFSClient: Failed to connect to / for block, add to deadNodes and continue. 60000 millis timeout while waiting for channel to be ready for connect. ch : java.nio.channels.SocketChannel[connection-pending remote=/] it seems the IP to which the request is internally redirected is not reachable from our client servers : Client server : Could you please help us to resolve the issue .



@Jay Kumar SenSharma can you plz help me with that?

Super Mentor

@hardik desai

Is there any specific reason you are using IP Address instead of Hostnames ? Using Hostnames instead of IP address is always recommended.


Also the error shows

Failed to connect to /


So from the machine where you are running the HDFS fetch commands are you able to access the mentioned DataNode host & port?

# telnet  50010 
# nc -v  50010 


It might be either Port blocking issue / like firewall issue.

Or the DataNode on the mentioned IPAddress / port might not be listening.

So please SSH to the DataNode host "" and check if the port is opened and listening on 50010 ?

# netstat -tnlpa | grep -i DataNode


If you see that port is not opened OR if it is not bind to the intended network interface (ip address) then please fix it or share the DataNode logs to see if there are any errors


@Jay Kumar SenSharma sure , i will check and update. Thanks!!

; ;