Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-13171

When creating a namespace, setting the group id for the data directory may fail

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.3
    • Fix Version/s: 4.3.4
    • Component/s: Namespaces
    • Labels:
      None
    • Release Notes:
      Fixes an issue with creating a namespace if the namespace principal is not a member of the namespace home's group.
    • Rank:
      1|i00b7j:

      Description

      When creating a namespace, we try to set the group of the data directory to be the same as the group of the namespace's root, unless a groupName is explicitly configured, then we use that. This fails if the namespace owner/principal is not a member of that group.

      • We need to document that the principal must be a member of the group
      • If the groupName is not configured, it is possible that the root has a group that the principal is not a member of. In that case, namespace creation should not fail. This can happen because HDFS is a BSD-style file system, where a directory by default inherits the group id of its parent (and the owner/creator is not necessarily a member of the parent's group). So we should either
        • only set the group if the principal is a member, or
        • only set the group if is was explicitly configured via the groupName property. I think that is the best approach, because it inherits the root directory's group by default, so there should never be a need to change it explicitly.

        Attachments

          Activity

            People

            • Assignee:
              andreas Andreas Neumann
              Reporter:
              andreas Andreas Neumann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: