source: other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SETUP/setup-solr.bash@ 31231

Last change on this file since 31231 was 31231, checked in by davidb, 7 years ago

Changes to allow SOLR to run on nodes in /hdfsd05/dbbridge/solr-ef

File size: 959 bytes
Line 
1
2
3_SOLR_TOP_LEVEL_HOME="$HTRC_EF_PACKAGE_HOME/solr"
4#_SOLR_HOME="$_SOLR_TOP_LEVEL_HOME/server/solr"
5_SOLR_HOME="/hdfsd05/dbbridge/solr-ef"
6
7if [ "$short_hostname" = "gsliscluster1" ] ; then
8 echo "* For-each Solr Node"
9 echo "* Added Solr bin into PATH"
10 echo "* $_SOLR_TOP_LEVEL_HOME/bin"
11 echo "* Set Solr node (home) conf dir to:"
12 echo "* $_SOLR_HOME"
13else
14 # on one of the nodes
15 export SOLR_TOP_LEVEL_HOME="$_SOLR_TOP_LEVEL_HOME"
16 export PATH="$SOLR_TOP_LEVEL_HOME/bin:$PATH"
17
18 export SOLR_HOME="$_SOLR_HOME"
19
20 export SOLR_PID_DIR="$SOLR_HOME"
21
22fi
23
24#export PATH="$HTRC_EF_PACKAGE_HOME/solr/bin:$PATH"
25#if [ "$short_hostname" = "gsliscluster1" ] ; then
26# echo "* Added in Solr into PATH"
27#fi
28#
29#export SOLR_TOP_LEVEL_HOME="$HTRC_EF_PACKAGE_HOME/solr"
30#export SOLR_HOME="$SOLR_TOP_LEVEL_HOME/server/solr"
31#if [ "$short_hostname" = "gsliscluster1" ] ; then
32# echo "* Set Solr node (home) conf dir to:"
33# echo "* $SOLR_HOME"
34#fi
35
Note: See TracBrowser for help on using the repository browser.