root/other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-solr-delete-collection.sh @ 31466

Revision 31466, 228 bytes (checked in by davidb, 4 years ago)

Fix to work out solr_host rather than assume it is gc0

  • Property svn:executable set to *
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 delete \
11     -c $solr_col
Note: See TracBrowser for help on using the browser.