SOLR Cloud(6)Set Up Local Machine ENV

SOLR Cloud(6)Set Up Local Machine ENV

Set Up Zookeeper
That is the conf/zoo.cfg
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/tmp/zookeeper
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1

Start the Zookeeper
>zkServer.sh start conf/zoo.cfg

Check the Zookeeper running
>jps
30003 QuorumPeerMain
36021
30360 Jps
6296 MacLauncher
61021

Step 1 Set Up Config in Zookeeper
from our solr-alljobs project, dry run will provide us the command we execute
>make ZK_ROOT=/solr/carllocal ZOOKEEPER=localhost:2181 zookeeper-clean --dry-run
docker run -ti --rm odt/solr:latest bin/solr zk rm -r /solr/carllocal -z localhost:2181
docker run -ti --rm odt/solr:latest bin/solr zk mkroot /solr/carllocal -z localhost:2181

But we want to directly execute the bin/solr command on my local machine, so I do not need Docker here.
>bin/solr zk rm -r /solr/carllocal -z localhost:2181
>bin/solr zk mkroot /solr/carllocal -z localhost:2181

Step 2 Start SOLR on Local
Create SOLR Data directory
>sudo mkdir /var/solr
>sudo mkdir /var/solr/data
>sudo mkdir -p /var/solr/logs

>sudo bin/solr start -force

We can visit that after we start the Server
http://localhost:8983/solr/#/

Then We try to Run the SOLR on Production and use X11 forward the GUI
X11 on MAC
https://uisapp2.iu.edu/confluence-prd/pages/viewpage.action?pageId=280461906
https://www.xquartz.org/

We may need to install these xauth xeye jdk(open jdk on the remote server once we logon to that server
>sudo yum install xorg-x11-xauth.x86_64
>sudo yum install java-1.8.0-openjdk-devel.x86_64

For example
>ssh -i ~/.ssh/ec2.id -Y ec2-user@fr-perf1
>jconsole
It will open the jconsole on my local MAC book

It works great on my raspberryPI
>ssh -v -Y [email protected]
>jconsole
It will open the JCONSOLE UI on my local machine which is Mac OS.



References:
https://www.digitalocean.com/community/questions/jetty-timeout-problem-when-serving-images
http://lucene.472066.n3.nabble.com/Idle-timeout-expired-50000-50000-ms-td4273515.html
https://blog.cloudera.com/blog/2017/06/apache-solr-memory-tuning-for-production/
http://www.datagrand.com/blog/1780.html
http://www.cnblogs.com/seaspring/articles/5475354.html

http://blog.cloudera.com/blog/2017/06/apache-solr-memory-tuning-for-production/
http://blog.cloudera.com/blog/2017/06/solr-memory-tuning-for-production-part-2/
http://www.oracle.com/technetwork/articles/java/g1gc-1984535.html

猜你喜欢

转载自sillycat.iteye.com/blog/2404646
env