I'm installing CDH5 on Centos 6.5 using Cloudera Manager 5.2. Every steps in "Cluster Installation" phase finished seamlessly. But in the last step of "Cluster Setup" phase, it keeps failing on "creating HDFS /tmp directory".
I believe this directory created is inside HDFS and the OS version of /tmp/ If you can get your cluster up and go to "hostname:50070" page it should show you the HDFS filesystem. TMP is created by default.
My stderr log message is as follows:
+ /opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.p0.12/lib/hadoop-hdfs/bin/hdfs --config /var/run/cloudera-scm-agent/process/14-hdfs-NAMENODE-createtmp dfs -test -d /tmptest: Call From centos65cm/192.168.142.129 to centos65cm:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused+ '[' 1 -eq 0 ']'+ echo 'Directory /tmp does not currently exist.'+ PARENT_ARG=+ '[' 5 -ge 4 ']'+ PARENT_ARG=-p+ /opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.p0.12/lib/hadoop-hdfs/bin/hdfs --config /var/run/cloudera-scm-agent/process/14-hdfs-NAMENODE-createtmp dfs -mkdir -p /tmp
[root@centos65cm ~]# netstat -tlpn |grep :8020tcp 0 0 192.168.142.129:8020 0.0.0.0:* LISTEN 18392/java[root@centos65cm ~]# lsof -i @centos65cm:8020COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEjava 18392 hdfs 166u IPv4 167822 0t0 TCP centos65cm:intu-ec-svcdisc (LISTEN)
[root@centos65cm ~]# telnet centos65cm 8020Trying 192.168.142.129...Connected to centos65cm.Escape character is '^]'.
But hdfs creating /tmp still failed. Any idea?
I had the same problem. When looking through the logs (start with agent log to see what script is being run) and then looking through the logs in the directory that the dfs create tmp script is in, I see that the directory is successfully created. However I suspect a timing issue between the agent and manager causes a command timeout.
@CDH guys how do I file a PR?
cdh5.5.1 on ubuntu 14.04 trusty, install path B