mirror of https://github.com/apache/lucene.git
solar->solr in scripts
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@382652 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f606d78b19
commit
2a66e0298d
|
@ -1,11 +1,11 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: abc.template,v 1.5 2005/06/09 15:33:13 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/abc.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/abc.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
#
|
||||
# Shell script to make an Atomic Backup after Commit of
|
||||
# a SOLAR Lucene collection.
|
||||
# a Solr Lucene collection.
|
||||
|
||||
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
|
||||
|
@ -78,11 +78,11 @@ cd ${0%/*}/../..
|
|||
logMessage started by $oldwhoami
|
||||
logMessage command: $0 $originalargs
|
||||
|
||||
logMessage sending commit to Solar server at port 5051
|
||||
logMessage sending commit to Solr server at port 5051
|
||||
rs=`curl http://localhost:5051/update -s -d "<commit/>"`
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage failed to connect to SOLAR server at port 5051
|
||||
logMessage failed to connect to Solr server at port 5051
|
||||
logMessage commit failed
|
||||
logExit failed 1
|
||||
fi
|
||||
|
@ -91,7 +91,7 @@ fi
|
|||
rc=`echo $rs|cut -f2 -d'"'`
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage commit request to SOLAR at port 5051 failed:
|
||||
logMessage commit request to Solr at port 5051 failed:
|
||||
logMessage $rs
|
||||
logExit failed 2
|
||||
fi
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: abo.template,v 1.5 2005/06/09 15:33:13 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/abo.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/abo.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
#
|
||||
# Shell script to make an Atomic Backup after Optimize of
|
||||
# a SOLAR Lucene collection.
|
||||
# a Solr Lucene collection.
|
||||
|
||||
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
|
||||
|
@ -78,11 +78,11 @@ cd ${0%/*}/../..
|
|||
logMessage started by $oldwhoami
|
||||
logMessage command: $0 $originalargs
|
||||
|
||||
logMessage sending optimize to Solar server at port 5051
|
||||
logMessage sending optimize to Solr server at port 5051
|
||||
rs=`curl http://localhost:5051/update -s -d "<optimize/>"`
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage failed to connect to SOLAR server at port 5051
|
||||
logMessage failed to connect to Solr server at port 5051
|
||||
logMessage optimize failed
|
||||
logExit failed 1
|
||||
fi
|
||||
|
@ -91,7 +91,7 @@ fi
|
|||
rc=`echo $rs|cut -f2 -d'"'`
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage optimize request to SOLAR at port 5051 failed:
|
||||
logMessage optimize request to Solr at port 5051 failed:
|
||||
logMessage $rs
|
||||
logExit failed 2
|
||||
fi
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: backup.template,v 1.4 2005/06/09 15:33:13 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/backup.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/backup.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
#
|
||||
# Shell script to make a backup of a SOLAR Lucene collection.
|
||||
# Shell script to make a backup of a Solr Lucene collection.
|
||||
|
||||
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: commit.template,v 1.4 2005/06/09 15:33:13 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/commit.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/commit.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
|
||||
#
|
||||
# Shell script to force a commit of all changes since last commit
|
||||
# for a SOLAR server
|
||||
# for a Solr server
|
||||
|
||||
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
|
||||
|
@ -82,7 +82,7 @@ logMessage command: $0 $originalargs
|
|||
rs=`curl http://localhost:5051/update -s -d "<commit/>"`
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage failed to connect to SOLAR server at port 5051
|
||||
logMessage failed to connect to Solr server at port 5051
|
||||
logMessage commit failed
|
||||
logExit failed 1
|
||||
fi
|
||||
|
@ -91,7 +91,7 @@ fi
|
|||
rc=`echo $rs|cut -f2 -d'"'`
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage commit request to SOLAR at port 5051 failed:
|
||||
logMessage commit request to Solr at port 5051 failed:
|
||||
logMessage $rs
|
||||
logExit failed 2
|
||||
fi
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: optimize.template,v 1.3 2005/06/09 15:34:06 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/optimize.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/optimize.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
|
||||
#
|
||||
# Shell script to force a optimized commit of all changes since last commit
|
||||
# for a SOLAR server
|
||||
# for a Solr server
|
||||
|
||||
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
|
||||
|
@ -82,7 +82,7 @@ logMessage command: $0 $originalargs
|
|||
rs=`curl http://localhost:5051/update -s -d "<optimize/>"`
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage failed to connect to SOLAR server at port 5051
|
||||
logMessage failed to connect to Solr server at port 5051
|
||||
logMessage optimize failed
|
||||
logExit failed 1
|
||||
fi
|
||||
|
@ -91,7 +91,7 @@ fi
|
|||
rc=`echo $rs|cut -f2 -d'"'`
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage optimize request to SOLAR at port 5051 failed:
|
||||
logMessage optimize request to Solr at port 5051 failed:
|
||||
logMessage $rs
|
||||
logExit failed 2
|
||||
fi
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: readercycle.template,v 1.3 2005/06/09 15:34:06 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/readercycle.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/readercycle.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
|
||||
#
|
||||
# Shell script to force all old readers closed and a new reader to be opened
|
||||
# for a SOLAR server
|
||||
# for a Solr server
|
||||
|
||||
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
|
||||
|
@ -82,7 +82,7 @@ logMessage command: $0 $originalargs
|
|||
rs=`curl http://localhost:5051/update -s -d "<commit/>"`
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage failed to connect to SOLAR server at port 5051
|
||||
logMessage failed to connect to Solr server at port 5051
|
||||
logMessage reader cycle failed
|
||||
logExit failed 1
|
||||
fi
|
||||
|
@ -91,7 +91,7 @@ fi
|
|||
rc=`echo $rs|cut -f2 -d'"'`
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage reader cycle request to SOLAR at port 5051 failed:
|
||||
logMessage reader cycle request to Solr at port 5051 failed:
|
||||
logMessage $rs
|
||||
logExit failed 2
|
||||
fi
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: rsyncd-disable.template,v 1.1 2005/06/20 20:43:29 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/rsyncd-disable.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/rsyncd-disable.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
#
|
||||
# Shell script to disable rsyncd
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: rsyncd-enable.template,v 1.1 2005/06/20 20:43:29 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/rsyncd-enable.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/rsyncd-enable.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
#
|
||||
# Shell script to enable rsyncd
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: rsyncd-start.template,v 1.3 2005/06/20 20:43:55 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/rsyncd-start.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/rsyncd-start.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
#
|
||||
# Shell script to start rsyncd on master SOLAR server
|
||||
# Shell script to start rsyncd on master Solr server
|
||||
|
||||
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: rsyncd-stop.template,v 1.3 2005/06/20 20:43:55 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/rsyncd-stop.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/rsyncd-stop.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
#
|
||||
# Shell script to stop rsyncd on master SOLAR server
|
||||
# Shell script to stop rsyncd on master Solr server
|
||||
|
||||
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: snapcleaner.template,v 1.7 2005/06/09 15:34:06 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/snapcleaner.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/snapcleaner.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
#
|
||||
# Shell script to clean up snapshots of a SOLAR Lucene collection.
|
||||
# Shell script to clean up snapshots of a Solr Lucene collection.
|
||||
|
||||
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: snapinstaller.template,v 1.12 2005/06/09 17:19:34 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/snapinstaller.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/snapinstaller.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
#
|
||||
# Shell script to install a snapshot into place as the Lucene collection
|
||||
# for a SOLAR server
|
||||
# for a Solr server
|
||||
|
||||
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
|
||||
|
@ -158,13 +158,13 @@ then
|
|||
logMessage failed to ssh to master ${masterHost}, snapshot status not updated on master
|
||||
fi
|
||||
|
||||
# notify SOLAR to open a new Searcher
|
||||
logMessage notifing SOLAR to open a new Searcher
|
||||
scripts/solar/commit
|
||||
# notify Solr to open a new Searcher
|
||||
logMessage notifing Solr to open a new Searcher
|
||||
scripts/solr/commit
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage failed to connect to SOLAR server at port 5051
|
||||
logMessage snapshot installed but SOLAR server has not open a new Searcher
|
||||
logMessage failed to connect to Solr server at port 5051
|
||||
logMessage snapshot installed but Solr server has not open a new Searcher
|
||||
logExit failed 1
|
||||
fi
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: snappuller.template,v 1.13 2005/07/20 18:38:49 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/snappuller.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/snappuller.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
#
|
||||
# Shell script to copy snapshots of a SOLAR Lucene collection from the master
|
||||
# Shell script to copy snapshots of a Solr Lucene collection from the master
|
||||
|
||||
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
|
||||
|
@ -188,7 +188,7 @@ scp -q -o StrictHostKeyChecking=no logs/snappuller.status ${masterHost}:${MASTER
|
|||
|
||||
# rsync over files that have changed
|
||||
rsync -Wa${verbose}${compress} --delete ${sizeonly} \
|
||||
${stats} rsync://${masterHost}:${rsyncd_port}/solar/`basename ${name}`/ `basename ${name}-wip`
|
||||
${stats} rsync://${masterHost}:${rsyncd_port}/solr/`basename ${name}`/ `basename ${name}-wip`
|
||||
|
||||
rc=$?
|
||||
rsyncEnd=`date`
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: snappuller-disable.template,v 1.4 2005/06/20 20:43:55 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/snappuller-disable.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/snappuller-disable.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
#
|
||||
# Shell script to disable snappuller
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: snappuller-enable.template,v 1.4 2005/06/20 20:43:56 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/snappuller-enable.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/snappuller-enable.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
#
|
||||
# Shell script to enable snappuller
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $Id: snapshooter.template,v 1.9 2005/06/09 15:34:07 billa Exp $
|
||||
# $Source: /cvs/main/searching/solar-tools/snapshooter.template,v $
|
||||
# $Id$
|
||||
# $Source: /cvs/main/searching/solr-tools/snapshooter.template,v $
|
||||
# $Name: r20050725_standardized_server_enabled $
|
||||
#
|
||||
# Shell script to take a snapshot of a SOLAR Lucene collection.
|
||||
# Shell script to take a snapshot of a Solr Lucene collection.
|
||||
|
||||
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
|
||||
|
@ -48,7 +48,7 @@ fi
|
|||
# source the config file
|
||||
. $confFile
|
||||
|
||||
if [[ "${solar_role}" == "slave" ]]
|
||||
if [[ "${solr_role}" == "slave" ]]
|
||||
then
|
||||
echo "$prog disabled on slave server" >&2
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue