我正在用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使用什麼版本? –