메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

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}

위로