ConfigurationException: Unable to find custom indexer class 'StorageAttachedIndex'

Viewed 37

I am having this error while trying to create a new custom index. Is because of my cassandra setup? What can be done to solve this issue?

cqlsh:dblpa2> create CUSTOM INDEX ON publication(entries(authors)) USING 'StorageAttachedIndex';
ConfigurationException: Unable to find custom indexer class 'StorageAttachedIndex'

cqlsh 6.0.0 | Cassandra 4.0.6 | CQL spec 3.4.5 | Native protocol v5

I am using Linux Mint 21 Cinnamon.

2 Answers

It's because it's not yet implemented in the open source Cassandra (you can track progress in Jira, and read more in specification).

As of right now it's available only in DataStax Enterprise and DataStax Astra.

Storage-attached indexes (SAI) is a feature in DataStax Enterprise and Astra DB but it's not available in open-source Apache Cassandra yet. This is the reason you are getting the ConfigurationException -- Cassandra 4.0 does not know anything about SAI.

DataStax donated the feature to the Apache Cassandra project in 2020 (see Cassandra enhancement proposal CEP-7) which will be implemented in CASSANDRA-16052.

Related