Skip to content

Commit

Permalink
restart cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
rdartus committed Dec 12, 2016
1 parent 5c455c8 commit 1186982
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions update.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
sudo apt-get -y install apt-transport-https
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
sudo apt-get install logstash -y
# sudo apt-get -y install apt-transport-https
# wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
# echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
# sudo apt-get install logstash -y
#
# #install elasticsearch
# sudo apt-get -y install elasticsearch
#
# #install kibana
# sudo apt-get -y install kibana

#install elasticsearch
sudo apt-get -y install elasticsearch

#install kibana
sudo apt-get -y install kibana
# update 2
curl -XPUT 'localhost:9200/_cluster/settings?pretty' -d'
{
"persistent": {
"cluster.routing.allocation.enable": "none"
}
}'
curl -XPOST 'localhost:9200/_flush/synced?pretty'
curl -XGET 'localhost:9200/_cat/health?pretty'
curl -XGET 'localhost:9200/_cat/recovery?pretty'

0 comments on commit 1186982

Please sign in to comment.