Thanks for your advice, I have found the functions in ThriftHiveMetastore.h. 
That is precisely what I need!! 
> 在 2018年4月26日,下午11:16,Alan Gates <alanfga...@gmail.com> 写道:
> 
> The calls you want are in ThriftHiveMetastore.h.  You can use these to get
> lists of tables and objects representing each table.  One of the fields in
> the Table object is a StorageDescriptor, which has a field called
> 'location'.  If you are working with partitioned tables the location
> information for each partition will be in the associated Partition object
> rather than in the Table object.
> 
> Alan.
> 
> On Thu, Apr 26, 2018 at 5:23 AM, 侯宗田 <zongtian...@icloud.com> wrote:
> 
>> Hi,
>> 
>> I am writing a simple thrift HMS client to get table location on hdfs, I
>> generate the cpp code from hive_metastore.thrift, Can someone give me some
>> guide of how to do it next, the info I searched on the internet is too
>> abstract and not to my need precisely.

Reply via email to