Btw, a zk server should never just "stop", ZK is "fail fast" so you really should have a supervisor to restart it if it does exit, more here:
http://hadoop.apache.org/zookeeper/docs/current/zookeeperAdmin.html#sc_supervision Patrick On Thu, Aug 26, 2010 at 1:03 PM, Mahadev Konar <maha...@yahoo-inc.com>wrote: > HI Ted, > You can take a look at > http://hadoop.apache.org/zookeeper/docs/r3.3.1/zookeeperAdmin.html > > To see how to set up directory outside of /tmp. > I am not sure if you zookeeper instance is part of hbase installation or > not. In that case you would be better off posting this question on hbase > list. > > Thanks > mahadev > > > > > On 8/26/10 9:05 AM, "Ted Yu" <yuzhih...@gmail.com> wrote: > > I saw the same error in hbase-hadoop-zookeeper-X.log > zookeeper-3.2.2 is used and managed by HBase. > > How do I use a directory outside of /tmp for zookeeper persistence ? > > Thanks > > On Thu, Aug 19, 2010 at 1:42 PM, Patrick Hunt <ph...@apache.org> wrote: > > > No. You configure it in the server configuration file. > > > > Patrick > > > > > > On 08/19/2010 01:19 PM, Wim Jongman wrote: > > > >> Hi, > >> > >> But zk does default to /tmp? > >> > >> Regards, > >> > >> Wim > >> > >> > >> > >> > >> > >> On Thursday, August 19, 2010, Patrick Hunt<ph...@apache.org> wrote: > >> > >>> +1 on that Ted. I frequently see this issue crop up as "I just rebooted > >>> my server and lost all my data ..." -- many os's will cleanup tmp on > reboot. > >>> :-) > >>> > >>> Patrick > >>> > >>> On 08/19/2010 07:43 AM, Ted Dunning wrote: > >>> > >>> Also, /tmp is not a great place to keep things that are intended for > >>> persistence. > >>> > >>> On Thu, Aug 19, 2010 at 7:34 AM, Mahadev Konar<maha...@yahoo-inc.com > >>> >wrote: > >>> > >>> > >>> Hi Wim, > >>> It mostly looks like that zookeeper is not able to create files on > the > >>> /tmp filesystem. Is there is a space shortage or is it possible the > file > >>> is > >>> being deleted as its being written to? > >>> > >>> Sometimes admins have a crontab on /tmp that cleans up the /tmp > >>> filesystem. > >>> > >>> Thanks > >>> mahadev > >>> > >>> > >>> On 8/19/10 1:15 AM, "Wim Jongman"<wim.jong...@gmail.com> wrote: > >>> > >>> Hi, > >>> > >>> I have a zookeeper server running that can sometimes run for days and > >>> then > >>> quits: > >>> > >>> Is there somebody with a clue to the problem? > >>> > >>> I am running 64 bit Ubuntu with > >>> > >>> java version "1.6.0_18" > >>> OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1) > >>> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode) > >>> > >>> Zookeeper 3.3.0 > >>> > >>> The log below has some context before it shows the fatal error. Our > >>> component.id=40676 indicates that it is the 40676th time that I ask ZK > >>> to > >>> publish this information. It has been seen to go up to half a million > >>> before > >>> stopping. > >>> > >>> Regards, > >>> > >>> Wim > >>> > >>> ZooDiscovery> Service Unpublished: Aug 18, 2010 11:17:28 PM. > >>> ServiceInfo[uri=osgiservices:// > >>> > >>> > >>> > 188.40.116.87:3282/svc_19q0FmlQF0wEwjSl6SpUTJRlV5g=;id=ServiceID[type=ServiceTypeID[typeName=_osgiservices._tcp.default._iana];location=osgiservices://188.40.116.87:3282/svc_19q0FmlQF0wEwjSl6SpUTJRlV5g=;full=_osgiservices._tcp.default._i...@osgiservices://188.40.116.87:3282/svc_19q0FmlQF0wEwjSl6SpUTJRlV5g=];priority=0;weight=0;props=ServiceProperties[{ecf.rsvc.ns=ecf.namespace.generic.remoteservice > < > http://188.40.116.87:3282/svc_19q0FmlQF0wEwjSl6SpUTJRlV5g=;id=ServiceID%5Btype%3DServiceTypeID%5BtypeName%3D_osgiservices._tcp.default._iana%5D%3Blocation%3Dosgiservices://188.40.116.87:3282/svc_19q0FmlQF0wEwjSl6SpUTJRlV5g=;full=_osgiservices._tcp.default._i...@osgiservices://188.40.116.87:3282/svc_19q0FmlQF0wEwjSl6SpUTJRlV5g=%5D;priority=0;weight=0;props=ServiceProperties%5B%7Becf.rsvc.ns=ecf.namespace.generic.remoteservice > > > >>> , > >>> > >>> > >>> > osgi.remote.service.interfaces=org.eclipse.ecf.services.quotes.QuoteService, > >>> ecf.sp.cns=org.eclipse.ecf.core.identity.StringID, ecf.rsvc.id > >>> =org.eclipse.ecf.discovery.serviceproperties$bytearraywrap...@68a1e081 > , > >>> component.name=Star Wars Quotes Service, > ecf.sp.ect=ecf.generic.server, > >>> component.id=40676, > >>> > >>> > >>> > ecf.sp.cid=org.eclipse.ecf.discovery.serviceproperties$bytearraywrap...@5b9a6ad1 > >>> }]] > >>> ZooDiscovery> Service Published: Aug 18, 2010 11:17:29 PM. > >>> ServiceInfo[uri=osgiservices:// > >>> > >>> > >>> > 188.40.116.87:3282/svc_u2GpWmF3YKSlTauWcwOMsDgiBxs=;id=ServiceID[type=ServiceTypeID[typeName=_osgiservices._tcp.default._iana];location=osgiservices://188.40.116.87:3282/svc_u2GpWmF3YKSlTauWcwOMsDgiBxs=;full=_osgiservices._tcp.default._i...@osgiservices://188.40.116.87:3282/svc_u2GpWmF3YKSlTauWcwOMsDgiBxs=];priority=0;weight=0;props=ServiceProperties[{ecf.rsvc.ns=ecf.namespace.generic.remoteservice > < > http://188.40.116.87:3282/svc_u2GpWmF3YKSlTauWcwOMsDgiBxs=;id=ServiceID%5Btype%3DServiceTypeID%5BtypeName%3D_osgiservices._tcp.default._iana%5D%3Blocation%3Dosgiservices://188.40.116.87:3282/svc_u2GpWmF3YKSlTauWcwOMsDgiBxs=;full=_osgiservices._tcp.default._i...@osgiservices://188.40.116.87:3282/svc_u2GpWmF3YKSlTauWcwOMsDgiBxs=%5D;priority=0;weight=0;props=ServiceProperties%5B%7Becf.rsvc.ns=ecf.namespace.generic.remoteservice > > > >>> , > >>> > >>> > >>> > osgi.remote.service.interfaces=org.eclipse.ecf.services.quotes.QuoteService, > >>> ecf.sp.cns=org.eclipse.ecf.core.identity.StringID, ecf.rsvc.id > >>> =org.eclipse.ecf.discovery.serviceproperties$bytearraywrap...@71bfa0a4 > , > >>> component.name=Eclipse Twitter, ecf.sp.ect=ecf.generic.server, > >>> component.id=40677, > >>> > >>> > >>> > ecf.sp.cid=org.eclipse.ecf.discovery.serviceproperties$bytearraywrap...@5bcba953 > >>> }]] > >>> [log;+0200 2010.08.18 > >>> > >>> > >>> > 23:17:29:545;INFO;org.eclipse.ecf.remoteservice;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.remo > >>> > >> > >