Well, that was obvious. I should have looked there first. Back up and running now. Thanks!
-Ryan On 3/8/12 4:23 PM, "Ted Dunning" <[email protected]> wrote: >Ahh... I see. > >Look in the zoo.cfg file that your ZK is using for a dataDir setting. >That >will tell you where ZK has its data including snapshots and logs. > >On Thu, Mar 8, 2012 at 4:10 PM, Shelley, Ryan ><[email protected]>wrote: > >> It attempts to start, gets an exception and then quits: >> >> http://screencast.com/t/TWG529FGV0R >> >> Finagle added the paths to ZK, now when I try to restart, it looks like >>ZK >> is trying to replay some transaction, failing, and quitting. If I knew >> where the data file was, I could just delete the data file and start >>fresh. >> >> -Ryan >> >> On 3/8/12 4:03 PM, "Ted Dunning" <[email protected]> wrote: >> >> >Can you resolve the pronouns here? >> > >> >It looks like ZK is running, but that Finagle will not. >> > >> >Is that what you meant to say? >> > >> >The log messages make it look like somebody assumes that a directory >> >/twitter/servers does exist, but is finding that this directory doesn't >> >exist. Isn't that an application error? >> > >> >On Thu, Mar 8, 2012 at 3:47 PM, Shelley, Ryan >> ><[email protected]>wrote: >> > >> >> I was playing with Finagle which uses ZK, however, after shutting >>down >> >>my >> >> ZK instance, it won't start back up again: >> >> >> >> 2012-03-08 15:44:39,427 [myid:] - INFO [main:ZooKeeperServer@733] - >> >> tickTime set to 2000 >> >> 2012-03-08 15:44:39,427 [myid:] - INFO [main:ZooKeeperServer@742] - >> >> minSessionTimeout set to -1 >> >> 2012-03-08 15:44:39,427 [myid:] - INFO [main:ZooKeeperServer@751] - >> >> maxSessionTimeout set to -1 >> >> 2012-03-08 15:44:39,441 [myid:] - INFO >>[main:NIOServerCnxnFactory@110] >> >>- >> >> binding to port 0.0.0.0/0.0.0.0:2181 >> >> 2012-03-08 15:44:39,467 [myid:] - ERROR [main:FileTxnSnapLog@208] - >> >> Parent /twitter/services missing for /twitter/services/testService >> >> 2012-03-08 15:44:39,468 [myid:] - ERROR >>[main:ZooKeeperServerMain@63] - >> >> Unexpected exception, exiting abnormally >> >> java.io.IOException: Failed to process transaction type: 1 error: >> >> KeeperErrorCode = NoNode for /twitter/services >> >> at >> >> >> >>>>org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnS >>>>na >> >>pLog.java:151) >> >> at >> >>>>org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:223 >>>>) >> >> at >> >> >> >>>>org.apache.zookeeper.server.ZooKeeperServer.loadData(ZooKeeperServer.ja >>>>va >> >>:259) >> >> at >> >> >> >>>>org.apache.zookeeper.server.ZooKeeperServer.startdata(ZooKeeperServer.j >>>>av >> >>a:386) >> >> at >> >> >> >>>>org.apache.zookeeper.server.NIOServerCnxnFactory.startup(NIOServerCnxnF >>>>ac >> >>tory.java:138) >> >> at >> >> >> >>>>org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeper >>>>Se >> >>rverMain.java:112) >> >> at >> >> >> >>>>org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKee >>>>pe >> >>rServerMain.java:86) >> >> at >> >> >> >>>>org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMai >>>>n. >> >>java:52) >> >> at >> >> >> >>>>org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(Quor >>>>um >> >>PeerMain.java:116) >> >> at >> >> >> >>>>org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.j >>>>av >> >>a:78) >> >> Caused by: org.apache.zookeeper.KeeperException$NoNodeException: >> >> KeeperErrorCode = NoNode for /twitter/services >> >> at >> >> >> >>>>org.apache.zookeeper.server.persistence.FileTxnSnapLog.processTransacti >>>>on >> >>(FileTxnSnapLog.java:209) >> >> at >> >> >> >>>>org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnS >>>>na >> >>pLog.java:149) >> >> ... 9 more >> >> >> >> I'm not sure where the data file is that I could use to purge things. >> >> Suggestions? >> >> >> >> -Ryan >> >> >> >>
