hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From demian rosas <demia...@gmail.com>
Subject Re: Is there any API that tells me what files comprise a hive table?
Date Mon, 07 Oct 2013 18:56:27 GMT
Edward,

Thanks a lot for this info !!!

This gives me a clearer picture of the problem and how I can approach it.

Cheers.


On 7 October 2013 11:52, Edward Capriolo <edlinuxguru@gmail.com> wrote:

> Not a direct API.
>
> What I do is this. From java/thrift:
> Table t = client.getTable("name_of_table");
> Path p = new Path(t.getSd.getLocation());
> FileSystem fs = FileSystem.get(conf);
> List<FileStatus> f = fs.listFiles(p)
> /// your logic here.
>
>
>
>
> On Mon, Oct 7, 2013 at 2:01 PM, demian rosas <demianrh@gmail.com> wrote:
>
>> Hi all,
>>
>> I want to track the changes made to the files of a Hive table.
>>
>> I wounder whether there is any API that I can use to find out the
>> following:
>>
>> 1. What files in hdfs constitute a hive table.
>> 2. What is the size of each of these files.
>> 3. The time stamp of the creation/last update to each of these files.
>>
>>
>> Also in a wider view, is there any API that can do the above mentioned
>> for HDFS files in general (not only hive specific)?
>>
>> Thanks a lot in advance.
>>
>> Cheers.
>>
>>
>>
>

Mime
View raw message