Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12344

Improve validateSocketPathSecurity0 error message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • net
    • 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

        1. HADOOP-12344.004.patch
          7 kB
          Casey Brotherton
        2. HADOOP-12344.003.patch
          7 kB
          Casey Brotherton
        3. HADOOP-12344.002.patch
          6 kB
          Casey Brotherton
        4. HADOOP-12344.001.patch
          6 kB
          Casey Brotherton
        5. HADOOP-12344.patch
          2 kB
          Casey Brotherton

        Issue Links

          Activity

            People

              caseyjbrotherton Casey Brotherton
              caseyjbrotherton Casey Brotherton
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: