简体   繁体   中英

Cassandra: Simplest way to backup data from one machine and restore on a fresh machine

I have cassandra running on a single machine. I need to backup a particular keyspace from there and setup the same schema with all the data on my local machine.

I understand that I can run the nodetool snapshot command take the point in time snapshot of the keyspace.

But from the documentation, I could understand that it requires the schema to exist. Is there not any command which can take the backup with the schema and restore it to another machine? The data is very small, hardly a few MBs.

如果您在单台计算机上和本地计算机上都具有相同版本的Cassandra,则存在蛮力解决方案( 不在生产环境中使用 ):复制所有文件夹$ CASSANDRA_HOME / data(有时复制/ var / lib / cassandra) / data)从一台机器到另一台机器...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM