Last change
on this file since 31464 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
|
Rev | Line | |
---|
[31464] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | solr_num_shards=`echo $SOLR_NODES | wc -w`
|
---|
| 4 | solr_node_head=`echo $SOLR_NODES | tr ' ' '\n' | head -n 1`
|
---|
| 5 | solr_host=${solr_node_head%:*}
|
---|
| 6 |
|
---|
| 7 | solr_col=${1:-htrc-full-ef}
|
---|
| 8 |
|
---|
| 9 | ssh $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.