BIGDATA/ํ•˜๋‘ก์—์ฝ”์‹œ์Šคํ…œ

[Apache Solr] Apache solr 8.5.0 ์„ค์น˜ํ•˜๊ธฐ

๐Ÿฐํžˆํžˆ 2021. 8. 30. 13:32
๋ฐ˜์‘ํ˜•

ranger, atlas๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด ์„ ์„ค์น˜ํ•ด์•ผํ•˜๋Š” ์˜คํ”ˆ์†Œ์Šค์ด๋‹ค.

 

https://archive.apache.org/dist/lucene/solr/8.5.0/

 

Index of /dist/lucene/solr/8.5.0

 

archive.apache.org

ํ•ด๋‹น ์‚ฌ์ดํŠธ์—์„œ 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

728x90
๋ฐ˜์‘ํ˜•