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

Revision 31301, 1.2 KB (checked in by davidb, 3 years ago)

Fix for gsliscluster1

RevLine 
[31078]1
2
[31231]3_SOLR_TOP_LEVEL_HOME="$HTRC_EF_PACKAGE_HOME/solr"
[31078]4
[31235]5if [ "$short_hostname" = "nema" ] ; then
6  _SOLR_HOME="$_SOLR_TOP_LEVEL_HOME/server/solr"
7else
8  _SOLR_HOME="/hdfsd05/dbbridge/solr-ef"
9fi
10
[31103]11if [ "$short_hostname" = "gsliscluster1" ] ; then
[31231]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"
[31301]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"
[31231]20else
[31235]21  # on one of the gc nodes (or nema)
[31231]22  export SOLR_TOP_LEVEL_HOME="$_SOLR_TOP_LEVEL_HOME"
23  export PATH="$SOLR_TOP_LEVEL_HOME/bin:$PATH"
[31078]24
[31231]25  export SOLR_HOME="$_SOLR_HOME"
26
27  export SOLR_PID_DIR="$SOLR_HOME"
28
[31103]29fi
[31078]30
[31231]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.