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

Alexander Kolbasov updated SENTRY-1898:
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0
           Status: Resolved  (was: Patch Available)

[~lina.li] Thank you for your contribution!

> Sentry no longer supports creating more than ~15 partitions at once
> -------------------------------------------------------------------
>
>                 Key: SENTRY-1898
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1898
>             Project: Sentry
>          Issue Type: Bug
>          Components: Sentry
>    Affects Versions: 2.0.0
>            Reporter: Na Li
>            Assignee: Na Li
>            Priority: Blocker
>             Fix For: 2.0.0
>
>         Attachments: SENTRY-1898.001.patch, SENTRY-1898.002.patch
>
>
> Vamsee reported: I notice this problem on our stress cluster where we are 
> creating a huge amounts of Hive metadata (Databases, Tables, and Partitions). 
> During this process, multiple partitions of the table are being created at 
> one go using:
> ALTER TABLE <TB> ADD PARTITION <PART1> ADD PARTITION <PART2>...
> I notice that when we add more than 20 partitions here in one sql statement, 
> Sentry fails to process the transaction as we cross the 4000 character 
> threshold on PATH change table.
> Every partition entry is of format:
> {"1":{"str":"test_hivemd_db_2017_08_15_08_14_27_2_0_8.test_hivemd_table_2017_08_15_08_14_27_2_0_0"},"2":{"lst":["lst",1,["str",6,"user","hive","warehouse","test_hivemd_db_2017_08_15_08_14_27_2_0_8.db","test_hivemd_table_2017_08_15_08_14_27_2_0_0","part=test_hivemd_partition_2017_08_15_08_14_27_2_0_1"]]},"3":{"lst":["lst",0]}}
> ~ 327 characters
> So to fit in 4000 characters, we are limited to 10-15 partitions to be 
> created at one go. 
> We should allow the big path update from hive. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to