Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # user >> Znode Timestamp?


Copy link to this message
-
Re: Znode Timestamp?
No need to get the ZooKeeper reference. Curator wraps all ZooKeeper methods. There’s a Curator analog to all ZooKeeper methods. Using the Curator method has the advantage of connection management.

-Jordan

On Nov 12, 2013, at 10:55 PM, kishore g <[EMAIL PROTECTED]> wrote:

> You can definitely get this directly from zookeeper.
>
> http://zookeeper.apache.org/doc/r3.4.5/api/org/apache/zookeeper/data/Stat.html
>
> See exists and getData
>
> http://zookeeper.apache.org/doc/r3.3.2/api/org/apache/zookeeper/ZooKeeper.html
>
> Not sure about curator but i am guessing there would be some way to get
> zookeeper reference from curatorFramework object.
>
>
>
>
> On Tue, Nov 12, 2013 at 9:51 PM, Techy Teck <[EMAIL PROTECTED]> wrote:
>
>> When we create any znode or update znode's data then is there any
>> timestamps related with znode?
>>
>> Basically I am interested in getting the znode timestamp when that node got
>> created or when it got updated?
>>
>> I am using apache curator library -
>>
>>           CuratorFramework client >> CuratorClient.createSimple("localhost:2181");
>>           client.start();
>>
>> Any thoughts?
>>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB