메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


solr 데몬이 떠있는 동안 hadoop이 다운되고 hadoop을 재기동하여 서비스를 다시 시작하면 아래와 같은 오류가 발생할 수 있는데 이것은

hdfs://mycluster/user/root/solr/gc/core_node2/data/index/밑에 write.lock파일이 존재해서 발생하는 오류임.

이 파일을 지우고 solr데몬을 다시 기동하면 오류가 없이 정상적으로 서비스 가능하다.


확인 : hdfs dfs -ls hdfs://mycluster/user/root/solr/gc/core_node1/data/index

조치 : hdfs dfs -rm hdfs://mycluster/user/root/solr/gc/core_node1/data/index/write.lock


---------------오류내용---------------

 Caused by: org.apache.solr.common.SolrException: Index dir 'hdfs://mycluster/user/root/solr/gc/core_node2/data/index/' of core 'gc_shard1_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
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:815)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:688)
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:838)
        at org.apache.solr.core.CoreContainer.lambda$load$0(CoreContainer.java:494)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        ... 1 more
Caused by: org.apache.lucene.store.LockObtainFailedException: Index dir 'hdfs://mycluster/user/root/solr/gc/core_node2/data/index/' of core 'gc_shard1_replica2' is already locked. The most li
kely 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
        at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:570)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:762)
        ... 8 more

번호 제목 날짜 조회 수
501 [Kudu]ERROR: Unable to advance iterator for node with id '2' for Kudu table 'impala::core.pm0_abdasubjct': Network error: recv error from unknown peer: Transport endpoint is not connected (error 107) 2023.03.16 636
500 spark-shell실행시 "A read-only user or a user in a read-only database is not permitted to disable read-only mode on a connection."오류가 발생하는 경우 해결방법 2016.05.20 619
499 spark-submit 실행시 "java.lang.OutOfMemoryError: Java heap space"발생시 조치사항 2018.02.01 616
498 Job이 끝난 log을 볼수 있도록 설정하기 2016.05.30 616
497 외부 기기(usb, 하드)등 mount(연결)하기 2014.08.03 608
496 Error: Could not find or load main class nodemnager 가 발생할때 해결하는 방법 2015.06.05 605
495 spark client프로그램 기동시 "Error initializing SparkContext"오류 발생할때 조치사항 2016.05.27 602
494 db를 통째로 새로운 이름의 db로 복사하는 방법/절차 2017.11.14 598
493 hive기동시 Caused by: java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D 오류 발생시 조치사항 2016.09.25 591
492 java.util.NoSuchElementException발생시 조치 2014.08.27 582
491 HDFS 파일및 디렉토리 생성시 생성방법에 따라 권한이 다르게 부여된다. 2022.05.30 576
490 CDP에서 AD와 Kerberos를 활용하여 인증 환경을 구축하는 3가지 방법 2022.06.10 573
489 [번역] solr 검색 엔진 튜토리얼 2014.10.07 572
488 Container killed by the ApplicationMaster. Container killed on request. Exit code is 143 Container exited with a non-zero exit code 143 TaskAttempt killed because it ran on unusable node 오류시 조치방법 2017.04.06 571
487 spark-sql실행시 The specified datastore driver ("com.mysql.jdbc.Driver") was not found in the CLASSPATH오류 발생시 조치사항 2016.06.09 567
486 시스템날짜를 현재 정보로 동기화 하는 방법(rdate, ntpdate이용) 2014.08.24 567
485 Incompatible clusterIDs오류 원인및 해결방법 2016.04.01 566
484 데이타 제공 사이트 링크 2014.08.03 566
483 CDH에서 Sentry 개념및 설정 file 2018.06.21 564
482 Eclipse실행시 Java was started but returned exit code=1이라는 오류가 발생할때 조치방법 2016.11.07 563
위로