Support Questions

Find answers, ask questions, and share your expertise

CDH installation: Failed to create HDFS directory /tmp

avatar

Hi,

 

I am in the step of "Starting HDFS" installation, however, when it is about to be finished I get the following error:

"Creating HDFS /tmp/directory". Command aborted because of exception: Command timed-out after 90 seconds.

Directory /tmp does not currently exist.

 

How can I solve this problem?

 

Thanks,

 

Kind regards,

9 REPLIES 9

avatar
New Contributor

Hi. I also had this problem and I solved it.

Just open port 8022.

All namenodes try to connect to cloudera manager using this port.

 

Good luck

 

Ricardo

avatar
Explorer
That worked after opening the port 8022 🙂

avatar
Explorer
could you tell me how to open the port 8022 ? thank you very much

avatar
Champion

@houfan 

as a root run the below command to see if the port is listed there and listening . 

netstat -nlp

meantime check your firewalld status if its active and if you are ok try disabling it . 

could you let me know operating system that you are using ? 

avatar
Explorer

I am having similar issue. I checked to see that firewalld is inactive. Port 8022 is listening as per netstat -nlp

 

I am using Cloudera installation wizard and on the Ssh login credentials page to select install options, I picked root password method

 

Any ideas what to check next?

avatar
Explorer

Also note that hostname returns the correct FQDN but hostname -f returns "localhost" and not a proper name. That could be an issue right?

avatar
Explorer
fixed hostname -f to return FQDN, still the same issue

avatar
Explorer

I had a problem in my /etc/hosts file. Fixed that and now hostname -f is fine and I'm able to go past the issue with 8022 port.

Cautionary note: don't mess with existing lines in /etc/hosts file if you need to edit this file. Add to the file , don't update.

avatar
Champion

Could you post the full installer log for more digging . 

 

one thing i assume might be a permission issue .

did you kick off the installation as root ?

 

finally let me know if you are able to go to the 

hostname:50070 - Namenode UI