Changes

Jump to navigation Jump to search
959 bytes added ,  09:01, 26 November 2023
Line 1: Line 1:  
How to set elastic search on SME
 
How to set elastic search on SME
 
== install and configure==
 
== install and configure==
 +
<tabs container style="display: inline-block;" ><tab name="For SME 10">
 
installl elastic repo
 
installl elastic repo
 
  yum install smeserver-extrarepositories-elastic
 
  yum install smeserver-extrarepositories-elastic
 
  signal-event yum-modify
 
  signal-event yum-modify
   −
install elastic and dependencies (which are not explicits). You now need to choose the version you want ! 6, 5 or 1.6
+
install elastic and dependencies (which are not explicits). You now need to choose the version you want ! 8.x, 7.x, 6.x, 5.x, 2 or 1
 +
 
  yum install elasticsearch java-1.8.0-openjdk  --enablerepo=elastic6.x
 
  yum install elasticsearch java-1.8.0-openjdk  --enablerepo=elastic6.x
 +
allow updates
 +
db yum_repositories setprop elastic6.x status enabled TCPPort 9200 access localhost
 +
signal-event yum-modify
   −
mkdir -p /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/
+
if you wanted a specific release you can use versionlock
 +
yum install yum-plugin-versionlock -y
 +
yum install elasticsearch-7.10.2 java-1.8.0-openjdk  --enablerepo=elastic6.x
 +
yum versionlock  add elasticsearch-7.10.*
   −
echo '{
+
configure and start
 
+
config set elasticsearch service status enabled
push @list,qw(elasticsearch);
+
mkdir -p /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/
 
+
echo '{
$OUT.="";
+
push @list,qw(elasticsearch);
 
+
$OUT.="";
}
+
}
 
+
'> /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/06elasticsearch
'> /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/06elasticsearch
+
expand-template /etc/systemd/system-preset/49-koozali.preset
 
+
/etc/e-smith/events/actions/systemd-default
expand-template /etc/systemd/system-preset/49-koozali.preset
+
systemctl start elasticsearch
 
+
</tab><tab name="For SME 9">
/etc/e-smith/events/actions/systemd-default
+
installl elastic repo
 +
yum install smeserver-extrarepositories-elastic
 +
signal-event yum-modify
    +
install elastic and dependencies (which are not explicits). You now need to choose the version you want  6.x, 5.x, 2 or 1
 +
yum install elasticsearch java-1.8.0-openjdk  --enablerepo=elastic6.x
 +
allow updates
 +
db yum_repositories setprop elastic6.x status enabled
 +
signal-event yum-modify
    
make it start at every boot
 
make it start at every boot
Line 31: Line 46:  
start it for the first time
 
start it for the first time
 
  service elasticsearch start
 
  service elasticsearch start
 +
</tab></tabs>
    
== migration from 1.x to higher ==
 
== migration from 1.x to higher ==
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu