You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/08/11 02:31:00 UTC

[jira] [Work logged] (HIVE-24022) Optimise HiveMetaStoreAuthorizer.createHiveMetaStoreAuthorizer

     [ https://issues.apache.org/jira/browse/HIVE-24022?focusedWorklogId=468978&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-468978 ]

ASF GitHub Bot logged work on HIVE-24022:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Aug/20 02:30
            Start Date: 11/Aug/20 02:30
    Worklog Time Spent: 10m 
      Work Description: sam-an-cloudera opened a new pull request #1385:
URL: https://github.com/apache/hive/pull/1385


   They are many calls to createHiveMetastoreAuthorizer, and for each call, we are creating HiveConf, which is slow. We can use the ThreadLocal conf, so that each thread only creates it once. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 468978)
    Remaining Estimate: 0h
            Time Spent: 10m

> Optimise HiveMetaStoreAuthorizer.createHiveMetaStoreAuthorizer
> --------------------------------------------------------------
>
>                 Key: HIVE-24022
>                 URL: https://issues.apache.org/jira/browse/HIVE-24022
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Rajesh Balamohan
>            Priority: Minor
>              Labels: performance
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> For a table with 3000+ partitions, analyze table takes a lot longer time as HiveMetaStoreAuthorizer tries to create HiveConf for every partition request.
>  
> [https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/metastore/HiveMetaStoreAuthorizer.java#L319]
>  
> [https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/metastore/HiveMetaStoreAuthorizer.java#L447]



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