-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
28 lines (20 loc) · 846 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
set -e
#echo 'DELETE RIVER'
#curl -XDELETE http://cu-01:9200/_river/runriver*
#echo 'CLEANING'
#mvn3 clean
echo 'COMPILING'
mvn3 package
#echo 'REMOVE PLUGIN'
#sudo /usr/share/elasticsearch/bin/plugin -r river-runriver
#sudo rm /usr/share/elasticsearch/plugins/river-runriver/*
#echo 'INSTALL PLUGIN'
#sudo /usr/share/elasticsearch/bin/plugin -url file:/home/salvo/Scrivania/PH-CMD/runRiver/target/releases/river-runriver-1.0-plugin.zip -i river-runriver
#sudo unzip /home/salvo/Scrivania/PH-CMD/runRiver/target/releases/river-runriver-1.0-plugin.zip -d /usr/share/elasticsearch/plugins/river-runriver/
#echo 'Restart ES'
#sudo service elasticsearch restart
#sleep 10
#echo 'CREATE RIVER'
#curl -XPUT http://cu-01:9200/_river/runriver/_meta -d '{ "type" : "runriver", "es_tribe_host" : "http://bu-01:9200" }'
echo 'DONE'