hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <>
Subject [jira] [Work logged] (HIVE-24022) Optimise HiveMetaStoreAuthorizer.createHiveMetaStoreAuthorizer
Date Mon, 31 Aug 2020 18:28:00 GMT


ASF GitHub Bot logged work on HIVE-24022:

                Author: ASF GitHub Bot
            Created on: 31/Aug/20 18:27
            Start Date: 31/Aug/20 18:27
    Worklog Time Spent: 10m 
      Work Description: sam-an-cloudera commented on pull request #1385:

   > @sam-an-cloudera initialValue() return type was Configuration and is now HiveConf
which is a sub-class of Configuration. Was there a reason for this change? It would be more
appropriate that the return type be Configuration. Thoughts?
   It was mainly to avoid having to cast. The config used in createHiveMetastoreAuthorizer(
) method is required to be a HiveConf, the createHiveAuthorizer( ) call in particular. If
we keep it as Configuration, then down there we have to do a cast, which is not good style,
so I changed the original to HiveConf. 
   HiveConf hiveConf = tConfig.get();
       if(hiveConf == null){
         HiveConf hiveConf1 = new HiveConf(super.getConf(), HiveConf.class); <==If I don't
change, then here would need a cast. 
         hiveConf = hiveConf1;

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:

Issue Time Tracking

    Worklog Id:     (was: 476743)
    Time Spent: 0.5h  (was: 20m)

> Optimise HiveMetaStoreAuthorizer.createHiveMetaStoreAuthorizer
> --------------------------------------------------------------
>                 Key: HIVE-24022
>                 URL:
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Rajesh Balamohan
>            Assignee: Sam An
>            Priority: Minor
>              Labels: performance, pull-request-available
>          Time Spent: 0.5h
>  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.
> []
> []

This message was sent by Atlassian Jira

View raw message