Hbase二级索引 Solr 异常 The most likely cause is another Solr server (or another solr core in this server)
生活随笔
收集整理的這篇文章主要介紹了
Hbase二级索引 Solr 异常 The most likely cause is another Solr server (or another solr core in this server)
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
solr查詢數(shù)據(jù)時(shí)候報(bào)錯(cuò),去服務(wù)器查看該節(jié)點(diǎn)日志?
{"responseHeader":{"status":503,"QTime":3,"params":{"q":"*:*","_":"1576753724528"}},"error":{"metadata":["error-class","org.apache.solr.common.SolrException","root-error-class","org.apache.solr.common.SolrException"],"msg":"no servers hosting shard: shard29","code":503}}?no servers hosting shard: shard29
說(shuō)明某一個(gè)分片數(shù)據(jù)無(wú)法查詢,增大副本數(shù),可以保證集群高可用;
如果副本為1的話,該分片掛掉,則無(wú)法提供服務(wù);副本為2的話,未掛掉的副本將提供服務(wù)
Solr 日志如下?
Caused by: org.apache.solr.common.SolrException: Index dir 'hdfs://nameservice1/solr/_user_index_prd/core_node19/data/index/' of core '_user_index_prd_shard19_replica_n1' is already locked. The most likely cause is another Solr server (or another solr core in this server) also configured to use this directory; other possible causes may be specific to lockType: hdfsat org.apache.solr.core.SolrCore.<init>(SolrCore.java:1002)at org.apache.solr.core.SolrCore.<init>(SolrCore.java:846)at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1011)at org.apache.solr.core.CoreContainer.lambda$load$11(CoreContainer.java:622)at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:197)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:188)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)... 1 more Caused by: org.apache.lucene.store.LockObtainFailedException: Index dir 'hdfs://nameservice1/solr/_user_index_prd/core_node19/data/index/' of core '_user_index_prd_shard19_replica_n1' is already locked. The most likely cause is another Solr server (or another solr core in this server) also configured to use this directory; other possible causes may be specific to lockType: hdfsat org.apache.solr.core.SolrCore.initIndex(SolrCore.java:728)at org.apache.solr.core.SolrCore.<init>(SolrCore.java:948)... 9 more服務(wù)異常退出,去hdfs文件系統(tǒng)刪除文件鎖?write.lock
hive> dfs -ls hdfs://nameservice1/solr/_user_index/core_node7/data/index/*.lock; -rw-r--r-- 2 solr solr 0 2019-12-17 14:52 hdfs://nameservice1/solr/_user_index/core_node7/data/index/write.lock hive> dfs -rm hdfs://nameservice1/solr/_user_index/core_node7/data/index/*.lock;刪除完成后重啟該節(jié)點(diǎn),解決?
?
總結(jié)
以上是生活随笔為你收集整理的Hbase二级索引 Solr 异常 The most likely cause is another Solr server (or another solr core in this server)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: cuda的global memory介绍
- 下一篇: error C1128:字节数超过对象文