source: other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-solr-init-collection.sh

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

More general version of script that let's you specify the collection name on the commandline. Defaults to htrc-full-ef

  • Property svn:executable set to *
File size: 311 bytes
Line 
1#!/bin/bash
2
3solr_num_shards=`echo $SOLR_NODES | wc -w`
4solr_node_head=`echo $SOLR_NODES | tr ' ' '\n' | head -n 1`
5solr_host=${solr_node_head%:*}
6
7solr_col=${1:-htrc-full-ef}
8
9ssh $solr_host \
10 solr create \
11 -c $solr_col \
12 -d htrc_configs \
13 -shards $solr_num_shards \
14 -replicationFactor 1
Note: See TracBrowser for help on using the repository browser.