Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Re: Datanodes failed to start the role because hdfs-sockets cannot be created

Solved Go to solution
Highlighted

Re: Datanodes failed to start the role because hdfs-sockets cannot be created

Explorer

Hi,

 

I am facing the same issue.

I tried with both users: root and cloudera-scm to set as owners for /var/hdfs-sockets/dn.

Error is: Address already in use when trying to bind to '/var/hdfs-sockets/dn'

But without success.

Can someone please provide some hints on this?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Datanodes failed to start the role because hdfs-sockets cannot be created

Explorer

Hi,

 

solution is that in /var/hdfs-sockets/dn  dn should not be created as directory.

dn will be created automatically as a file.

My mistake was becase I created dn also as directory and that is why I was getting an error.

 

Thank you for assitance

3 REPLIES 3

Re: Datanodes failed to start the role because hdfs-sockets cannot be created

Super Guru

@VeljkoC,

 

I moved this post in front of the HDFS community members since it targets problem with HDFS rather than CM itself.

Can you provide the actions you took and evidence of what happened (provide logs and/or screenshots?)

 

Thanks!

Re: Datanodes failed to start the role because hdfs-sockets cannot be created

Super Collaborator

@VeljkoC Are you using cloudera manager?

 

If yes, can you check the hdfs configuration for UNIX Domain Socket path, what is it value?

 

If it empty try to add : /hadoop/sockets/hdfs-sockets/dn

Re: Datanodes failed to start the role because hdfs-sockets cannot be created

Explorer

Hi,

 

solution is that in /var/hdfs-sockets/dn  dn should not be created as directory.

dn will be created automatically as a file.

My mistake was becase I created dn also as directory and that is why I was getting an error.

 

Thank you for assitance

Don't have an account?
Coming from Hortonworks? Activate your account here