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

Revision 31235, 1.0 KB (checked in by davidb, 3 years ago)

More fine-grained testing to help nema setup

Line 
1
2
3_SOLR_TOP_LEVEL_HOME="$HTRC_EF_PACKAGE_HOME/solr"
4
5if [ "$short_hostname" = "nema" ] ; 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"
17else
18  # on one of the gc nodes (or nema)
19  export SOLR_TOP_LEVEL_HOME="$_SOLR_TOP_LEVEL_HOME"
20  export PATH="$SOLR_TOP_LEVEL_HOME/bin:$PATH"
21
22  export SOLR_HOME="$_SOLR_HOME"
23
24  export SOLR_PID_DIR="$SOLR_HOME"
25
26fi
27
28#export PATH="$HTRC_EF_PACKAGE_HOME/solr/bin:$PATH"
29#if [ "$short_hostname" = "gsliscluster1" ] ; then
30#  echo "* Added in Solr into PATH"
31#fi
32#
33#export SOLR_TOP_LEVEL_HOME="$HTRC_EF_PACKAGE_HOME/solr"
34#export SOLR_HOME="$SOLR_TOP_LEVEL_HOME/server/solr"
35#if [ "$short_hostname" = "gsliscluster1" ] ; then
36#  echo "* Set Solr node (home) conf dir to:"
37#  echo "*   $SOLR_HOME"
38#fi
39
Note: See TracBrowser for help on using the browser.