At runtime I changes my dependencies and I started getting an error in
Twill.  I was seeing an NPE at the following line.

org.apache.twill.yarn.YarnTwillRunnerService.getApplicationId(YarnTwillRunnerService.java:542)

~[twill-yarn-0.6.0-incubating.jar:0.6.0-incubating]


Through zookeeper and twill logging, I tracked the cause down to the
following data being in zookeeper.

The following path :

   /fluo-app-phrasecount/instances/2e0b9fe4-6e1c-4ecc-a454-d821e8453cb9

had the following data :
{"members":{"data":{"appId":1,"appIdClusterTime":1465862775942,"containerId":"container_1465862775942_0001_01_000001"}}}


When I run with a set of dependencies that works, I see the following data
in zookeeper.  This has a root of data in the json as opposed to the root
of members.

{"data":{"appId":1,"appIdClusterTime":1465866930685,"containerId":"container_1465866930685_0001_01_000001"}}


Could someone help me locate the code that sets the value of
/fluo-app-phrasecount/instances/2e0b9fe4-6e1c-4ecc-a454-d821e8453cb9 in
zookeeper?  If I can locate that code, maybe I can understand why changing
my deps changed the value in ZK to have a root of members.

Thanks,

Keith

Reply via email to