Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4220

Augment AccessControlException to include both affected inode and attempted operation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0.2-alpha
    • None
    • hdfs-client, namenode

    Description

      Currently when any application that uses hdfs runs and hits a permissions wall a message similar to the following is emitted.

      FAILED: RuntimeException org.apache.hadoop.security.AccessControlException: Permission denied: user=huhlig, access=WRITE, inode="/":hdfs:hadoop:drwxr-xr-x

      This provides a bit of information including who, did what and where but not what I tried to do. This makes debugging naughty or misconfigured applications difficult to debug.

      A preferable addition to this would follow inode

      FAILED: RuntimeException org.apache.hadoop.security.AccessControlException: Permission denied: user=huhlig, access=WRITE, inode="/":hdfs:hadoop:drwxr-xr-x, operation=mkdir:"/new/path/to/make"

      This would allow for easier tracing of applications like hive where they may hit odd file system spaces.

      Attachments

        Activity

          People

            Unassigned Unassigned
            huhlig Hans Uhlig
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: