官方网站:
https://www.elastic.co/cn/downloads/enterprise

安装前检查:
https://www.elastic.co/guide/en/cloud-enterprise/current/ece-prereqs.html

操作系统检查:

[root@dg12c3 ~]# cat /etc/redhat-release 
CentOS Linux release 7.3.1611 (Core) 
[root@dg12c3 ~]# 
[root@dg12c3 ~]# free -m
              total        used        free      shared  buff/cache   available
Mem:           7984        3127        4222          13         633        4548
Swap:          6143         413        5730
[root@dg12c3 ~]# 
[root@dg12c3 ~]# df -h
Filesystem           Size  Used Avail Use% Mounted on
/dev/mapper/cl-root   36G   23G   13G  65% /
devtmpfs             3.9G     0  3.9G   0% /dev
tmpfs                3.9G  140K  3.9G   1% /dev/shm
tmpfs                3.9G   25M  3.9G   1% /run
tmpfs                3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda1           1014M  155M  860M  16% /boot
/dev/mapper/cl-home   18G  2.2G   16G  13% /home
tmpfs                799M   36K  799M   1% /run/user/0
[root@dg12c3 ~]# 
[root@dg12c3 ~]# 
[root@dg12c3 ~]# uname -a
Linux dg12c3 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@dg12c3 ~]# 

安装Docker支持(1.11以上):
Docker官方网站:https://www.docker.com/

[root@dg12c3 ~]# yum list | grep docker
cockpit-docker.x86_64                       151-1.el7.centos           extras   
docker.x86_64                               2:1.12.6-61.git85d7426.el7.centos
docker-client.x86_64                        2:1.12.6-61.git85d7426.el7.centos
docker-client-latest.x86_64                 1.13.1-26.git1faa135.el7.centos
docker-common.x86_64                        2:1.12.6-61.git85d7426.el7.centos
docker-devel.x86_64                         1.3.2-4.el7.centos         extras   
docker-distribution.x86_64                  2.6.2-1.git48294d9.el7     extras   
docker-forward-journald.x86_64              1.10.3-44.el7.centos       extras   
docker-latest.x86_64                        1.13.1-26.git1faa135.el7.centos
docker-latest-logrotate.x86_64              1.13.1-26.git1faa135.el7.centos
docker-latest-v1.10-migrator.x86_64         1.13.1-26.git1faa135.el7.centos
docker-logrotate.x86_64                     2:1.12.6-61.git85d7426.el7.centos
docker-lvm-plugin.x86_64                    2:1.12.6-61.git85d7426.el7.centos
docker-novolume-plugin.x86_64               2:1.12.6-61.git85d7426.el7.centos
docker-python.x86_64                        1.4.0-115.el7              extras   
docker-registry.x86_64                      0.9.1-7.el7                extras   
docker-unit-test.x86_64                     2:1.12.6-61.git85d7426.el7.centos
docker-v1.10-migrator.x86_64                2:1.12.6-61.git85d7426.el7.centos
pcp-pmda-docker.x86_64                      3.11.8-7.el7               base     
python-docker-py.noarch                     1.10.6-3.el7               extras   
python-docker-pycreds.noarch                1.10.6-3.el7               extras   
[root@dg12c3 ~]# 
[root@dg12c3 ~]# yum install docker
Loaded plugins: fastestmirror, langpacks
base                                                                                                  | 3.6 kB  00:00:00     
extras                                                                                                | 3.4 kB  00:00:00     
local                                                                                                 | 2.9 kB  00:00:00     
mongodb-org-3.6                                                                                       | 2.5 kB  00:00:00     
updates                                                                                               | 3.4 kB  00:00:00     
Loading mirror speeds from cached hostfile
 * base: mirrors.sohu.com
 * extras: mirrors.sohu.com
 * updates: mirrors.sohu.com
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 2:1.12.6-61.git85d7426.el7.centos will be installed
--> Processing Dependency: docker-common = 2:1.12.6-61.git85d7426.el7.centos for package: 2:docker-1.12.6-61.git85d7426.el7.centos.x86_64
--> Processing Dependency: docker-client = 2:1.12.6-61.git85d7426.el7.centos for package: 2:docker-1.12.6-61.git85d7426.el7.centos.x86_64
--> Running transaction check
---> Package docker-client.x86_64 2:1.12.6-61.git85d7426.el7.centos will be installed
---> Package docker-common.x86_64 2:1.12.6-61.git85d7426.el7.centos will be installed
--> Processing Dependency: oci-umount >= 2:2.0.0-1 for package: 2:docker-common-1.12.6-61.git85d7426.el7.centos.x86_64
--> Processing Dependency: oci-systemd-hook >= 1:0.1.4-9 for package: 2:docker-common-1.12.6-61.git85d7426.el7.centos.x86_64
--> Processing Dependency: oci-register-machine >= 1:0-3.10 for package: 2:docker-common-1.12.6-61.git85d7426.el7.centos.x86_64
--> Processing Dependency: container-storage-setup >= 0.7.0-1 for package: 2:docker-common-1.12.6-61.git85d7426.el7.centos.x86_64
--> Processing Dependency: container-selinux >= 2:2.21-2 for package: 2:docker-common-1.12.6-61.git85d7426.el7.centos.x86_64
--> Processing Dependency: skopeo-containers for package: 2:docker-common-1.12.6-61.git85d7426.el7.centos.x86_64
--> Running transaction check
---> Package container-selinux.noarch 2:2.28-1.git85ce147.el7 will be installed
--> Processing Dependency: policycoreutils >= 2.5-11 for package: 2:container-selinux-2.28-1.git85ce147.el7.noarch
---> Package container-storage-setup.noarch 0:0.7.0-1.git4ca59c5.el7 will be installed
---> Package oci-register-machine.x86_64 1:0-3.13.gitcd1e331.el7 will be installed
---> Package oci-systemd-hook.x86_64 1:0.1.14-1.git1ba44c6.el7 will be installed
---> Package oci-umount.x86_64 2:2.0.0-1.git299e781.el7 will be installed
---> Package skopeo-containers.x86_64 1:0.1.24-1.dev.git28d4e08.el7 will be installed
--> Running transaction check
---> Package policycoreutils.x86_64 0:2.5-8.el7 will be updated
--> Processing Dependency: policycoreutils = 2.5-8.el7 for package: policycoreutils-python-2.5-8.el7.x86_64
---> Package policycoreutils.x86_64 0:2.5-17.1.el7 will be an update
--> Running transaction check
---> Package policycoreutils-python.x86_64 0:2.5-8.el7 will be updated
---> Package policycoreutils-python.x86_64 0:2.5-17.1.el7 will be an update
--> Processing Dependency: libsemanage-python >= 2.5-5 for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> Running transaction check
---> Package libsemanage-python.x86_64 0:2.5-4.el7 will be updated
---> Package libsemanage-python.x86_64 0:2.5-8.el7 will be an update
--> Processing Dependency: libsemanage = 2.5-8.el7 for package: libsemanage-python-2.5-8.el7.x86_64
--> Running transaction check
---> Package libsemanage.x86_64 0:2.5-4.el7 will be updated
---> Package libsemanage.x86_64 0:2.5-8.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
 Package                            Arch              Version                                        Repository         Size
=============================================================================================================================
Installing:
 docker                             x86_64            2:1.12.6-61.git85d7426.el7.centos              extras             15 M
Installing for dependencies:
 container-selinux                  noarch            2:2.28-1.git85ce147.el7                        extras             29 k
 container-storage-setup            noarch            0.7.0-1.git4ca59c5.el7                         extras             32 k
 docker-client                      x86_64            2:1.12.6-61.git85d7426.el7.centos              extras            3.4 M
 docker-common                      x86_64            2:1.12.6-61.git85d7426.el7.centos              extras             80 k
 oci-register-machine               x86_64            1:0-3.13.gitcd1e331.el7                        extras            1.1 M
 oci-systemd-hook                   x86_64            1:0.1.14-1.git1ba44c6.el7                      extras             32 k
 oci-umount                         x86_64            2:2.0.0-1.git299e781.el7                       extras             27 k
 skopeo-containers                  x86_64            1:0.1.24-1.dev.git28d4e08.el7                  extras            8.5 k
Updating for dependencies:
 libsemanage                        x86_64            2.5-8.el7                                      base              145 k
 libsemanage-python                 x86_64            2.5-8.el7                                      base              104 k
 policycoreutils                    x86_64            2.5-17.1.el7                                   base              858 k
 policycoreutils-python             x86_64            2.5-17.1.el7                                   base              446 k

Transaction Summary
=============================================================================================================================
Install  1 Package  (+8 Dependent packages)
Upgrade             ( 4 Dependent packages)

Total size: 21 M
Total download size: 19 M
Is this ok [y/d/N]: y
Downloading packages:
(1/9): container-selinux-2.28-1.git85ce147.el7.noarch.rpm                                             |  29 kB  00:00:00     
(2/9): container-storage-setup-0.7.0-1.git4ca59c5.el7.noarch.rpm                                      |  32 kB  00:00:00     
(3/9): oci-register-machine-0-3.13.gitcd1e331.el7.x86_64.rpm                                          | 1.1 MB  00:00:00     
(4/9): oci-umount-2.0.0-1.git299e781.el7.x86_64.rpm                                                   |  27 kB  00:00:00     
(5/9): oci-systemd-hook-0.1.14-1.git1ba44c6.el7.x86_64.rpm                                            |  32 kB  00:00:00     
(6/9): docker-client-1.12.6-61.git85d7426.el7.centos.x86_64.rpm                                       | 3.4 MB  00:00:00     
(7/9): skopeo-containers-0.1.24-1.dev.git28d4e08.el7.x86_64.rpm                                       | 8.5 kB  00:00:00     
(8/9): docker-1.12.6-61.git85d7426.el7.centos.x86_64.rpm                                              |  15 MB  00:00:00     
(9/9): docker-common-1.12.6-61.git85d7426.el7.centos.x86_64.rpm                                       |  80 kB  00:00:00     
-----------------------------------------------------------------------------------------------------------------------------
Total                                                                                         20 MB/s |  19 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : libsemanage-2.5-8.el7.x86_64                                                                             1/17 
  Updating   : policycoreutils-2.5-17.1.el7.x86_64                                                                      2/17 
  Updating   : libsemanage-python-2.5-8.el7.x86_64                                                                      3/17 
  Updating   : policycoreutils-python-2.5-17.1.el7.x86_64                                                               4/17 
  Installing : 2:container-selinux-2.28-1.git85ce147.el7.noarch                                                         5/17 
setsebool:  SELinux is disabled.
  Installing : 1:oci-register-machine-0-3.13.gitcd1e331.el7.x86_64                                                      6/17 
  Installing : 1:skopeo-containers-0.1.24-1.dev.git28d4e08.el7.x86_64                                                   7/17 
  Installing : container-storage-setup-0.7.0-1.git4ca59c5.el7.noarch                                                    8/17 
  Installing : 2:oci-umount-2.0.0-1.git299e781.el7.x86_64                                                               9/17 
  Installing : 1:oci-systemd-hook-0.1.14-1.git1ba44c6.el7.x86_64                                                       10/17 
  Installing : 2:docker-common-1.12.6-61.git85d7426.el7.centos.x86_64                                                  11/17 
  Installing : 2:docker-client-1.12.6-61.git85d7426.el7.centos.x86_64                                                  12/17 
  Installing : 2:docker-1.12.6-61.git85d7426.el7.centos.x86_64                                                         13/17 
  Cleanup    : policycoreutils-python-2.5-8.el7.x86_64                                                                 14/17 
  Cleanup    : libsemanage-python-2.5-4.el7.x86_64                                                                     15/17 
  Cleanup    : policycoreutils-2.5-8.el7.x86_64                                                                        16/17 
  Cleanup    : libsemanage-2.5-4.el7.x86_64                                                                            17/17 
  Verifying  : policycoreutils-2.5-17.1.el7.x86_64                                                                      1/17 
  Verifying  : 2:docker-1.12.6-61.git85d7426.el7.centos.x86_64                                                          2/17 
  Verifying  : 2:docker-common-1.12.6-61.git85d7426.el7.centos.x86_64                                                   3/17 
  Verifying  : 1:oci-systemd-hook-0.1.14-1.git1ba44c6.el7.x86_64                                                        4/17 
  Verifying  : 2:oci-umount-2.0.0-1.git299e781.el7.x86_64                                                               5/17 
  Verifying  : policycoreutils-python-2.5-17.1.el7.x86_64                                                               6/17 
  Verifying  : container-storage-setup-0.7.0-1.git4ca59c5.el7.noarch                                                    7/17 
  Verifying  : 1:skopeo-containers-0.1.24-1.dev.git28d4e08.el7.x86_64                                                   8/17 
  Verifying  : libsemanage-python-2.5-8.el7.x86_64                                                                      9/17 
  Verifying  : libsemanage-2.5-8.el7.x86_64                                                                            10/17 
  Verifying  : 2:container-selinux-2.28-1.git85ce147.el7.noarch                                                        11/17 
  Verifying  : 1:oci-register-machine-0-3.13.gitcd1e331.el7.x86_64                                                     12/17 
  Verifying  : 2:docker-client-1.12.6-61.git85d7426.el7.centos.x86_64                                                  13/17 
  Verifying  : policycoreutils-python-2.5-8.el7.x86_64                                                                 14/17 
  Verifying  : policycoreutils-2.5-8.el7.x86_64                                                                        15/17 
  Verifying  : libsemanage-2.5-4.el7.x86_64                                                                            16/17 
  Verifying  : libsemanage-python-2.5-4.el7.x86_64                                                                     17/17 

Installed:
  docker.x86_64 2:1.12.6-61.git85d7426.el7.centos                                                                            

Dependency Installed:
  container-selinux.noarch 2:2.28-1.git85ce147.el7             container-storage-setup.noarch 0:0.7.0-1.git4ca59c5.el7      
  docker-client.x86_64 2:1.12.6-61.git85d7426.el7.centos       docker-common.x86_64 2:1.12.6-61.git85d7426.el7.centos       
  oci-register-machine.x86_64 1:0-3.13.gitcd1e331.el7          oci-systemd-hook.x86_64 1:0.1.14-1.git1ba44c6.el7            
  oci-umount.x86_64 2:2.0.0-1.git299e781.el7                   skopeo-containers.x86_64 1:0.1.24-1.dev.git28d4e08.el7       

Dependency Updated:
  libsemanage.x86_64 0:2.5-8.el7                libsemanage-python.x86_64 0:2.5-8.el7  policycoreutils.x86_64 0:2.5-17.1.el7 
  policycoreutils-python.x86_64 0:2.5-17.1.el7 

Complete!
[root@dg12c3 ~]# 
[root@dg12c3 ~]# rpm -qa | grep docker
docker-common-1.12.6-61.git85d7426.el7.centos.x86_64
docker-client-1.12.6-61.git85d7426.el7.centos.x86_64
docker-1.12.6-61.git85d7426.el7.centos.x86_64
[root@dg12c3 ~]# 

配置国内源:

[root@dg12c3 ~]# cat /etc/docker/daemon.json 
{}
[root@dg12c3 ~]# 
[root@dg12c3 ~]# vi /etc/docker/daemon.json 
[root@dg12c3 ~]# cat /etc/docker/daemon.json 
{
    "registry-mirrors": [
        "http://3****.m.daocloud.io"
    ],
    "insecure-registries": []
}
[root@dg12c3 ~]# 

创建用户:

[root@dg12c3 ~]# id elastic
id: elastic: no such user
[root@dg12c3 ~]# 
[root@dg12c3 ~]# useradd -G dockerroot elastic
[root@dg12c3 ~]# 
[root@dg12c3 ~]# passwd elastic
Changing password for user elastic.
New password: 
BAD PASSWORD: The password is shorter than 8 characters
Retype new password: 
passwd: all authentication tokens updated successfully.
[root@dg12c3 ~]# 
[root@dg12c3 ~]# 
[root@dg12c3 elastic_cloud]# cat /etc/group | grep adm
adm:x:4:
asmadmin:x:504:grid
[root@dg12c3 elastic_cloud]# cat /etc/group | grep dialout
dialout:x:18:
[root@dg12c3 elastic_cloud]# cat /etc/group | grep cdrom
cdrom:x:11:
[root@dg12c3 elastic_cloud]# cat /etc/group | grep floppy
floppy:x:19:
[root@dg12c3 elastic_cloud]# cat /etc/group | grep sudo
[root@dg12c3 elastic_cloud]# cat /etc/group | grep audio
audio:x:63:
[root@dg12c3 elastic_cloud]# cat /etc/group | grep dip
dip:x:40:
[root@dg12c3 elastic_cloud]# cat /etc/group | grep video
video:x:39:
[root@dg12c3 elastic_cloud]# cat /etc/group | grep plugdev
[root@dg12c3 elastic_cloud]# cat /etc/group | grep netdev
[root@dg12c3 elastic_cloud]# cat /etc/group | grep libvirt
libvirt:x:990:
[root@dg12c3 elastic_cloud]# cat /etc/group | grep docker
dockerroot:x:497:elastic
docker:x:496:
[root@dg12c3 elastic_cloud]# 
[root@dg12c3 elastic_cloud]# usermod -G adm,dialout,cdrom,floppy,audio,dip,video,libvirt,docker elastic
[root@dg12c3 elastic_cloud]# 
[root@dg12c3 elastic_cloud]# id elastic
uid=1010(elastic) gid=1010(elastic) groups=1010(elastic),4(adm),11(cdrom),18(dialout),19(floppy),39(video),63(audio),40(dip),990(libvirt),496(docker)
[root@dg12c3 elastic_cloud]# 

网络:
将80和443端口空出来:

[root@dg12c3 ~]# 
[root@dg12c3 ~]# netstat -tupln | grep 80
tcp6       0      0 :::18080                :::*                    LISTEN      15434/jsvc.exec     
[root@dg12c3 ~]# 
[root@dg12c3 ~]# netstat -tupln | grep 443
tcp6       0      0 :::18443                :::*                    LISTEN      15434/jsvc.exec     
[root@dg12c3 ~]# 

Java支持:

[root@dg12c3 ~]# java -version
openjdk version "1.8.0_102"
OpenJDK Runtime Environment (build 1.8.0_102-b14)
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)
[root@dg12c3 ~]# 

下载安装脚本:

[root@dg12c3 ~]# cd /software/elastic_cloud/
[root@dg12c3 elastic_cloud]# 
[root@dg12c3 elastic_cloud]# ls -ltr
total 0
[root@dg12c3 elastic_cloud]# 
[root@dg12c3 elastic_cloud]# export LANG=utf8
[root@dg12c3 elastic_cloud]# 
[root@dg12c3 elastic_cloud]# wget https://download.elastic.co/cloud/elastic-cloud-enterprise.sh
--2017-11-26 20:56:44--  https://download.elastic.co/cloud/elastic-cloud-enterprise.sh
Resolving download.elastic.co (download.elastic.co)... 23.21.118.61, 54.243.108.41, 54.225.188.6, ...
Connecting to download.elastic.co (download.elastic.co)|23.21.118.61|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 45914 (45K) [binary/octet-stream]
Saving to: 'elastic-cloud-enterprise.sh'

100%[===================================================================================>] 45,914      10.5KB/s   in 4.3s   

2017-11-26 20:56:51 (10.5 KB/s) - 'elastic-cloud-enterprise.sh' saved [45914/45914]

[root@dg12c3 elastic_cloud]# 
[root@dg12c3 elastic_cloud]# ls -ltr
total 48
-rw-r--r-- 1 root root 45914 Nov 14 23:39 elastic-cloud-enterprise.sh
[root@dg12c3 elastic_cloud]# 

看看内容:

[root@dg12c3 elastic_cloud]# cat elastic-cloud-enterprise.sh | wc -l
925
[root@dg12c3 elastic_cloud]# 
[root@dg12c3 elastic_cloud]# 
[root@dg12c3 elastic_cloud]# cat elastic-cloud-enterprise.sh | head -n 28
#!/bin/bash
set -e

# ECE version
CLOUD_ENTERPRISE_VERSION=1.1.0

# Default Docker registry
DOCKER_REGISTRY=docker.elastic.co

# Default Docker repository for ECE image
ECE_DOCKER_REPOSITORY=cloud-enterprise

# Default host storage path
HOST_STORAGE_PATH=/mnt/data/elastic

# Get from the client or assume a default location
HOST_DOCKER_HOST=${DOCKER_HOST:-/var/run/docker.sock}


# Colour codes
YELLOW='\033[0;33m'
RED='\033[0;31m'
NC='\033[0m' # No Color

# Exit codes
GENERAL_ERROR_EXIT_CODE=1         # General errors. All errors other than the ones related to either argument or command
UNKNOWN_COMMAND_EXIT_CODE=2       # Unknown command
INVALID_ARGUMENT_EXIT_CODE=3      # Unknown argument or argument's value is not specified
[root@dg12c3 elastic_cloud]# 

安装:

[root@dg12c3 elastic_cloud]# sh elastic-cloud-enterprise.sh 
================================================================================================
 Elastic Cloud Enterprise Installation Script v1.1.0
================================================================================================

elastic-cloud-enterprise.sh [COMMAND] {OPTIONS}

Available commands:
  install                        Installs Elastic Cloud Enterprise on the host
                                 This is the default command

  upgrade                        Upgrades the Elastic Cloud Enterprise installation to 1.1.0

  reset-adminconsole-password    Resets the password for an administration console user

  add-stack-version              Make a new Elastic Stack version available

  set-logging-and-metrics-policy Sets the index retention period for logging and metrics indices

For available arguments run command with '--help' argument
================================================================================================
[root@dg12c3 elastic_cloud]# 

以elastic用户安装:
安装前,一定要配置国内源,否则会非常慢。

[root@dg12c3 elastic_cloud]# su - elastic 
Last login: Sun Nov 26 21:04:19 CST 2017 on pts/5
[elastic@dg12c3 ~]$ 
[elastic@dg12c3 ~]$ cd /software/elastic_cloud/
[elastic@dg12c3 elastic_cloud]$ 
[elastic@dg12c3 elastic_cloud]$ id
uid=1010(elastic) gid=1010(elastic) groups=1010(elastic),497(dockerroot)
[elastic@dg12c3 elastic_cloud]$ 
[elastic@dg12c3 elastic_cloud]$ sh elastic-cloud-enterprise.sh install

(... ... 下载时间非常长。)

上面这一步会涉及到环境检查,你可能会遇到这样的问题:

[elastic@dg12c3 elastic_cloud]$ sh elastic-cloud-enterprise.sh install
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elastic Cloud Enterprise Installer 

Start setting up a new Elastic Cloud Enterprise installation by installing the software on your first host. 
This first host becomes the initial coordinator and provides access to the Cloud UI, where you can manage your installation. 
To learn more about the options you can specify, see the documentation. 

NOTE: If you want to add this host to an existing installation, please specify the --coordinator-host and --roles-token flags
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

-- Verifying Prerequisites --
Checking host storage path... PASSED
Checking docker version... PASSED
 - Elastic Cloud Enterprise is certified for 1.11. but 17.06.2-ee-5 is currently installed
Checking internal ip connectivity... PASSED
Checking OS settings... FAILED
  OS setting 'vm.max_map_count' should be >= 262144, currently 65530
Checking OS kernel version... PASSED
 - OS kernel version is 3.10.0-514.el7.x86_64 but we recommend 4.4.
Checking Minimum required memory... FAILED
  Memory capacity avaliable on host [6786], doesn't meet minimum memory requirements [8192]
Checking Kernel cgroup.memory setting... PASSED
 - OS setting 'cgroup.memory' should be set to cgroup.memory=nokmem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Errors have caused Elastic Cloud Enterprise installation to fail
Some of the prerequisites failed: [OS settings, Minimum required memory], please fix before continuing
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[elastic@dg12c3 elastic_cloud]$ 

修正 – 内核参数部分:

[root@dg12c3 ~]# sysctl -a | grep max_map_count
vm.max_map_count = 65530
[root@dg12c3 ~]# 
[root@dg12c3 ~]# cat /etc/sysctl.conf | grep max_map_count
[root@dg12c3 ~]# 
[root@dg12c3 ~]# sysctl -a | grep max_map_count >> /etc/sysctl.conf 
[root@dg12c3 ~]# 
[root@dg12c3 ~]# vi /etc/sysctl.conf 
[root@dg12c3 ~]# cat /etc/sysctl.conf | grep max_map_count
vm.max_map_count = 262144
[root@dg12c3 ~]# 
[root@dg12c3 ~]# sysctl -p
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4185946112
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
kernel.panic_on_oops = 1
net.ipv4.conf.ens32.rp_filter = 0
vm.max_map_count = 262144
[root@dg12c3 ~]# 
[root@dg12c3 ~]# sysctl -a | grep max_map_count
vm.max_map_count = 262144
[root@dg12c3 ~]# 

当前内存:

[elastic@dg12c3 elastic_cloud]$ free -m
              total        used        free      shared  buff/cache   available
Mem:           7984        3235        2969          21        1778        4391
Swap:          6143         402        5741
[elastic@dg12c3 elastic_cloud]$ 

扩大内存后查看:

[root@dg12c3 ~]# free -m
              total        used        free      shared  buff/cache   available
Mem:          16044        1125       14311           8         607       14600
Swap:          6143           0        6143
[root@dg12c3 ~]# 

然后再执行安装试试:

[root@dg12c3 ~]# su - elastic
Last login: Mon Nov 27 08:53:11 CST 2017 on pts/1
[elastic@dg12c3 ~]$ 
[elastic@dg12c3 ~]$ cd /software/elastic_cloud/
[elastic@dg12c3 elastic_cloud]$ ls
elastic-cloud-enterprise.sh  nohup.out
[elastic@dg12c3 elastic_cloud]$ 
[elastic@dg12c3 elastic_cloud]$ sh elastic-cloud-enterprise.sh install
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elastic Cloud Enterprise Installer 

Start setting up a new Elastic Cloud Enterprise installation by installing the software on your first host. 
This first host becomes the initial coordinator and provides access to the Cloud UI, where you can manage your installation. 
To learn more about the options you can specify, see the documentation. 

NOTE: If you want to add this host to an existing installation, please specify the --coordinator-host and --roles-token flags
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

-- Verifying Prerequisites --
Checking host storage path... PASSED
Checking docker version... PASSED
 - Elastic Cloud Enterprise is certified for 1.11. but 17.06.2-ee-5 is currently installed
Checking internal ip connectivity... PASSED
Checking OS settings... PASSED
Checking OS kernel version... PASSED
 - OS kernel version is 3.10.0-514.el7.x86_64 but we recommend 4.4.
Checking Minimum required memory... PASSED
Checking Kernel cgroup.memory setting... PASSED
 - OS setting 'cgroup.memory' should be set to cgroup.memory=nokmem
-- Completed Verifying Prerequisites -- 

- Running Bootstrap container
- Monitoring bootstrap process
- Loaded bootstrap settings {}
- Starting local runner {}
- Started local runner {}
- Waiting for runner container node {}
- Runner container node detected {}
- Waiting for coordinator candidate {}
- Detected coordinator candidate {}
- Detected pending coordinator, promoting coordinator {}
- Coordinator accepted {}
- Storing current platform version: 1.1.0 {}
- Storing Elastic Stack versions: [2.4.6,5.6.4,6.0.0] {}
- Creating Admin Console Elasticsearch backend {}
- Applying Admin Console Elasticsearch index templates {}
- Updating dynamic Admin Console settings with Elasticsearch cluster information {}
- Starting reindexing Admin Console data {}
- Creating Logging and Metrics Cluster {}
- Enabling Kibana for Logging and Metrics Cluster {}
- Unhandled error. {}
-- An error has occurred in bootstrap process. Please examine logs --
java.util.concurrent.TimeoutException: Futures timed out after [10 seconds]
        at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:219)
        at scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:223)
        at scala.concurrent.Await$$anonfun$result$1.apply(package.scala:190)
        at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:53)
        at scala.concurrent.Await$.result(package.scala:190)
        at no.found.bootstrap.BootstrapInitial$$anonfun$bootstrapLoggingMetricsCluster$5$$anonfun$apply$7$$anonfun$apply$9$$anonfun$apply$11.apply(BootstrapInitial.scala:1071)
        at no.found.bootstrap.BootstrapInitial$$anonfun$bootstrapLoggingMetricsCluster$5$$anonfun$apply$7$$anonfun$apply$9$$anonfun$apply$11.apply(BootstrapInitial.scala:1058)
        at scala.collection.immutable.List.foreach(List.scala:381)
        at no.found.bootstrap.BootstrapInitial$$anonfun$bootstrapLoggingMetricsCluster$5$$anonfun$apply$7$$anonfun$apply$9.apply(BootstrapInitial.scala:1058)
        at no.found.bootstrap.BootstrapInitial$$anonfun$bootstrapLoggingMetricsCluster$5$$anonfun$apply$7$$anonfun$apply$9.apply(BootstrapInitial.scala:1057)
        at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:733)
        at scala.collection.immutable.List.foreach(List.scala:381)
        at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:732)
        at no.found.bootstrap.BootstrapInitial$$anonfun$bootstrapLoggingMetricsCluster$5$$anonfun$apply$7.apply(BootstrapInitial.scala:1057)
        at no.found.bootstrap.BootstrapInitial$$anonfun$bootstrapLoggingMetricsCluster$5$$anonfun$apply$7.apply(BootstrapInitial.scala:1056)
        at scala.collection.immutable.List.foreach(List.scala:381)
        at no.found.bootstrap.BootstrapInitial$$anonfun$bootstrapLoggingMetricsCluster$5.apply(BootstrapInitial.scala:1056)
        at no.found.bootstrap.BootstrapInitial$$anonfun$bootstrapLoggingMetricsCluster$5.apply(BootstrapInitial.scala:1055)
        at scala.collection.immutable.List.foreach(List.scala:381)
        at no.found.bootstrap.BootstrapInitial.bootstrapLoggingMetricsCluster(BootstrapInitial.scala:1055)
        at no.found.bootstrap.BootstrapInitial.bootstrap(BootstrapInitial.scala:644)
        at no.found.bootstrap.BootstrapInitial$.delayedEndpoint$no$found$bootstrap$BootstrapInitial$1(BootstrapInitial.scala:1207)
        at no.found.bootstrap.BootstrapInitial$delayedInit$body.apply(BootstrapInitial.scala:1201)
        at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
        at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
        at scala.App$$anonfun$main$1.apply(App.scala:76)
        at scala.App$$anonfun$main$1.apply(App.scala:76)
        at scala.collection.immutable.List.foreach(List.scala:381)
        at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
        at scala.App$class.main(App.scala:76)
        at no.found.bootstrap.BootstrapInitial$.main(BootstrapInitial.scala:1201)
        at no.found.bootstrap.BootstrapInitial.main(BootstrapInitial.scala)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Errors have caused Elastic Cloud Enterprise installation to fail - Please check logs 
  Node type - initial
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elastic Cloud Enterprise installation completed successfully

Ready to copy down some important information and keep it safe?

To access the Cloud UI:
http://10.158.1.98:12400
https://10.158.1.98:12443

Root username: root
Password: uh509aH0QaTZaVti7AyAe9nisCifsV0SG8fhq1kRKYP
Read-only username: readonly
Password: irScwSxuNwTdG6M3Ulnf8UGF8U7TLMNfTqvOdlLwOPC

Roles tokens for adding hosts to this installation:
Basic token (Don't forget to assign roles to new runners in the Cloud UI after installation.)
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI5MGViODdlOS0zODY4LTQ4YjAtYTkzNC01MzU2M2IzMjQyODUiLCJyb2xlcyI6W10sImlzcyI6ImN1cnJlbnQiLCJwZXJzaXN0ZW50Ijp0cnVlfQ.QxhgSHq7ZgdmMibGh8xDQ5ZsGKffFDa_1j6DAXoC6rs

Allocator token (Simply need more capacity to run Elasticsearch clusters and Kibana? Use this token.)
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhMThhMTA3Mi1mMTdiLTRlYWUtOGJkNy0zNTQ3YjZhN2RlMTciLCJyb2xlcyI6WyJhbGxvY2F0b3IiXSwiaXNzIjoiY3VycmVudCIsInBlcnNpc3RlbnQiOnRydWV9.vFkzT8KIuI9YHxp2cUBjCVsXZmdGiAKgbu04omqcagg

Emergency token (Lost all of your coordinators? This token will save your installation.)
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI0NWU2ZDBkNi03ODVjLTQzMTctOTU2Yy0wOTZjMjNhODliZDMiLCJyb2xlcyI6WyJjb29yZGluYXRvciIsInByb3h5IiwiZGlyZWN0b3IiXSwiaXNzIjoiY3VycmVudCIsInBlcnNpc3RlbnQiOnRydWV9.aLAlYVZ4Xe83VHTmaHW4ya7sZGf6uVFnneSUTFFKUrc

To add hosts to this Elastic Cloud Enterprise installation, include the following parameters when you install the software 
on additional hosts: --coordinator-host 10.158.1.98 --roles-token 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI5MGViODdlOS0zODY4LTQ4YjAtYTkzNC01MzU2M2IzMjQyODUiLCJyb2xlcyI6W10sImlzcyI6ImN1cnJlbnQiLCJwZXJzaXN0ZW50Ijp0cnVlfQ.QxhgSHq7ZgdmMibGh8xDQ5ZsGKffFDa_1j6DAXoC6rs'

These instructions use the basic token, but you can substitute one of the other tokens provided. You can also generate your own tokens. For example:
curl -H 'Content-Type: application/json' -u root:uh509aH0QaTZaVti7AyAe9nisCifsV0SG8fhq1kRKYP http://10.158.1.98:12300/api/v1/platform/configuration/security/enrollment-tokens -d '{ "persistent": true, "roles": [ "allocator"] }'

To learn more about generating tokens, see "Generate Role Tokens" in the documentation.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



^C
[elastic@dg12c3 elastic_cloud]$ 

网页访问:http://10.158.1.98:12400

——————————————
Done。

说点什么

avatar

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

  Subscribe  
提醒