Hi,

The ZK watches reflect the changes from ZK asynchronously, so there can be some 
delay. Would you mind attach your code to show how you use it?

Terence

Sent from my iPhone

> On Aug 15, 2016, at 8:07 PM, ...the end <549198...@qq.com> wrote:
> 
> hi, all:
> 
> I'm using Twill and it's a very helpful project to write yarn applications. 
> And now I've run into a problem.
> 
> I want to start a http server to accept user's request and control the user's 
> application in the server. I start the TwillRunner when the server starts, 
> the runner can recover the applications started before the runner start. But 
> when I start some new applications or kill some applications, using the 
> lookupLive api or lookup api cannot see any change sometimes.
> 
> I've read the source codes of YarnTwillRunnerService.java. I saw that you 
> used watchers to listen the changes of zookeeper, but I've no idea why it 
> doesn't work sometimes. Is there something wrong about the way I use the 
> TwillRunner?
> 
> Hoping to hear from you soon.
> Thanks!
> 
> Haosu Guo 

Reply via email to