Loading solr/scripts/add_shard.sh +2 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,8 @@ fi if ! [[ $shard_name == 'master' || $shard_name == 'slave' ]]; then shards_file="/esg/config/esgf_shards_static.xml" if ! grep -q ${shard_port} ${shards_file} ; then #echo "Adding shard to ${shards_file}" echo "Adding shard to ${shards_file}" # following not currently working on distributed nodes #sed -i 's/<\/shards>/ <value>localhost:'${shard_port}'\/solr<\/value>\n<\/shards>/g' ${shards_file} fi fi solr/scripts/remove_shard.sh +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ if ! [[ $shard_name == 'master' || $shard_name == 'slave' ]]; then shards_file="/esg/config/esgf_shards_static.xml" if grep -q ${shard_port} ${shards_file} ; then echo "Removing shard from ${shards_file}" sed -i '/localhost:'${shard_port}'/d' ${shards_file} #sed -i '/localhost:'${shard_port}'/d' ${shards_file} fi fi Loading
solr/scripts/add_shard.sh +2 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,8 @@ fi if ! [[ $shard_name == 'master' || $shard_name == 'slave' ]]; then shards_file="/esg/config/esgf_shards_static.xml" if ! grep -q ${shard_port} ${shards_file} ; then #echo "Adding shard to ${shards_file}" echo "Adding shard to ${shards_file}" # following not currently working on distributed nodes #sed -i 's/<\/shards>/ <value>localhost:'${shard_port}'\/solr<\/value>\n<\/shards>/g' ${shards_file} fi fi
solr/scripts/remove_shard.sh +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ if ! [[ $shard_name == 'master' || $shard_name == 'slave' ]]; then shards_file="/esg/config/esgf_shards_static.xml" if grep -q ${shard_port} ${shards_file} ; then echo "Removing shard from ${shards_file}" sed -i '/localhost:'${shard_port}'/d' ${shards_file} #sed -i '/localhost:'${shard_port}'/d' ${shards_file} fi fi