日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Hbase二级索引 Solr 异常 The most likely cause is another Solr server (or another solr core in this server)

發(fā)布時間:2024/8/23 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Hbase二级索引 Solr 异常 The most likely cause is another Solr server (or another solr core in this server) 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

solr查詢數(shù)據(jù)時候報錯,去服務器查看該節(jié)點日志?

{"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

說明某一個分片數(shù)據(jù)無法查詢,增大副本數(shù),可以保證集群高可用;

如果副本為1的話,該分片掛掉,則無法提供服務;副本為2的話,未掛掉的副本將提供服務

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

服務異常退出,去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é)點,解決?

?

總結

以上是生活随笔為你收集整理的Hbase二级索引 Solr 异常 The most likely cause is another Solr server (or another solr core in this server)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。