Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プロジェクトで cassandra を使用していますが、配布されていません。junit テストを書いています。すべてのテストが終了したらデータベースをクリアしたいのですが、行キーを削除できませんか? カサンドラのロウキーを削除する方法を教えてください。
列ファミリーからすべてのデータを消去するには、truncate を使用する必要があります。これは cassandra-cli から実行できます。
[default@unknown] use ks; Authenticated to keyspace: ks [default@ks] truncate cf;