Skip to content

AxonOps — AI-Native Control Plane for Open Source Data Platforms

nodetool datapaths

Cassandra 4.1+

This command is available in Cassandra 4.1 and later.

Displays the data file directories for the node.


Terminal window
nodetool [connection_options] datapaths [options] [--] [<keyspace.table> | <keyspace>]

See connection options for connection options.

nodetool datapaths shows the data file paths for tables on the Cassandra node. The output is organized by keyspace and table, showing where each table's SSTables are stored.

OptionDescription
-F, --format <format>Output format (json or yaml)

Terminal window
nodetool datapaths
Keyspace: my_keyspace
Table: users
/var/lib/cassandra/data/my_keyspace/users-abc123
Table: orders
/var/lib/cassandra/data/my_keyspace/orders-def456
Keyspace: system
Table: local
/var/lib/cassandra/data/system/local-xyz789
...
Terminal window
# Show paths for specific table
nodetool datapaths my_keyspace.users
# Show paths for all tables in a keyspace
nodetool datapaths my_keyspace

Data paths are configured in cassandra.yaml:

cassandra.yaml
data_file_directories:
- /var/lib/cassandra/data
# Or multiple directories:
data_file_directories:
- /mnt/disk1/cassandra/data
- /mnt/disk2/cassandra/data

Terminal window
# Confirm data directory paths
nodetool datapaths
Terminal window
# Check disk space on data directories using tablestats
nodetool tablestats my_keyspace | grep "Space used"
Terminal window
# Get paths in JSON format for scripting
nodetool datapaths -F json my_keyspace

Data Path Guidelines

  1. Dedicated disks - Use separate disks for data
  2. Monitor space - Track disk usage per path
  3. Fast storage - SSDs recommended for data paths
  4. JBOD configuration - Multiple paths for JBOD setups

CommandRelationship
infoNode information including paths
tablestatsTable disk usage
statusCluster overview