[Apache Solr] Apache solr 8.5.0 ์ค์นํ๊ธฐ
ranger, atlas๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํด ์ ์ค์นํด์ผํ๋ ์คํ์์ค์ด๋ค.
https://archive.apache.org/dist/lucene/solr/8.5.0/
ํด๋น ์ฌ์ดํธ์์ 8.5.0๋ฒ์ ์ ๋ค์ด ๋ฐ๋๋ค.
wget https://archive.apache.org/dist/lucene/solr/8.5.0/solr-8.5.0.tgz
tar xvzf solr-8.5.0.tgz
cd bin/
./solr start -p 6083
netstat -nltp | grep 6083
์ผ๋ก ์๋น์ค ์คํ๋๋๊ฒ์ ํ์ธํ ์ ์๋ค.
http://localhost:6083/solr/
ranger์์ solr๋ฅผ ํด๋ผ์ฐ๋ ๋ชจ๋๋ก ์คํํด์ผํ๋ค.
---zookeeper zoo.cfg ์์ -------
tickTime=2000
dataDir=/var/lib/zookeeper
clientPort=2181
4lw.commands.whitelist=mntr,conf,ruok
initLimit=5
syncLimit=2
server.1=zoo1:2888:3888
server.2=zoo2:2888:3888
server.3=zoo3:2888:3888
autopurge.snapRetainCount=3
autopurge.purgeInterval=1
-----zookeeper-env.sh ์์ ------
ZOO_LOG_DIR="/path/for/log/files"
ZOO_LOG4J_PROP="INFO,ROLLINGFILE"
SERVER_JVMFLAGS="-Xms2048m -Xmx2048m -verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime -Xloggc:$ZOO_LOG_DIR/zookeeper_gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=9 -XX:GCLogFileSize=20M"
๊ฐ ์๋ฒ ๋ณ๋ก zkServer.sh start ์คํ
solr ํด๋ผ์ฐ๋ ๋ชจ๋๋ก ์คํ
bin/solr start -e cloud -z zk1:2181,zk2:2181,zk3:2181/solr