昨晚我通过Solr管理员控制台(我选择了“Full Reindex”)为我们的Cassandra集群启动了完整的重新索引。群集中的每个节点也运行Solr。
从大约2小时前开始,似乎它已经完成,因为每个节点的Web控制台除索引线外都有“否”,但是我想查看日志并验证它是否已成功完成每个节点,因为每个节点的Web控制台都有一个红色圆圈,在“当前”旁边有一条直线。
过去我见过这个,后来又改为绿色复选标记,但我想如果我知道在日志中要查找什么,那么这将是一个更方便,更可靠的方法来确定是否reindex确实成功完成了。
答案 0 :(得分:0)
我可能错了,但是自从Solr重新索引directly wired up to Cassandra secondary index rebuiding后,我的猜测是如果Cassandra完成索引重建,那么Solr也很好。
答案 1 :(得分:0)
您可以使用: curl -v“http://127.0.0.1:8983/solr/admin/cores?action=STATUS&name=demo.solr
返回的xml中应该有一个“索引”标记
你走在正确的轨道上。 Web管理控制台可能是您检查索引是否完整的最简单方法。 一旦您的索引完成并且您没有对表格进行任何写入,索引将表示否,当前将具有复选标记而不是红色圆圈。 Current表示索引中是否有known changes尚未软提交(请记住solrconfig.xml中设置的自动提交阈值)。因此有可能你的完全重新索引已经完成,但是你仍然在索引新数据.DSE搜索,是 - 本质上 - 总是基于C *写入索引。
另一种可以进行快速健全性检查的方法是在查询面板中为您的核心执行一个大开的*:*查询并查看numFound。您必须知道您的桌子中有多少条记录。
这有点涉及但是这里是您执行完整重新索引时在system.out日志中看到的内容的摘要。如果您想检查日志以确认,您可以。在这种情况下,DSP1375Test.index是我的核心名称:
重新加载文件(架构/配置):
INFO [http-8983-exec-2] 2015-03-18 08:59:28,725 SolrCoreResourceManager.java (line 382) Reloading core: DSP1375Test.index
INFO [http-8983-exec-2] 2015-03-18 08:59:28,727 SolrCoreResourceManager.java (line 532) Trying to load resource solrconfig.xml for core DSP1375Test.index by querying from local node with CL QUORUM
INFO [http-8983-exec-2] 2015-03-18 08:59:28,734 SolrCoreResourceManager.java (line 542) Successfully loaded resource solrconfig.xml for core DSP1375Test.index by querying from local node.
INFO [http-8983-exec-2] 2015-03-18 08:59:28,946 SolrCoreResourceManager.java (line 532) Trying to load resource schema.xml.bak for core DSP1375Test.index by querying from local node with CL QUORUM
INFO [http-8983-exec-2] 2015-03-18 08:59:28,951 SolrCoreResourceManager.java (line 542) Successfully loaded resource schema.xml.bak for core DSP1375Test.index by querying from local node.
INFO [http-8983-exec-2] 2015-03-18 08:59:29,003 SolrCoreResourceManager.java (line 532) Trying to load resource schema.xml for core DSP1375Test.index by querying from local node with CL QUORUM
INFO [http-8983-exec-2] 2015-03-18 08:59:29,009 SolrCoreResourceManager.java (line 542) Successfully loaded resource schema.xml for core DSP1375Test.index by querying from local node.
INFO [http-8983-exec-2] 2015-03-18 08:59:29,468 CoreContainer.java (line 472) replacing core: DSP1375Test.index
INFO [http-8983-exec-2] 2015-03-18 08:59:29,469 SolrCoreResourceManager.java (line 532) Trying to load resource dse-search.properties for core DSP1375Test.index by querying from local node with CL QUORUM
INFO [http-8983-exec-2] 2015-03-18 08:59:29,474 SolrCoreResourceManager.java (line 548) No resource dse-search.properties found for core DSP1375Test.index by querying from local node.
INFO [http-8983-exec-2] 2015-03-18 08:59:29,474 SolrCoreResourceManager.java (line 558) Trying to load resource dse-search.properties for core DSP1375Test.index by looking for legacy resources...
INFO [http-8983-exec-2] 2015-03-18 08:59:29,474 SolrCoreResourceManager.java (line 580) No resource dse-search.properties found for core DSP1375Test.index on any live node.
INFO [http-8983-exec-2] 2015-03-18 08:59:29,474 DSESearchProperties.java (line 79) Using default DSE search properties for Solr core DSP1375Test.index
INFO [http-8983-exec-2] 2015-03-18 08:59:29,474 DSESearchProperties.java (line 104) Refreshed DSE search properties for: DSP1375Test.index
INFO [http-8983-exec-2] 2015-03-18 08:59:29,477 SolrCoreResourceManager.java (line 532) Trying to load resource solrconfig.xml for core DSP1375Test.index by querying from local node with CL QUORUM
INFO [http-8983-exec-2] 2015-03-18 08:59:29,483 SolrCoreResourceManager.java (line 542) Successfully loaded resource solrconfig.xml for core DSP1375Test.index by querying from local node.
INFO [http-8983-exec-2] 2015-03-18 08:59:29,495 SolrCoreResourceManager.java (line 666) Wrote resource 'solrconfig.xml.bak' for core 'DSP1375Test.index'
INFO [http-8983-exec-2] 2015-03-18 08:59:29,495 SolrCoreResourceManager.java (line 532) Trying to load resource schema.xml for core DSP1375Test.index by querying from local node with CL QUORUM
INFO [http-8983-exec-2] 2015-03-18 08:59:29,498 SolrCoreResourceManager.java (line 542) Successfully loaded resource schema.xml for core DSP1375Test.index by querying from local node.
INFO [http-8983-exec-2] 2015-03-18 08:59:29,503 SolrCoreResourceManager.java (line 666) Wrote resource 'schema.xml.bak' for core 'DSP1375Test.index'
开始重新索引:
INFO [SolrSecondaryIndex DSP1375Test.index index reloader.] 2015-03-18 08:59:29,508 AbstractSolrSecondaryIndex.java (line 1390) Reindexing on keyspace DSP1375Test and column family index
INFO [SolrSecondaryIndex DSP1375Test.index index reloader.] 2015-03-18 08:59:29,508 AbstractSolrSecondaryIndex.java (line 1390) Reindexing on keyspace DSP1375Test and column family index
INFO [SolrSecondaryIndex DSP1375Test.index index reloader.] 2015-03-18 08:59:29,523 SecondaryIndex.java (line 190) Submitting index build of DSP1375Test.index for data in
INFO [SolrSecondaryIndex DSP1375Test.index index reloader.] 2015-03-18 08:59:29,528 AbstractSolrSecondaryIndex.java (line 1006) Executing hard commit on index DSP1375Test.index
构建索引完成:
INFO [SolrSecondaryIndex DSP1375Test.index index reloader.] 2015-03-18 08:59:29,530 SecondaryIndex.java (line 208) Index build of DSP1375Test.index complete
INFO [http-8983-exec-3] 2015-03-18 08:59:29,765 SolrDispatchFilter.java (line 672) [admin] webapp=null path=/admin/cores params={slave=true&deleteAll=true&name=DSP1375Test.index&distributed=false&action=RELOAD&reindex=true&core=DSP1375Test.index&wt=javabin&version=2} status=0 QTime=0
INFO [http-8983-exec-2] 2015-03-18 08:59:29,782 SolrDispatchFilter.java (line 672) [admin] webapp=null path=/admin/cores params={deleteAll=true&action=RELOAD&reindex=true&_=1426683568718&core=DSP1375Test.index&wt=json} status=0 QTime=1058