Skip to content

Commit

Permalink
Upgrade Elasticsearch à la version 5.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-24 authored and vhf committed Aug 20, 2017
1 parent b73357e commit 1ca609f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 17 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ before_install:
# install elasticsearch
if [[ "$ZDS_TEST_JOB" == *"zds.searchv2"* ]]; then
# see https://docs.travis-ci.com/user/database-setup/#Installing-specific-versions-of-ElasticSearch
curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.3.0.deb \
&& sudo dpkg -i --force-confnew elasticsearch-5.3.0.deb \
curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.5.2.deb \
&& sudo dpkg -i --force-confnew elasticsearch-5.5.2.deb \
&& sudo service elasticsearch start
fi
Expand All @@ -82,7 +82,6 @@ before_install:
./scripts/ci_mysql_setup.sh
fi
install:
- |
# install frontend dependencies
Expand Down
23 changes: 12 additions & 11 deletions doc/source/install/install-es.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ La procédure d'installation, si vous souhaitez utiliser Elasticsearch sans l'in

.. sourcecode:: bash

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.0.zip
unzip elasticsearch-5.2.0.zip
cd elasticsearch-5.2.0/
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.5.2.zip
unzip elasticsearch-5.5.2.zip
cd elasticsearch-5.5.2/

Pour démarrer Elasticsearch, utilisez

Expand Down Expand Up @@ -93,9 +93,9 @@ Sous Windows

Elasticsearch requiert **la version 8** de Java, que vous pouvez trouver `sur la page officielle de java <http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html>`_. Prenez la version correspondante à votre système d'exploitation.

Téléchargez ensuite Elasticsearch à l'adresse suivante : `https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.0.zip <https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.0.zip>`_, puis extrayez le dossier ``elasticsearch-5.2.0`` du zip à l'aide de votre outil préféré.
Téléchargez ensuite Elasticsearch à l'adresse suivante : `https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.5.2.zip <https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.5.2.zip>`_, puis extrayez le dossier ``elasticsearch-5.5.2`` du zip à l'aide de votre outil préféré.

Pour démarer Elasticsearch, ouvrez un *shell* (ou un *powershell*) et rendez-vous dans le dossier ``elasticsearch-5.2.0``.
Pour démarer Elasticsearch, ouvrez un *shell* (ou un *powershell*) et rendez-vous dans le dossier ``elasticsearch-5.5.2``.
Exécutez ensuite la commande suivante :

.. sourcecode:: bash
Expand All @@ -119,19 +119,20 @@ Vous devriez observer une réponse du même genre que celle-ci :
.. sourcecode:: none

{
"name" : "BSe6-yz",
"name" : "p0bcxqN",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "ylUZo_xNR3uAofTV0xT_Gw",
"cluster_uuid" : "649S5bMUQOyRzYmQFVPA1A",
"version" : {
"number" : "5.2.0",
"build_hash" : "5395e21",
"build_date" : "2016-12-06T12:36:15.409Z",
"number" : "5.5.2",
"build_hash" : "19c13d0",
"build_date" : "2017-07-18T20:44:24.823Z",
"build_snapshot" : false,
"lucene_version" : "6.3.0"
"lucene_version" : "6.6.0"
},
"tagline" : "You Know, for Search"
}


Si ce n'est pas le cas, vérifiez que vous avez démarré Elasticsearch.

Si c'est le cas, vous pouvez indexer les données à l'aide de la commande ``es_manager``, comme suit :
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Implicit dependencies (optional dependencies of dependencies)
pygments==2.2.0
python-social-auth==0.2.19
elasticsearch==5.3.0
elasticsearch-dsl==5.2.0
elasticsearch==5.4.0
elasticsearch-dsl==5.3.0

# Explicit dependencies (references in code)
Django==1.10.7
Expand Down
8 changes: 7 additions & 1 deletion update.md
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,6 @@ Ticket #4313
+ Via l'admin Django, ajouter la permission `member.change_bannedemailprovider` aux groupes autorisés à gérer les fournisseurs e-mail bannis.
Actions à faire pour mettre en prod la version : v25
====================================================
Expand Down Expand Up @@ -1089,3 +1088,10 @@ Node.js, yarn et npm
Mettre à jour Node.js à la version v8.x.x.

Installer Yarn à la version v0.27.x ou supérieure. Yarn peut-être installé avec `npm i -g yarn`.

Mise à jour d'ElasticSearch (#420)
----------------------------------

1. `sudo apt update`
2. `sudo apt upgrade elasticsearch`
3. `systemctl restart elasticsearch.service`

0 comments on commit 1ca609f

Please sign in to comment.