Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-2090

when hudi metadata is enabled, use different user to query table, the query will failed

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      when hudi metadata is enabled, use different user to query table, the query will failed.
       
      The user permissions of the temporary directory generated by DiskBasedMap are incorrect. This directory only has permissions for the user of current operation, and other users have no permissions to access it, which leads to this problem

      test step:

      step1: create hudi table with metadata enabled.

      step1: create two user(omm,user2)

      step2:  

      f1) use omm to query hudi table 

      DiskBasedMap will generate view_map with permissions drwx------.

      2) then user user2 to query hudi table

      now user2 has no right to access view_map which created by omm,   the exception will throws:

           org.apache.hudi.exception.HoodieIOException: IOException when creating ExternalSplillableMap at /tmp/view_map

       

       

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            xiaotaotao tao meng
            xiaotaotao tao meng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment