nodetool reloadtriggers
Reloads trigger classes.
Synopsis
Section titled “Synopsis”nodetool [connection_options] reloadtriggersSee connection options for connection options.
Description
Section titled “Description”nodetool reloadtriggers reloads custom trigger classes from the triggers directory without requiring a node restart. Triggers are custom code that executes on mutations.
Examples
Section titled “Examples”Basic Usage
Section titled “Basic Usage”nodetool reloadtriggersWhen to Use
Section titled “When to Use”After Updating Trigger JARs
Section titled “After Updating Trigger JARs”# 1. Copy new trigger JAR to triggers directorycp my_trigger.jar /etc/cassandra/triggers/
# 2. Reload triggersnodetool reloadtriggersAfter Removing Triggers
Section titled “After Removing Triggers”# 1. Remove trigger JARrm /etc/cassandra/triggers/old_trigger.jar
# 2. Reloadnodetool reloadtriggersTrigger Directory
Section titled “Trigger Directory”Default location:
/etc/cassandra/triggers/Or configured in cassandra.yaml.
Best Practices
Section titled “Best Practices”Guidelines
- Test triggers - Test in non-production first
- Cluster-wide - Update and reload on all nodes
- Version control - Track trigger code changes
Related Commands
Section titled “Related Commands”| Command | Relationship |
|---|---|
| reloadlocalschema | Reload schema |
| reloadssl | Reload SSL certificates |