root/other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SETUP/setup-solr7.bash @ 32173

Revision 32173, 1.3 KB (checked in by davidb, 19 months ago)

Shift to using Solr7 setup

Line 
1
2
3_SOLR_TOP_LEVEL_HOME="$HTRC_EF_PACKAGE_HOME/solr7"
4
5if [ "$short_hostname" = "nema" ] || [ "${short_hostname%[1-2]}" = "solr" ] ; then
6  _SOLR_HOME="$_SOLR_TOP_LEVEL_HOME/server/solr"
7else
8  _SOLR_HOME="/hdfsd05/dbbridge/solr-ef"
9fi
10
11if [ "$short_hostname" = "gsliscluster1" ] ; then
12  echo "* For-each Solr Node"
13  echo "*   Added Solr bin into PATH"
14  echo "*     $_SOLR_TOP_LEVEL_HOME/bin"
15  echo "*   Set Solr node (home) conf dir to:"
16  echo "*     $_SOLR_HOME"
17  # The following is needed on gsliscluster1 for something like
18  #   remote-solr-setup-local-disk-all.sh to work
19  export SOLR_HOME="$HTRC_EF_PACKAGE_HOME/solr/server/solr"
20else
21  # on one of the gc nodes (or nema)
22  export SOLR_TOP_LEVEL_HOME="$_SOLR_TOP_LEVEL_HOME"
23  export PATH="$SOLR_TOP_LEVEL_HOME/bin:$PATH"
24
25  # on solr1 and solr2 these will be locally overriden when solr-server started/stopped
26  export SOLR_HOME="$_SOLR_HOME"
27  export SOLR_PID_DIR="$SOLR_HOME"
28
29fi
30
31#export PATH="$HTRC_EF_PACKAGE_HOME/solr/bin:$PATH"
32#if [ "$short_hostname" = "gsliscluster1" ] ; then
33#  echo "* Added in Solr into PATH"
34#fi
35#
36#export SOLR_TOP_LEVEL_HOME="$HTRC_EF_PACKAGE_HOME/solr"
37#export SOLR_HOME="$SOLR_TOP_LEVEL_HOME/server/solr"
38#if [ "$short_hostname" = "gsliscluster1" ] ; then
39#  echo "* Set Solr node (home) conf dir to:"
40#  echo "*   $SOLR_HOME"
41#fi
42
Note: See TracBrowser for help on using the browser.