Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Verifying and dropping keyspaces for logger tables on Cassandra Cluster

Solved430 views25th April 2025CassandraCluster keyspaces logger table
1
Jan-Klaas Kesteloot [SLC] [DevOps Advocate]1.13K 13th November 2024 0 Comments

On a DMS with Cassandra cluster, I want to keep my database lean & healthy.

When downgrading to a connector version without logger tables, how can I check if the keyspace  for these logger tables (sldmadb_elementdata_<dmaid>_<eid>_<tableid>) in Cassandra still exist?

Next, how can I drop that data and these keyspaces?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 25th April 2025

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Dieter Degrande [SLC] [DevOps Advocate]417 Posted 13th November 2024 0 Comments

Hi Jan-Klaas,

Depending on what you wish to remove you have a few options, dropping the keyspace, dropping the table or truncating the table. Everything but truncating the table can be done through DevCenter. If you want to use raw queries however please see below on how to gather information and which queries you can execute. If connecting with DevCenter the keyspaces and tables are shown in the user interface.

If you just want to check if the tables and keyspaces exist, you can query the system_schema keyspaces table with the following query:
select keyspace_name from system_schema.keyspaces;

If you want to know the tables in that keyspace, normally there is only 1 in the format of elementdata_<dmaid>_<eid>_<tableid> and verify if a table exists in that keyspace:

select table_name from system_schema.tables where keyspace_name = '<keyspace_name>';

If you want to drop the entire keyspace you can use the drop keyspace query as documented here, this will drop the entire keyspace with all it's tables and data:
https://docs.datastax.com/en/cql-oss/3.3/cql/cql_reference/cqlDropKeyspace.html

If you want to drop a table, you can use the drop table query as documented here, this will drop the table but keep the keyspace:

https://docs.datastax.com/en/cql-oss/3.3/cql/cql_reference/cqlDropTable.html

If you want to keep the table and keyspace but just want to all remove data, you can use the truncate table query as documented here:

https://docs.datastax.com/en/cql-oss/3.x/cql/cql_reference/cqlTruncate.html

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 25th April 2025
You are viewing 1 out of 2 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin