Skip to content

Instantly share code, notes, and snippets.

@aboudreault
Created September 16, 2015 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aboudreault/5dba626b25f1b85c09c9 to your computer and use it in GitHub Desktop.
Save aboudreault/5dba626b25f1b85c09c9 to your computer and use it in GitHub Desktop.
[172.17.0.17] out: INFO:cstar_perf.model:Initializing Model...
[172.17.0.17] out: ERROR:cassandra.connection:Closing connection <AsyncoreConnection(140434400511248) 127.0.0.1:9042> due to protocol error: code=000a [Protocol err
or] message="Invalid or unsupported protocol version: 4"
[172.17.0.17] out: WARNING:cassandra.cluster:Downgrading core protocol version from 4 to 3 for 127.0.0.1
[172.17.0.17] out: INFO:cstar_perf.model:Model initialized
[172.17.0.17] out: Traceback (most recent call last):
[172.17.0.17] out: File "pyscript.py", line 4, in <module>
[172.17.0.17] out: db.add_cluster('test_cluster', 22, 'test_cluster')
[172.17.0.17] out: File "/home/cstar/git/cstar_perf/frontend/cstar_perf/frontend/server/model.py", line 368, in add_cluster
[172.17.0.17] out: session.execute(self.__prepared_statements['insert_clusters'], (name, nodes, description))
[172.17.0.17] out: File "cassandra/cluster.py", line 1600, in cassandra.cluster.Session.execute (cassandra/cluster.c:27298)
[172.17.0.17] out: File "cassandra/cluster.py", line 1660, in cassandra.cluster.Session.execute_async (cassandra/cluster.c:27981)
[172.17.0.17] out: File "cassandra/cluster.py", line 1673, in cassandra.cluster.Session._create_response_future (cassandra/cluster.c:28315)
[172.17.0.17] out: File "cassandra/query.py", line 423, in cassandra.query.PreparedStatement.bind (cassandra/query.c:5900)
[172.17.0.17] out: File "cassandra/query.py", line 549, in cassandra.query.BoundStatement.bind (cassandra/query.c:7750)
[172.17.0.17] out: TypeError: Received an argument of invalid type for column "nodes". Expected: <class 'cassandra.io.asyncorereactor.ListType(VarcharType)'>, Got:
<type 'int'>; (object of type 'int' has no len())
[172.17.0.17] out:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment