Difference between revisions of "Elastic"

From SME Server
Jump to navigationJump to search
(Created page with "How to set elastic search on SME == install and configure== installl elastic repo {{:Elastic_repo}} signal-event yum-modify install elastic and dependencies (which are not ...")
 
Line 11: Line 11:
  
 
make it start at every boot
 
make it start at every boot
  ln -s /etc/rc.d/init.d/e-smith-service  /etc/rc7.d/S80elasticsearch
+
  ln -s /etc/rc.d/init.d/e-smith-service  /etc/rc7.d/S95elasticsearch
 
  config set elasticsearch service status enabled  
 
  config set elasticsearch service status enabled  
  

Revision as of 07:41, 13 November 2017

How to set elastic search on SME

install and configure

installl elastic repo


/sbin/e-smith/db yum_repositories set elastic6 repository \
Name 'Elasticsearch repository for 6.x packages' \
BaseURL 'https://artifacts.elastic.co/packages/6.x/yum' \
GPGKey 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' \
GPGCheck yes \
EnableGroups yes \
Visible no \
status disabled
/sbin/e-smith/db yum_repositories set elastic5 repository \
Name 'Elasticsearch repository for 5.x packages' \
BaseURL 'https://artifacts.elastic.co/packages/5.x/yum' \
GPGKey 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' \
GPGCheck yes \
EnableGroups yes \
Visible no \
status disabled
/sbin/e-smith/db yum_repositories set elastic2 repository \
Name 'Elasticsearch repository for 2.x packages' \
BaseURL 'https://packages.elastic.co/elasticsearch/2.x/centos' \
GPGKey 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' \
GPGCheck yes \
EnableGroups yes \
Visible no \
status disabled
/sbin/e-smith/db yum_repositories set elastic1 repository \
Name 'Elasticsearch repository for 1.6 packages' \
BaseURL 'https://artifacts.elastic.co/packages/1.6/yum' \
GPGKey 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' \
GPGCheck yes \
EnableGroups yes \
Visible no \
status disabled


signal-event yum-modify

install elastic and dependencies (which are not explicits)

yum install elasticsearch java-1.8.0-openjdk  --enablerepo=elastic


make it start at every boot

ln -s /etc/rc.d/init.d/e-smith-service  /etc/rc7.d/S95elasticsearch
config set elasticsearch service status enabled 

start it for the first time

service elasticsearch start


notes

elasticsearch : OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N