Reply
Highlighted
Explorer
Posts: 12
Registered: ‎09-28-2018
Accepted Solution

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

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

Posts: 953
Topics: 1
Kudos: 226
Solutions: 121
Registered: ‎04-22-2014

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

@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!

Expert Contributor
Posts: 338
Registered: ‎01-25-2017

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

@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

Explorer
Posts: 12
Registered: ‎09-28-2018

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

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

Announcements