Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

zookeeper znode

zookeeper znode

Hello All,

Does parent zookeeper node gets notified, if any of its child node gets modified.

create /parent parentData

create /parent/child data

adding watcher to parent node

get /parent [watch] 1

updaing child node data

set /parent/child modified

question 1: while updaing child node data, will my parent gets notified ? ( in paper, they are saying yes, but when I tried the same I am not getting notification , not sure, what am I missing)

question 2 : I am getting notification when I update the parent node data , but it lasts for only one time , each time I need to add the watcher for the node. how to add the watch permanently ?



Don't have an account?
Coming from Hortonworks? Activate your account here