Re: getting Hive table access times

2012-07-03 Thread Stephen R. Scaffidi
Well, diving through the source code, that seems to be the case. It seems like an odd thing to have to set an access time manually, but I guess I can see how it could be useful :) On 07/02/2012 02:24 PM, VanHuy Pham wrote: I think it only makes sense to use getLastAccessTime() when you have al

Re: getting Hive table access times

2012-07-02 Thread VanHuy Pham
I think it only makes sense to use getLastAccessTime() when you have already used setLastAccessTime() MANUALLY, otherwise hive does not automatically set the access time in its metastore. Correct me if I am wrong! On Mon, Jul 2, 2012 at 4:46 AM, Stephen R. Scaffidi < sscaff...@tripadvisor.com> wro

Re: getting Hive table access times

2012-07-02 Thread Stephen R. Scaffidi
On 06/28/2012 09:28 AM, Stephen R. Scaffidi wrote: I've written some code where I am trying to get the atime of my tables in Hive. It's fairly simple - the method call in question is simply: int atime = htable.getLastAccessTime(); Where htable is an otherwise normal org.apache.hadoop.hive.m

getting Hive table access times

2012-06-28 Thread Stephen R. Scaffidi
I've written some code where I am trying to get the atime of my tables in Hive. It's fairly simple - the method call in question is simply: int atime = htable.getLastAccessTime(); Where htable is an otherwise normal org.apache.hadoop.hive.metastore.api.Table object. The question is this: d