Reply
Highlighted
Explorer
Posts: 9
Registered: ‎02-03-2016

Telnet does not exist in cloudera vm

[ Edited ]

Hello,

 

I was doing some   exercise related to Flume in cloudera vmware (5.5.0) and found that telnet does not exist or not included in the path.

Can someone please let me know the location or how to install telnet in vm?

Partial stdout is listed below

Thanks in advance

=================================================================================

[cloudera@quickstart home]$ telnet localhost 44444
bash: telnet: command not found
[cloudera@quickstart home]$ which telnet
/usr/bin/which: no telnet in (/usr/local/firefox:/sbin:/usr/java/jdk1.7.0_67-cloudera/bin:/usr/local/apache-ant/apache-ant-1.9.2/bin:/usr/local/apache-maven/apache-maven-3.0.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/cloudera/bin)
[cloudera@quickstart home]$

Cloudera Employee
Posts: 435
Registered: ‎07-12-2013

Re: Telnet does not exist in cloudera vm

`sudo yum install telnet` should do the trick. The VM is based on CentOS 6, so any CentOS 6 tools should work even if they're not included in the base image or Cloudera software.

New Contributor
Posts: 1
Registered: ‎02-16-2017

Re: Telnet does not exist in cloudera vm

I am getting this error in cloudera VM after installing telnet, kindly help

 

[cloudera@quickstart ~]$ telnet localhost
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

Explorer
Posts: 7
Registered: ‎09-12-2017

Re: Telnet does not exist in cloudera vm

I am stuck in the same place as well. Could someone pls help to proceed

New Contributor
Posts: 3
Registered: ‎01-28-2018

Re: Telnet does not exist in cloudera vm

[ Edited ]

Got the below error while trying to install Telnet on the Cloudera VM installed on my Windows laptop: 

 

[cloudera@quickstart lib]$ sudo yum install telnet


Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base

 

Got to learn that addition of 'nameserver 8.8.8.8' in /etc/resolv.conf would solve the issue, but I was not able to edit resolv.conf

 

Tried few other things but nothing worked. Looking for help!

New Contributor
Posts: 1
Registered: ‎04-25-2019

Re: Telnet does not exist in cloudera vm

once you run flume agent you can able to telnet.

 

flume-ng agent --name a1 --conf-file <configuration file path>

 

telnet localhost 44444

 

New Contributor
Posts: 10
Registered: ‎04-25-2019

Re: Telnet does not exist in cloudera vm

In case you want to check if there is connectivity to a remote port, in Linux is not vital to have telnet installed.

 

You can check connectivity to remote ports (TCP or UDP) making use of Linux´s sockets, with this command:

 

# (echo > /dev/tcp/REMOTE_SERVER_IP/REMOTE_SERVER_PORT) >/dev/null 2>&1 && echo "CONNECTION ESTABLISHED!!!" || echo "UNABLE TO CONNECT!"
 
Replacing "REMOTE_SERVER_IP" and "REMOTE_SERVER_PORT" with IP/Hostname and Port of target.
 
I hope it could be useful...