I always get this message when attempting to read a file:
09-15-2011 11:06:56.587 INFO - (KfsClient.cc:3317) Server says lease on chunk 13 is busy…waiting
Any ideas why and how to fix?
Setup shown here:
$ more mach*
::::::::::::::
machines.cfg
::::::::::::::
# KFS Machine configuration file
#
# The following configuration is a single node KFS setup. There is # one meta server and 2 chunk servers. The chunk servers are exporting # 30,000,000 bytes or 30 G apiece. Note the unique values for the baseport, rundir.
#
I always get this message when attempting to read a file:
09-15-2011 11:06:56.587 INFO - (KfsClient.cc:3317) Server says lease on chunk 13 is busy…waiting
Any ideas why and how to fix?
Setup shown here:
$ more mach*
::::::::::::::
machines.cfg
::::::::::::::
# KFS Machine configuration file
#
# The following configuration is a single node KFS setup. There is # one meta server and 2 chunk servers. The chunk servers are exporting # 30,000,000 bytes or 30 G apiece. Note the unique values for the baseport, rundir.
#
node: localhost
clusterkey: test-cluster
rundir: /home/susan/kfs/meta
baseport: 20000
numservers: 2
rundir: /home/susan/kfs/chunk/bin/kfschunk
baseport: 30000
space: 1 G
loglevel: INFO
::::::::::::::
machines.txt
::::::::::::::
192.168.243.158
$ python kfssetup.py -f machines.cfg -m machines.txt -b ../build -w ../webui/ -s
cp: omitting directory `./bin'
cp: omitting directory `./lib'
cp: omitting directory `./orig'
cp: omitting directory `./scripts'
cp: omitting directory `./webui'
gtar: Removing leading `/' from member names
gtar: Removing leading `/' from member names
python kfslaunch.py -f machines.cfg -m machines.txt -s
: Starting chunkserver…
: Starting metaserver…
: Starting cleaner…
$ ~/projects/kfs/build/bin/tools/kfsping -m -s localhost -p 20000 Up servers: 1 s=127.0.0.1, p=30000, rack=243, used=0(GB), free=1(GB), util=0%, nblocks=0, lastheard=0 (sec), ncorrupt=0, nchunksToMove=0, numDrives=1 $
$ cptokfs -s localhost -p 20000 -d ~/Downloads/Hamlet.txt -k plays -v
09-08-2011 11:09:06.053 DEBUG - (KfsClient.cc:636) Connecting to metaserver at: localhost:20000
09-08-2011 11:09:06.054 DEBUG - (KfsClient.cc:3226) file-id for dir: / (file = plays) is 2
09-08-2011 11:09:06.054 DEBUG - (KfsClient.cc:3226) file-id for dir: / (file = plays) is 2
09-08-2011 11:09:06.055 DEBUG - (KfsClient.cc:1301) Size of plays is 0
09-08-2011 11:09:06.055 DEBUG - (KfsClient.cc:3226) file-id for dir: /plays/ (file = Hamlet.txt) is 4
09-08-2011 11:09:06.055 DEBUG - (KfsClient.cc:2518) lookup: Hamlet.txt (parentfid = 4) failed with code(-2): No such file or directory
09-08-2011 11:09:06.055 DEBUG - (KfsClient.cc:3226) file-id for dir: /plays/ (file = Hamlet.txt) is 4
09-08-2011 11:09:06.078 DEBUG - (KfsClient.cc:2910) Chunk: 3, size = 0
09-08-2011 11:09:06.078 DEBUG - (KfsClient.cc:2049) Fileid: 5, chunk : 3, version: 1, hosted on:
09-08-2011 11:09:06.078 DEBUG - (KfsClient.cc:2052) 127.0.0.1 30000
09-08-2011 11:09:06.078 DEBUG - (KfsClient.cc:2060) Total Time to allocate chunk: 0.0021 secs
09-08-2011 11:09:06.079 DEBUG - (KfsWrite.cc:686) @offset: 0 nbytes: 131072 cksum: 274782518 # of entries: 2
09-08-2011 11:09:06.079 DEBUG - (KfsWrite.cc:686) @offset: 131072 nbytes: 51417 cksum: 199294017 # of entries: 1
09-08-2011 11:09:06.106 DEBUG - (KfsWrite.cc:738) Wrote to server (fd = 2), 182489 bytes, was asked 182489 bytes
09-08-2011 11:09:06.106 DEBUG - (KfsWrite.cc:517) Total Time to write data to server(s): 0.0280 secs
09-08-2011 11:09:06.106 DEBUG - (KfsClient.cc:2873) Relinquishing lease on chunk=3, @offset = 182489, chunksize = 182489
09-08-2011 11:09:06.107 DEBUG - (KfsClient.cc:1664) Closing filetable entry: 2
09-08-2011 11:09:06.107 DEBUG - (KfsClient.cc:3122) Closing filetable entry: 2, openmode = 2, path = plays/Hamlet.txt $
Never mind - I've worked around this.