Jayesh Lalwani created HIVE-29595:
-------------------------------------

             Summary: HiveClientCache does not respect metastore.client.impl 
(HCatalog ignores pluggable IMetaStoreClient)
                 Key: HIVE-29595
                 URL: https://issues.apache.org/jira/browse/HIVE-29595
             Project: Hive
          Issue Type: Bug
          Components: HCatalog, Metastore
    Affects Versions: 4.2.0
            Reporter: Jayesh Lalwani


HIVE-12679 (fixed in 4.2.0) added support for pluggable IMetaStoreClient via 
metastore.client.impl in HiveMetaStoreClientBuilder. However, HiveClientCache 
used by HCatalog's HCatInputFormat/HCatOutputFormat  was not updated.      
                                                                                
                                                                                
                                                                           
  HiveClientCache still hardcodes HiveMetaStoreClient in:                       
                                                                                
                                                                           
  1. getNonCachedHiveMetastoreClient()  calls 
RetryingMetaStoreClient.getProxy(hiveConf, true) which hardcodes 
HiveMetaStoreClient.class.getName()                                             
                                           
  2. CacheableHiveMetaStoreClient extends HiveMetaStoreClient only works with 
the Thrift client                                                               
                                                                           
                                                                                
                                                                                
                                                                           
  This means any custom IMetaStoreClient configured via 
hive.metastore.client.impl is ignored when accessing Hive tables through 
HCatalog (MapReduce jobs using HCatInputFormat/HCatOutputFormat).         



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to