添加自定义Cql3SolrSecondaryIndex后,无法使用Stargate进行查询

swvgeqrz  于 2022-11-05  发布在  Solr
关注(0)|答案(2)|浏览(124)

我有stargate 1.0.38在我的开发服务器上运行的很好。我可以使用stargate rest api来获得auth_token并运行插入,选择查询。
昨天,我在我的Cassandra DSE 6.8中为一个表创建了一个索引Cql 3SolrSecondaryIndex。然后我在stargate日志中看到了bellow错误。之后,我删除了该索引。但即使删除了该索引,我仍然在stargate日志中看到bellow错误。我也尝试停止/启动stargate,但仍然看到相同的错误。

ERROR [MigrationStage:1] 2021-10-15 00:47:13,593 PullRequestScheduler.java:245 - Configuration exception merging remote schema
org.apache.cassandra.exceptions.ConfigurationException: Unable to find custom indexer class 'com.datastax.bdp.search.solr.Cql3SolrSecondaryIndex'
        at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:493)
        at org.apache.cassandra.schema.IndexMetadata.getCustomIndexClass(IndexMetadata.java:190)
        at org.apache.cassandra.schema.IndexMetadata.validate(IndexMetadata.java:131)
        at org.apache.cassandra.schema.Indexes.lambda$validate$2(Indexes.java:168)
        at java.lang.Iterable.forEach(Iterable.java:75)
        at org.apache.cassandra.schema.Indexes.validate(Indexes.java:168)
        at org.apache.cassandra.schema.TableMetadata.validate(TableMetadata.java:512)
        at java.lang.Iterable.forEach(Iterable.java:75)
        at org.apache.cassandra.schema.KeyspaceMetadata.validate(KeyspaceMetadata.java:112)
        at org.apache.cassandra.schema.KeyspaceMetadata.<init>(KeyspaceMetadata.java:85)
        at org.apache.cassandra.schema.KeyspaceMetadata.create(KeyspaceMetadata.java:167)
        at org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:1154)
        at org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspaces(SchemaKeyspace.java:1769)
        at org.apache.cassandra.schema.SchemaManager.merge(SchemaManager.java:893)
        at org.apache.cassandra.schema.SchemaManager.mergeAndAnnounceVersion(SchemaManager.java:877)
        at org.apache.cassandra.schema.PullRequestScheduler.lambda$sendPullRequest$2(PullRequestScheduler.java:240)
        at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)
        at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)
        at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:456)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.cassandra.concurrent.NamedThreadFactory.lambda$threadLocalDeallocator$0(NamedThreadFactory.java:88)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.lang.Thread.run(Thread.java:748)
        at org.apache.cassandra.utils.concurrent.InlinedThreadLocalThread.run(InlinedThreadLocalThread.java:251)
Caused by: java.lang.ClassNotFoundException: com.datastax.bdp.search.solr.Cql3SolrSecondaryIndex not found by io.stargate.db.dse [1]
        at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1597)
        at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
        at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1982)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:489)
        ... 24 common frames omitted

由于此错误,我仍然能够获取auth_token,但所有选择查询都出现此错误

{
    "description": "Resource not found: keyspace 'test' not found",
    "code": 404
}

请帮助我解决此问题。

gwbalxhn

gwbalxhn1#

Stargate目前不支持高级工作负载,如Search和Graph。我认为您可能必须删除并重新创建没有Solr索引的键空间,以便它再次工作,因为模式仍然存在于其他节点上。
此问题已记录在here中。也已请求支持Solr here

mum43rcc

mum43rcc2#

@大卫,我能够删除DSE搜索索引,滚动重启我的DSE节点,然后是Stargate节点,它启动得很好,没有任何错误。我确保我之前的所有数据都很好,并且能够使用Stargate REST、GraphQL和Document API验证运行基本CRUD操作,没有任何问题。

相关问题