Changeset 31367 for other-projects/hathitrust
- Timestamp:
- 2017-01-29T23:39:41+13:00 (7 years ago)
- Location:
- other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-zookeeper-start.sh
r31078 r31367 1 1 #!/bin/bash 2 2 3 ssh gchead zkServer.sh start 3 zookeeper_host=${ZOOKEEPER_SERVER%:*} 4 5 ssh $zookeeper_host zkServer.sh start -
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-zookeeper-stop.sh
r31078 r31367 1 1 #!/bin/bash 2 2 3 ssh gchead zkServer.sh stop 3 zookeeper_host=${ZOOKEEPER_SERVER%:*} 4 5 ssh $zookeeper_host zkServer.sh stop -
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SETUP.bash
r31305 r31367 11 11 export ZOOKEEPER_SERVER=localhost:8181 12 12 export SOLR_NODES="localhost:8983 localhost:8984 localhost:8985 localhost:8986 localhost:8987 localhost:8988 localhost:8989 localhost:8990 localhost:8991 localhost:8992" 13 else 13 14 elif [ "${short_hostname%[1-2]}" = "solr" ] ; then 15 export ZOOKEEPER_SERVER=solr1:8181 16 export SOLR_NODES="solr1:8983 solr1:8984 solr1:8985 solr1:8986 solr1:8987" 17 export SOLR_NODES="$SOLR_NODES solr2:8983 solr2:8984 solr2:8985 solr2:8986 solr:8987" 18 19 else 14 20 export ZOOKEEPER_SERVER=gchead:8181 15 21 export SOLR_NODES="gc0:8983 gc1:8983 gc2:8983 gc3:8983 gc4:8983 gc5:8983 gc6:8983 gc7:8983 gc8:8983 gc9:8983" … … 17 23 fi 18 24 19 if [ "$short_hostname" != "nema" ] ; then25 if [ "$short_hostname" != "nema" ] && [ "${short_hostname%[1-2]}" != "solr" ] ; then 20 26 HDFS_HEAD=hdfs://gchead:9000 21 27 fi … … 34 40 fi 35 41 36 export JAVA_HOME="$HTRC_EF_NETWORK_HOME/jdk1.8.0" 42 if [ "${short_hostname%[1-2]}" = "solr" ] ; then 43 export JAVA_HOME="/usr/lib/jvm/j2sdk1.8-oracle" 44 else 45 export JAVA_HOME="$HTRC_EF_NETWORK_HOME/jdk1.8.0" 46 fi 47 37 48 export PATH="$JAVA_HOME/bin:$PATH" 38 49 #export _JAVA_OPTIONS="-Xmx512m" … … 46 57 fi 47 58 48 if [ "$short_hostname" != "nema" ] ; then59 if [ "$short_hostname" != "nema" ] && [ "${short_hostname%[1-2]}" != "solr" ] ; then 49 60 source SETUP/setup-spark.bash 50 61 fi … … 53 64 source SETUP/setup-solr.bash 54 65 55 export MONGODB_CONFIG_HOSTS="gc0 gc1 gc2" 56 export MONGODB_CONFIG_PORT="27019" 66 if [ "$short_hostname" = "gsliscluster1" ] ; then 67 export MONGODB_CONFIG_HOSTS="gc0 gc1 gc2" 68 export MONGODB_CONFIG_PORT="27019" 57 69 58 export MONGODB_ROUTER_HOSTS="gc3 gc4 gc5"59 export MONGODB_ROUTER_PORT="27017"70 export MONGODB_ROUTER_HOSTS="gc3 gc4 gc5" 71 export MONGODB_ROUTER_PORT="27017" 60 72 61 export MONGODB_REPLSET1_HOSTS="gc6 gc7"62 export MONGODB_REPLSET2_HOSTS="gc8 gc9"63 export MONGODB_REPLSET_PORT="27017"64 ##export MONGODB_REPLSET_ARRAY=("$MONGODB_REPLSET1_HOSTS" "$MONGODB_REPLSET2_HOSTS")65 export MONGODB_REPLSET_METALIST="MONGODB_REPLSET1_HOSTS MONGODB_REPLSET2_HOSTS"66 export MONGODB_SHARD_HOSTS="$MONGODB_REPLSET1_HOSTS $MONGODB_REPLSET2_HOSTS"73 export MONGODB_REPLSET1_HOSTS="gc6 gc7" 74 export MONGODB_REPLSET2_HOSTS="gc8 gc9" 75 export MONGODB_REPLSET_PORT="27017" 76 ##export MONGODB_REPLSET_ARRAY=("$MONGODB_REPLSET1_HOSTS" "$MONGODB_REPLSET2_HOSTS") 77 export MONGODB_REPLSET_METALIST="MONGODB_REPLSET1_HOSTS MONGODB_REPLSET2_HOSTS" 78 export MONGODB_SHARD_HOSTS="$MONGODB_REPLSET1_HOSTS $MONGODB_REPLSET2_HOSTS" 67 79 68 source SETUP/setup-mongodb.bash 80 source SETUP/setup-mongodb.bash 81 fi 69 82 70 83 export PATH="$HTRC_EF_NETWORK_HOME/SCRIPTS:$PATH" … … 73 86 fi 74 87 75 if [ "$short_hostname" != "nema" ] ; then88 if [ "$short_hostname" != "nema" ] && [ "${short_hostname%[1-2]}" != "solr" ] ; then 76 89 spark_conf_slaves="$SPARK_HOME/conf/slaves" 77 90 if [ ! -f "$spark_conf_slaves" ] ; then
Note:
See TracChangeset
for help on using the changeset viewer.