To work with user-defined functions, we need to add a configuration option to the cassandra.yaml file. Add the following line to the end of the cassandra.yaml file if the parameter enable_user_defined_functions is not present:
enable_user_defined_functions: true
If the parameter is present, change the false value to true. The line is pretty self-explanatory. This enables user-defined functions. For the change in configuration to take effect, you will need to restart Cassandra. This is applicable to any configuration change within any configuration file.