Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4621  / 1 Year ago, wed, january 4, 2023, 1:21:45

I have two projects using different versions of Elasticsearch, the first uses 0.9.x and the second will use 1.2.x. What would the best way to install both versions so I can work on the two projects?


More From » 12.04

 Answers
3

[Edit 2019-12-11]: Docker is obviously the way to go now!



Answering to myself, I ended with simple installation scripts like that:



#!/bin/bash
sudo apt-get remove elasticsearch
sudo dpkg -i elasticsearch-0.90.5.deb
sudo rm -rf /usr/share/elasticsearch/plugins
sudo cp -R plugins /usr/share/elasticsearch
sudo cp elasticsearch.yml.0.90.5 /etc/elasticsearch/elasticsearch.yml
sudo /etc/init.d/elasticsearch restart
sleep 2;
sudo /etc/init.d/elasticsearch status


Note that in the elasticsearch.yml file, the cluster name must be different to avoid conflicts:



0.9.5:



cluster.name: cluster_v0


1.7.6:



cluster.name: cluster_v1


And so on.


[#24240] Thursday, January 5, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
enytidge

Total Points: 169
Total Questions: 105
Total Answers: 107

Location: Papua New Guinea
Member since Tue, Aug 24, 2021
3 Years ago
enytidge questions
Tue, Feb 28, 23, 15:26, 1 Year ago
Sun, Jan 1, 23, 19:36, 1 Year ago
Sun, Oct 24, 21, 07:30, 3 Years ago
Wed, Nov 9, 22, 22:02, 2 Years ago
;