Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
None
Description
When a socket path does not have the correct permissions, an error is thrown.
That error just has the failing component of the path and not the entire path of the socket.
The entire path of the socket could be printed out to allow for a direct check of the permissions of the entire path.
java.io.IOException: the path component: '/' is world-writable. Its permissions are 0077. Please fix this or select a different socket path. at org.apache.hadoop.net.unix.DomainSocket.validateSocketPathSecurity0(Native Method) at org.apache.hadoop.net.unix.DomainSocket.bindAndListen(DomainSocket.java:189) ...
The error message could also provide the socket path:
java.io.IOException: the path component: '/' is world-writable. Its permissions are 0077. Please fix this or select a different socket path than '/var/run/hdfs-sockets/dn'
Attachments
Attachments
Issue Links
- breaks
-
HADOOP-12560 Fix sprintf warnings in {{DomainSocket.c}} introduced by HADOOP-12344
- Resolved