You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Udit Mehrotra (Jira)" <ji...@apache.org> on 2021/08/12 22:48:00 UTC

[jira] [Resolved] (HUDI-2090) when hudi metadata is enabled, use different user to query table, the query will failed

     [ https://issues.apache.org/jira/browse/HUDI-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Udit Mehrotra resolved HUDI-2090.
---------------------------------
    Resolution: Fixed

> when  hudi metadata is enabled,  use different user to query table, the query will failed
> -----------------------------------------------------------------------------------------
>
>                 Key: HUDI-2090
>                 URL: https://issues.apache.org/jira/browse/HUDI-2090
>             Project: Apache Hudi
>          Issue Type: Bug
>          Components: Common Core
>    Affects Versions: 0.8.0
>            Reporter: tao meng
>            Assignee: tao meng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.9.0
>
>
> 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
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)