Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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