我正在使用 cassandra 驱动程序在 nodejs 中使用 helenus 开发一个应用程序。helenus的版本是0.6.10。
这是app.js。
var helenus = require('helenus');
var pool = new helenus.ConnectionPool({
hosts: ['localhost:9160'],
keyspace: 'test_dev',
user: '',
password: ''
});
pool.connect(function(err, keyspace) {
if (err) throw err;
console.log('Listening on port 3000....');
});
pool.on('error', function(err) {
if (err) throw err;
});
当我们调用pool.connect时,它会在回调中引发以下错误。
错误名称:“HelenusNoAvailableNodesException”
错误消息:“无法连接到任何节点”
当我完成故障排除后。我发现 Connection.prototype.use 方法中的 onDescribe 方法正在引发错误,即"NotFoundException"。
我做错了什么?任何帮助。