Skip to content

Instantly share code, notes, and snippets.

@philnate
philnate / ESUpgradeFailure.sh
Created August 25, 2014 15:25
This script allows to reproduce the error seen within https://github.com/elasticsearch/elasticsearch/issues/7430 . Take this as procedure not as actual script to run (ES might not be up when next command is issued). It didn't failed right away with only one document indexed, it started about 40mb index size. But might fail already earlier
#!/bin/sh
cd /var/tmp
rm -rf *elastic*
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.0.tar.gz
tar -xf elasticsearch-0.20.0.tar.gz
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.1.tar.gz
tar -xf elasticsearch-1.3.1.tar.gz
./elasticsearch-0.20.0/bin/elasticsearch
curl -XPUT 'http://localhost:9200/twitter/'