开发者

Cassandra Database Problem

I am using Cassandra database for large scale application. I am new to using Cassandra database. I have a database schema for a particular keyspace for which I have created columns using Cassandra Command Line Interface (CLI). Now when I copied dataset in the folder /var/lib/cassandra/data/, I was not able to access the values using the key of a particular column. I am getting message zero rows present. But the files are present. All these files are under extension, XXXX-Data.db, XXXX-Filter.db, XXXX-Index.db. Can anyone tell me how to access the columns fo开发者_JAVA技巧r existing datasets.


(a) Cassandra doesn't expect you to move its data files around out from underneath it. You'll need to restart if you do any manual surgery like that.

(b) if you didn't also copy the schema definition it will ignore data files for unknown column families.


For what you are trying to achieve it may probably be better to export and import your SSTables.

You should have a look at bin/sstable2json and bin/json2sstable.

Documentation is there (near the end of the page): Cassandra Operations

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜