I'm new to pycassa, so this question maybe a bit silly. I have a problem when making connectionPool. It works with "localhost" and 127.0.0.1 but doesn't work with other IP address.
>>> pool = ConnectionPool('keySpace_s1', ['localhost:9160']) # it works fine
>>> pool = ConnectionPool('keySpace_s1', ['127.0.0.1:9160']) # it works fine too
>>> pool = ConnectionPool('keySpace_s1', ['10.1.2.13:9160']) #this is the IP for the same machine, didn't work
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/pycassa-1.7.2-py2.4.egg/pycassa/pool.py", line 361, in __init__
self.fill()
File "/usr/lib/python2.4/site-packages/pycassa-1.7.2-py2.4.egg/pycassa/pool.py", line 422, in fill
conn = self._create_connection()
File "/usr/lib/python2.4/site-packages/pycassa-1.7.2-py2.4.egg/pycassa/pool.py", line 408, in _create_connection
raise AllServersUnavailable('An attempt was made to connect to each of the servers ' +
pycassa.pool.AllServersUnavailable: An attempt was made to connect to each of the servers twice, but none of the attempts succeeded. The last failure was TTransportException: Could not connect to 10.1.2.13:9160