querying cqlsh using python cassandra-driver error assandra.cluster.NoHostAvailable
up vote
-1
down vote
favorite
trying to select from cassandra which is on awc ec2 using cassandra-driver using below.
from cassandra.cluster import Cluster
cluster = Cluster(['ip'])
session = cluster.connect('keyspace')
CQLString = "select * from table limit 1;"
for row in session.execute(CQLString)
print row
i get the error
File "cassandra/cluster.py", line 2816, in cassandra.cluster.ControlConnection._reconnect_internal
cassandra.cluster.NoHostAvailable: ('Unable to connect to any servers
Do i need to provide .pem file if so how to do that.
DSE 4.8.4 | CQL spec 3.2.1
python-2.7 cassandra
add a comment |
up vote
-1
down vote
favorite
trying to select from cassandra which is on awc ec2 using cassandra-driver using below.
from cassandra.cluster import Cluster
cluster = Cluster(['ip'])
session = cluster.connect('keyspace')
CQLString = "select * from table limit 1;"
for row in session.execute(CQLString)
print row
i get the error
File "cassandra/cluster.py", line 2816, in cassandra.cluster.ControlConnection._reconnect_internal
cassandra.cluster.NoHostAvailable: ('Unable to connect to any servers
Do i need to provide .pem file if so how to do that.
DSE 4.8.4 | CQL spec 3.2.1
python-2.7 cassandra
1
check that your servers are available from place where your client runs, if servers are using SSL, then yes - add corresponding settings, etc.
– Alex Ott
Nov 10 at 13:01
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
trying to select from cassandra which is on awc ec2 using cassandra-driver using below.
from cassandra.cluster import Cluster
cluster = Cluster(['ip'])
session = cluster.connect('keyspace')
CQLString = "select * from table limit 1;"
for row in session.execute(CQLString)
print row
i get the error
File "cassandra/cluster.py", line 2816, in cassandra.cluster.ControlConnection._reconnect_internal
cassandra.cluster.NoHostAvailable: ('Unable to connect to any servers
Do i need to provide .pem file if so how to do that.
DSE 4.8.4 | CQL spec 3.2.1
python-2.7 cassandra
trying to select from cassandra which is on awc ec2 using cassandra-driver using below.
from cassandra.cluster import Cluster
cluster = Cluster(['ip'])
session = cluster.connect('keyspace')
CQLString = "select * from table limit 1;"
for row in session.execute(CQLString)
print row
i get the error
File "cassandra/cluster.py", line 2816, in cassandra.cluster.ControlConnection._reconnect_internal
cassandra.cluster.NoHostAvailable: ('Unable to connect to any servers
Do i need to provide .pem file if so how to do that.
DSE 4.8.4 | CQL spec 3.2.1
python-2.7 cassandra
python-2.7 cassandra
asked Nov 9 at 20:43
cad
808
808
1
check that your servers are available from place where your client runs, if servers are using SSL, then yes - add corresponding settings, etc.
– Alex Ott
Nov 10 at 13:01
add a comment |
1
check that your servers are available from place where your client runs, if servers are using SSL, then yes - add corresponding settings, etc.
– Alex Ott
Nov 10 at 13:01
1
1
check that your servers are available from place where your client runs, if servers are using SSL, then yes - add corresponding settings, etc.
– Alex Ott
Nov 10 at 13:01
check that your servers are available from place where your client runs, if servers are using SSL, then yes - add corresponding settings, etc.
– Alex Ott
Nov 10 at 13:01
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53233013%2fquerying-cqlsh-using-python-cassandra-driver-error-assandra-cluster-nohostavaila%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
check that your servers are available from place where your client runs, if servers are using SSL, then yes - add corresponding settings, etc.
– Alex Ott
Nov 10 at 13:01