

Specifies the hostname or IP address of the remote computer. If a door is locked, you cannot access the outside world. It’s similar to a large hallway with many doors leading outside.

Ports are specific gateways for Internet traffic to travel over. Running the telnet application requires different set of commands on different operating systems. Keep in mind, telnet is an external command, which is available in certain microsoft operating systems as telent.exe. Most importantly it uses the Telnet protocol (which is part of the TCP/IP protocol suite) to connect to a remote computer over a network. Telnet is a text based application, often used at the command line of an operating system. You can run iptables -L -vn to make sure there is no rules in effected.TL DR Telnet is a network protocol that allows a user on one computer to log into another computer that is part of the same network. Iptables is irrelevant at this stage because the port is NOT used at all. So check your Hadoop/HDFS configuration files and get the services started. I need 9000 port for hadoop I can't access fs without opened 9000 port so base on the context my understanding is that HDFS's namenode is supposed to use port 9000. Please change the question to sth like "connecting to port 9000 issue".

NOTE: This is NOT telnet nor iptables issue, it's basically TCP/IP basics. So you need to fix your hadoop settings and make sure all necessary daemons/services are started properly before you can connect to use HDFS. Nc 12679 terry 3u IPv4 7518676 0t0 TCP *:9000 (LISTEN)Ĭonnection to localhost 9000 port succeeded! In another session, connect to it $ lsof -i :9000ĬOMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

List on port 9000 in terminal session 1 nc -l -p 9000 If the result is empty (return value 1) then it is not open. Use the command => lsof -i :9000 to see what app is using the port. The reason for connection refused is simple - the port 9000 is NOT being used (not open). I need 9000 port for hadoop I cant access fs without opened 9000 port Tried to disable ufw, tried to play with iptables nothing helped. So the question is how to open necessary port, Im using Ubuntu 13.04 Nmap on 9000 port: $ nmap -p 9000 localhost RDNS record for 127.0.0.1: localhost.localdomain Nmap scan report for localhost (127.0.0.1) Telnet: Unable to connect to remote host: Connection refused So telnet actually is working, I mean telnet localhost 25 is connecting but telnet localhost or telnet localhost 9000 got such result: Trying 127.0.0.1.
