Membase Java Load Generator Problem
Hi,
I am trying to run Java Load Generator provided in membase documentation.
Firstly, I modified workloadb file and mentioned membase server address into it.
WORKLOADB FILE CONTENT :
db=com.yahoo.ycsb.db.SpymemcachedClient
memcached.address=10.72.45.165
memcached.port=11211
slaveaddress=10.112.83.64
histogram.buckets=20
exportfile=results.txt
recordcount=200000
operationcount=500000
workload=com.yahoo.ycsb.workloads.MemcachedCoreWorkload
#insertstart=200000
readallfields=true
insertproportion=0
readproportion=0.95
updateproportion=0
scanproportion=0
#memaddproportion=0.05
memgetproportion=0.100
#memsetproportion=0.25
memupdateproportion=0.0
#memappendproportion=0.05
#memprependproportion=0.05
#memreplaceproportion=0.05
#memcasproportion=0.05
valuelength=2048
workingset=100000
churndelta=100000
printstatsinterval=5
requestdistribution=zipfian
threadcount=4
Then, I build whole load generator project by using command : ant decompile-memcached
And Tried to load data using command :
java -cp build/ycsb.jar:lib/memcached-2.5-14-g3b3b3c8.jar:lib/jackson-core-asl-1.5.2.jar:lib/jackson-mapper-asl-1.5.2.jar:lib/slf4j-api-1.6.1.jar:lib/slf4j-simple-1.6.1.jar:lib/memcached-2.5-27-gc7bc636-sources.jar:lib/memcached-2.6.jar com.yahoo.ycsb.LoadGenerator -load -P worloads/workloadb
After issuing this command, I got the terminal output :
0 sec: 0 operations; 0 ops/sec
2011-05-24 17:05:54.022 INFO net.spy.memcached.MemcachedConnection: Added {QA sa=/10.72.45.165:11222, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2011-05-24 17:05:54.026 INFO net.spy.memcached.MemcachedConnection: Added {QA sa=/10.72.45.165:11222, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2011-05-24 17:05:54.027 INFO net.spy.memcached.MemcachedConnection: Added {QA sa=/10.72.45.165:11222, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2011-05-24 17:05:54.036 INFO net.spy.memcached.MemcachedConnection: Added {QA sa=/10.72.45.165:11222, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2011-05-24 17:05:54.046 WARN net.spy.memcached.MemcachedConnection: Could not redistribute to another node, retrying primary node for user76958204.
2011-05-24 17:05:54.047 WARN net.spy.memcached.MemcachedConnection: Could not redistribute to another node, retrying primary node for user336694473.
2011-05-24 17:05:54.048 WARN net.spy.memcached.MemcachedConnection: Could not redistribute to another node, retrying primary node for user1268118805.
2011-05-24 17:05:54.058 WARN net.spy.memcached.MemcachedConnection: Could not redistribute to another node, retrying primary node for user1681771482.
Can anyone please point out the mistake ? I have three membase servers running in cluster. I am not able to understand what does this error mean.
Regards,
Sanket Dangi
I tried using latest client but getting same error.
I am able to telnet membase server on ports 11210 and 8091. It is getting connected but no command works out.. No output comes up with I shoot 'stats' command. And all of a sudden session gets closed. Set command is also not working.
A few things to address here:
-You will not be able to get 'stats' from 11210 as it only accepts the binary protocol. Just ensuring connectivity is enough.
-You SHOULD be able to get 'stats' from telnetting to 11211
-Port 8091 is just for our REST API, so there's no memcache protocol on there
Looking deeper into the errors you provided, it seems like the load generator is trying to connect to 10.72.45.165 on port 11222 yet your configuration is for 10.112.83.64 on port 11211. Can you find out where the mismatch is in terms of configuration and ensure that you're accessing the right servers on the right ports?
Can you please try the latest spymemcached client available here: http://techzone.couchbase.com/wiki/display/membase/prerelease+spymemcach...
Also, please check whether you can telnet from your client to the Membase servers on ports 11210 and 8091. Is there any firewall in place?
Perry
Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!