我正在用cassandra驱动程序使用helenus在nodejs中开发应用程序。 版本的helenus是0.6.10。Helenus无法连接
这是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”。
我在做什么错了?任何帮助。
我在连接helenus时遇到同样的问题。 – ashishkumar148
什么版本的NodeJS和Cassandra使用什么版本? –