Cloudera CDH/CDP 및 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 | failed to read local state, exiting...오류발생시 조치사항 | 2016.04.06 | 2831 |
3 | Core with name 'xx_shard4_replica1' already exists. 발생시 조치사항 | 2017.07.22 | 2667 |
2 | collection생성시 -shards와 -replicationFactor값을 잘못지정하면 write.lock for client xxx.xxx.xxx.xxx already exists오류가 발생한다. | 2016.04.28 | 2526 |
1 | shard3가 있는 서버에 문제가 있는 상태에서 solr query를 요청하는 경우 "no servers hosting shard: shard3" 오류가 발생하는 경우 조치사항 | 2018.01.04 | 2436 |