Description
I git clone the membase-cli code at my own lap top.
Take a backup from 181 node:
$./cbbackup http://10.5.2.22:8091 ~/backup
################### 100.0% (1000/1000 msgs)
bucket: default, msgs transferred...
: total | last | per sec
batch : 2136 | 2136 | 2772.4
byte : 4000 | 4000 | 5191.7
msg : 1000 | 1000 | 1297.9
done
Restore it to another 181 node through moxi:
$ ./cbrestore ~/backup/ memcached://10.3.2.23:11211
################### 100.0% (1000/1000 msgs)
bucket: default, msgs transferred...
: total | last | per sec
batch : 2 | 2 | 1.1
byte : 4000 | 4000 | 2188.4
msg : 1000 | 1000 | 547.1
done
But when I try to use memcached client to access the data, I failed:
>>> client = mc_bin_client.MemcachedClient('10.5.2.22', 11211) #source
>>> clieng.get("chisheng1")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'clieng' is not defined
>>> client.get("chisheng1")
(100001, 2, 'hong')
>>> client1 = mc_bin_client.MemcachedClient('10.5.2.23', 11211) #destination
>>> client1.get("chisheng1")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "lib/mc_bin_client.py", line 198, in get
parts = self._doCmd(memcacheConstants.CMD_GET, key, '')
File "lib/mc_bin_client.py", line 128, in _doCmd
return self._handleSingleResponse(opaque)
File "lib/mc_bin_client.py", line 121, in _handleSingleResponse
cmd, opaque, cas, keylen, extralen, data = self._handleKeyedResponse(myopaque)
File "lib/mc_bin_client.py", line 117, in _handleKeyedResponse
raise MemcachedError(errcode, rv)
mc_bin_client.MemcachedError: Memcached error #1 'Not found': Not found for vbucket :992 to mc 10.5.2.23:11211
The source vm is 10.5.2.22, the destination vm is 10.5.2.23