Bigdata, Hadoop ecosystem, Semantic IoT등의 프로젝트를 진행중에 습득한 내용을 정리하는 곳입니다.
필요한 분을 위해서 공개하고 있습니다.
문의사항은 gooper@gooper.com로 메일을
보내주세요.
1. 다운로드
http://mirror.apache-kr.org/lucene/solr/5.5.0/
2. 압축풀기
tar xvfz solr-5.5.0.tgz
3. 링크생성
ln -s solr-5.5.0 solr
4. HdfsDirectoryFactory를 추가하여 data를 hdfs에 저장하도록 수정함
==> vi bin/solor.in.sh
-Dsolr.directoryFactory=HdfsDirectoryFactory
-Dsolr.lock.type=hdfs
-Dsolr.hdfs.home=hdfs://mycluster/solr
5. solrconfig.xml파일을 수정함
<directoryFactory name="DirectoryFactory" class="solr.HdfsDirectoryFactory">
<str name="solr.hdfs.home">hdfs://host:port/solr</str>
<bool name="solr.hdfs.blockcache.enabled">true</bool>
<int name="solr.hdfs.blockcache.slab.count">1</int>
<bool name="solr.hdfs.blockcache.direct.memory.allocation">true</bool>
<int name="solr.hdfs.blockcache.blocksperbank">16384</int>
<bool name="solr.hdfs.blockcache.read.enabled">true</bool>
<bool name="solr.hdfs.nrtcachingdirectory.enable">true</bool>
<int name="solr.hdfs.nrtcachingdirectory.maxmergesizemb">16</int>
<int name="solr.hdfs.nrtcachingdirectory.maxcachedmb">192</int>
</directoryFactory>
* 서버 기동확인 : http://sda1:8983/
댓글 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 |