Cannot connect to cassandra through pycharm python console, but can connect via python in a terminal -


i trying connect cassandra 2.1.5 using latest python driver. works charm if run python on terminal, or if run python code pycharm.

from cassandra.cluster import cluster; k = cluster(); k.connect('mykeyspace'); 

however, if try python console inside pycharm (or if use debug mode , step through code), last line:

k.connect('mykeyspace'); 

throws me operation timedout error:

traceback (most recent call last):   file "<input>", line 1, in <module>   file "/home/rajee/workspace/bemoss_os/env/local/lib/python2.7/site-packages/cassandra/cluster.py", line 755, in connect     self.control_connection.connect()   file "/home/rajee/workspace/bemoss_os/env/local/lib/python2.7/site-packages/cassandra/cluster.py", line 1868, in connect     self._set_new_connection(self._reconnect_internal())   file "/home/rajee/workspace/bemoss_os/env/local/lib/python2.7/site-packages/cassandra/cluster.py", line 1903, in _reconnect_internal     raise nohostavailable("unable connect servers", errors) nohostavailable: ('unable connect servers', {'127.0.0.1': operationtimedout('errors=none, last_host=none',)}) 

so, why can't connect cassandra server via python-console (and debugger?). looks got ports, don't know how debugger , console works. repeat, can connect server via python ran in terminal.

any solutions?

further infos: python console run follows: enter image description here

the python debugger run follows: enter image description here

thank you.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -