Note that there are some explanatory texts on larger screens.

plurals
  1. PONodejs Cassandra Client [node-cassandra-client]
    primarykey
    data
    text
    <p>I tried connecting to my cassandra cluster [version 1.0.6] via nodejs using <a href="https://github.com/racker/node-cassandra-client" rel="nofollow">node-cassandra-client</a></p> <p>This is my sample script</p> <pre><code>var Connection = require('cassandra-client').Connection; var con = new Connection({host:'x.x.x.x', port:9160, keyspace:'Stats', timeout:10000}); console.log(con); con.execute('UPDATE TestCF ?=? WHERE key=?', ['cola', '1', '20120132'], function(err) { if (err) { console.log("Failed"); } else { console.log("success"); } }); </code></pre> <p>On executing the script</p> <pre><code> The "sys" module is now called "util". It should have a similar interface. node-cassandra-client.driver: connecting x.x.x.x:9160 {} { validators: {}, client: null, connectionInfo: { host: 'x.x.x.x', port: 9160, keyspace: 'Stats', timeout: 10000 }, timeout: 10000 } node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Cannot call method 'execute_cql_query' of null at [object Object].execute (/home/tamil/workspace/TestProjects/node-cass/node_modules/cassandra-client/lib/driver.js:367:17) at Object.&lt;anonymous&gt; (/home/tamil/workspace/TestProjects/node-cass/index.js:5:5) at Module._compile (module.js:432:26) at Object..js (module.js:450:10) at Module.load (module.js:351:31) at Function._load (module.js:310:12) at Array.0 (module.js:470:10) at EventEmitter._tickCallback (node.js:192:40) </code></pre> <p>My nodetool stats</p> <pre><code>Address DC Rack Status State Load Owns Token x.x.x.x datacenter1 rack1 Up Normal 1.03 MB 100.00% 0 </code></pre> <p>What would be the error reason? and Need some help to fix this</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload