After i removed try/except block, i get following error:
Traceback (most recent call last):
File "/tmp/aerospike.py", line 4, in <module>
import aerospike
File "/tmp/aerospike.py", line 12, in <module>
client = aerospike.client(config).connect()
AttributeError: 'module' object has no attribute 'client'
I not see source code of connector(cpython used?) and have no any clue where to go from this point.
# import the module
from __future__ import print_function
import aerospike
# Configure the client
config = {
'hosts': [ ('127.0.0.1', 3000) ]
}
# Create a client and connect it to the cluster
client = aerospike.client(config).connect()
It looks like Python is loading your file aerospike.py as the aerospike module instead of the Aerospike client library.
I suggest renaming your file to something other than aerospike.py and running the example again.
Also make sure that there isn’t an aerospike.pyc file that is in the directory, or a corresponding entry in the __pycache__ directory
If that doesn’t work could you try running: pip3 freeze and seeing if that contains an entry for aerospike?
Thank you for support, i will do when next time return to that issue.
Upto moment all works great, 10times less load if compare with cassandra. Only problem we have - no easy way do insert/no odbc driver, but we can live with that.