메뉴 건너뛰기

Bigdata, Semantic IoT, Hadoop, NoSQL

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}

A personal place to organize information learned during the development of such Hadoop, Hive, Hbase, Semantic IoT, etc.
We are open to the required minutes. Please send inquiries to gooper@gooper.com.

위로