Bigdata, Hadoop ecosystem, Semantic IoT등의 프로젝트를 진행중에 습득한 내용을 정리하는 곳입니다.
필요한 분을 위해서 공개하고 있습니다.
문의사항은 gooper@gooper.com로 메일을
보내주세요.
bin/solr stop으로 모든 solr데몬을 내리고 아래의 명령으로 write.lock파일을 모두 삭제하고 bin/solr start로 재기동해준다.
여기서 core_node4부분의 숫자를 변경하여 모든 node값에 있는 write.lock파일을 삭제하여 준다.
(write.lock파일 삭제명령 : hdfs dfs -rm hdfs://mycluster/user/root/solr/gc/core_node4/data/index/write.lock)
----------------오류내용--------------------
ERROR: Failed to create collection 'gc' due to: {XXX.XXX.XXX.XXX:8983_solr=org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error from server at http://XXX.XXX.XXX.XXX:8983/solr: Error CREATEing SolrCore 'gc_shard3_replica2': Unable to create core [gc_shard3_replica2] Caused by: Index dir 'hdfs://gsda1:9000/user/root/solr/gc/core_node9/data/index/' of core 'gc_shard3_replica2' 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: hdfs}
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
4 | shard3가 있는 서버에 문제가 있는 상태에서 solr query를 요청하는 경우 "no servers hosting shard: shard3" 오류가 발생하는 경우 조치사항 | 총관리자 | 2018.01.04 | 174 |
3 | elasticsearch에서 모든 인덱스(색인)을 삭제하는 방법 | 총관리자 | 2019.06.09 | 97 |
2 | collection생성혹은 collection조회시 Plugin init failure for [schema.xml] fieldType "pdate": Error loading class 'solr.IntField' 오류 조치사항 | 총관리자 | 2022.04.07 | 107 |
1 | [Solr in Cloudera]Solr Data Directory변경 방법/절차 | gooper | 2023.04.21 | 23 |