1

我的 DEV 服务器上运行良好的 stargate 1.0.38。我可以使用 stargate rest api 来获取 auth_token 并运行插入、选择查询。

昨天,我在 Cassandra DSE 6.8 中为表创建了索引 Cql3SolrSecondaryIndex。然后我在星门日志中看到以下错误。之后,我删除了该索引。但即使删除索引后,我仍然在星门日志中看到以下错误。我也尝试停止/启动星际之门,但仍然看到相同的错误。

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
}

请帮我解决这个问题。

4

2 回答 2

1

Stargate 目前不支持搜索和图形等高级工作负载。我认为您可能必须在没有 Solr 索引的情况下删除并重新创建该键空间才能使其再次工作,因为该模式仍然存在于其他节点上。

此问题已在此处记录。这里也有支持 Solr 的请求。

于 2021-10-15T02:57:38.430 回答
0

@David,我能够删除 DSE 搜索索引,对我的 DSE 节点和 Stargate 节点执行滚动重启,它启动得很好,没有任何错误。我确保我之前的所有数据都正常存在,并且能够使用 Stargate REST、GraphQL 和文档 API 验证运行基本 CRUD 操作,而不会出现任何问题。

于 2021-10-18T15:36:14.493 回答