我被分配了一项任务,将我们的Titan DB从0.4.4迁移到0.5.x,并将Cassandra作为后端。我必须承认我低估了这些努力。:-)这是一个问题:
Titan 0.4.4有system_auth keyspace
而Titan 0.5.4没有AllowAllAuthorize
。我可以使用for(var i=0; i<1000; i++) {
describe('for some reason it\'s not saving 10 entries to mongodb' + i, function() {
before(function(done) {
var names = [];
for (var i = 1; i <= 100; i++) {
names.push({name: 'name' + i});
}
Booking.create(names, function(err, bookings) {
if (err) done(err);
done();
})
});
after(function(done) {
Booking.remove(function() {
done();
});
});
it('should have 10 bookings in database', function(done) {
Booking.find({}, function(err, res) {
if (err) done(err);
res.should.be.an.Array.and.have.lengthOf(100);
done();
});
});
});
}
毫无问题地登录Cassandra。只是好奇这个差异是因为Titan还是Cassandra?
提前致谢!
答案 0 :(得分:0)
system_auth
是一个Cassandra键空间,而不是Titan特有的。
在此处查看Cassandra安全文档http://docs.datastax.com/en/cassandra/2.1/cassandra/security/security_config_native_authenticate_t.html