Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

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

avatar
Contributor

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

avatar
Contributor

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

View solution in original post

3 REPLIES 3

avatar
Master 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!

avatar
Master 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

avatar
Contributor

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