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)
`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.
I am getting this error in cloudera VM after installing telnet, kindly help
[cloudera@quickstart ~]$ telnet localhost
telnet: connect to address 127.0.0.1: Connection refused
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 220.127.116.11' 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!
once you run flume agent you can able to telnet.
flume-ng agent --name a1 --conf-file <configuration file path>
telnet localhost 44444
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: