Elastic Stack之Elasticsearch 5.6.12 集群部署实战
作者:尹正杰
版权声明:原创作品,谢绝转载!否则将追究法律责任。
一.下载ElasticSearch
1>.查看ElasticSearch的发型版本(https://www.elastic.co/downloads/past-releases)
2>.选择目前生产环境用的较多的版本
3>.下载ElasticSearch(https://www.elastic.co/downloads/past-releases/elasticsearch-5-6-12)
[root@node101 ~]# [root@node101 ~]# yum -y install wget Loaded plugins: fastestmirror base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/4): base/7/x86_64/group_gz | 166 kB 00:00:00 (2/4): base/7/x86_64/primary_db | 6.0 MB 00:00:00 (3/4): extras/7/x86_64/primary_db | 180 kB 00:00:00 (4/4): updates/7/x86_64/primary_db | 2.5 MB 00:01:02 Determining fastest mirrors * base: mirrors.huaweicloud.com * extras: ftp.sjtu.edu.cn * updates: mirrors.nwsuaf.edu.cn Resolving Dependencies --> Running transaction check ---> Package wget.x86_64 0:1.14-18.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================================================================== Installing: wget x86_64 1.14-18.el7 base 547 k Transaction Summary =================================================================================================================================================================================== Install 1 Package Total download size: 547 k Installed size: 2.0 M Downloading packages: warning: /var/cache/yum/x86_64/7/base/packages/wget-1.14-18.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Public key for wget-1.14-18.el7.x86_64.rpm is not installed wget-1.14-18.el7.x86_64.rpm | 547 kB 00:00:00 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-2.1511.el7.centos.2.10.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : wget-1.14-18.el7.x86_64 1/1 Verifying : wget-1.14-18.el7.x86_64 1/1 Installed: wget.x86_64 0:1.14-18.el7 Complete! [root@node101 ~]#
[root@node101 ~]# [root@node101 ~]# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.12.rpm --2019-03-10 15:51:31-- https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.12.rpm Resolving artifacts.elastic.co (artifacts.elastic.co)... 151.101.110.222, 2a04:4e42:1a::734 Connecting to artifacts.elastic.co (artifacts.elastic.co)|151.101.110.222|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 33775471 (32M) [application/octet-stream] Saving to: ‘elasticsearch-5.6.12.rpm’ 100%[=========================================================================================================================================>] 33,775,471 85.0KB/s in 5m 8s 2019-03-10 15:56:43 (107 KB/s) - ‘elasticsearch-5.6.12.rpm’ saved [33775471/33775471] [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# ll -h total 33M -rw-r--r--. 1 root root 33M Sep 19 03:12 elasticsearch-5.6.12.rpm [root@node101 ~]#
二.安装ElasticSearch
1>.安装openjdk环境
[root@node101 ~]# [root@node101 ~]# yum -y install java-1.8.0-openjdk-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.huaweicloud.com * extras: ftp.sjtu.edu.cn * updates: mirrors.nwsuaf.edu.cn Resolving Dependencies --> Running transaction check ---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.201.b09-2.el7_6 will be installed --> Processing Dependency: java-1.8.0-openjdk(x86-64) = 1:1.8.0.201.b09-2.el7_6 for package: 1:java-1.8.0-openjdk-devel-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: chkconfig >= 1.7 for package: 1:java-1.8.0-openjdk-devel-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: chkconfig >= 1.7 for package: 1:java-1.8.0-openjdk-devel-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: libjvm.so()(64bit) for package: 1:java-1.8.0-openjdk-devel-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: libjava.so()(64bit) for package: 1:java-1.8.0-openjdk-devel-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: libX11.so.6()(64bit) for package: 1:java-1.8.0-openjdk-devel-1.8.0.201.b09-2.el7_6.x86_64 --> Running transaction check ---> Package chkconfig.x86_64 0:1.3.61-5.el7 will be updated ---> Package chkconfig.x86_64 0:1.7.4-1.el7 will be an update ---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.201.b09-2.el7_6 will be installed --> Processing Dependency: xorg-x11-fonts-Type1 for package: 1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: libpng15.so.15(PNG15_0)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: libXcomposite(x86-64) for package: 1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: gtk2(x86-64) for package: 1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: fontconfig(x86-64) for package: 1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: libpng15.so.15()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: libjpeg.so.62()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: libgif.so.4()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: libXtst.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: libXrender.so.1()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: libXi.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: libXext.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 ---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.201.b09-2.el7_6 will be installed --> Processing Dependency: tzdata-java >= 2015d for package: 1:java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: nss-softokn(x86-64) >= 3.36.0 for package: 1:java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: nss(x86-64) >= 3.36.0 for package: 1:java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: copy-jdk-configs >= 3.3 for package: 1:java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: pcsc-lite-libs(x86-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: lksctp-tools(x86-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: jpackage-utils for package: 1:java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64 --> Processing Dependency: cups-libs(x86-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64 ---> Package libX11.x86_64 0:1.6.5-2.el7 will be installed --> Processing Dependency: libX11-common >= 1.6.5-2.el7 for package: libX11-1.6.5-2.el7.x86_64 --> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.5-2.el7.x86_64 --> Running transaction check ---> Package copy-jdk-configs.noarch 0:3.3-10.el7_5 will be installed ---> Package cups-libs.x86_64 1:1.6.3-35.el7 will be installed ---> Package fontconfig.x86_64 0:2.13.0-4.3.el7 will be installed --> Processing Dependency: freetype >= 2.8-7 for package: fontconfig-2.13.0-4.3.el7.x86_64 --> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.13.0-4.3.el7.x86_64 --> Processing Dependency: dejavu-sans-fonts for package: fontconfig-2.13.0-4.3.el7.x86_64 ---> Package giflib.x86_64 0:4.1.6-9.el7 will be installed --> Processing Dependency: libSM.so.6()(64bit) for package: giflib-4.1.6-9.el7.x86_64 --> Processing Dependency: libICE.so.6()(64bit) for package: giflib-4.1.6-9.el7.x86_64 ---> Package gtk2.x86_64 0:2.24.31-1.el7 will be installed --> Processing Dependency: pango >= 1.20.0-1 for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: libtiff >= 3.6.1 for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: libXrandr >= 1.2.99.4-2 for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: atk >= 1.29.4-2 for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: hicolor-icon-theme for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: gtk-update-icon-cache for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: libpangoft2-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: libpangocairo-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: libpango-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: libgdk_pixbuf-2.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: libcairo.so.2()(64bit) for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: libatk-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: libXrandr.so.2()(64bit) for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: libXinerama.so.1()(64bit) for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: libXfixes.so.3()(64bit) for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: libXdamage.so.1()(64bit) for package: gtk2-2.24.31-1.el7.x86_64 --> Processing Dependency: libXcursor.so.1()(64bit) for package: gtk2-2.24.31-1.el7.x86_64 ---> Package javapackages-tools.noarch 0:3.4.1-11.el7 will be installed --> Processing Dependency: python-javapackages = 3.4.1-11.el7 for package: javapackages-tools-3.4.1-11.el7.noarch --> Processing Dependency: libxslt for package: javapackages-tools-3.4.1-11.el7.noarch ---> Package libX11-common.noarch 0:1.6.5-2.el7 will be installed ---> Package libXcomposite.x86_64 0:0.4.4-4.1.el7 will be installed ---> Package libXext.x86_64 0:1.3.3-3.el7 will be installed ---> Package libXi.x86_64 0:1.7.9-1.el7 will be installed ---> Package libXrender.x86_64 0:0.9.10-1.el7 will be installed ---> Package libXtst.x86_64 0:1.2.3-1.el7 will be installed ---> Package libjpeg-turbo.x86_64 0:1.2.90-6.el7 will be installed ---> Package libpng.x86_64 2:1.5.13-7.el7_2 will be installed ---> Package libxcb.x86_64 0:1.13-1.el7 will be installed --> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.13-1.el7.x86_64 ---> Package lksctp-tools.x86_64 0:1.0.17-2.el7 will be installed ---> Package nss.x86_64 0:3.19.1-18.el7 will be updated --> Processing Dependency: nss = 3.19.1-18.el7 for package: nss-sysinit-3.19.1-18.el7.x86_64 --> Processing Dependency: nss(x86-64) = 3.19.1-18.el7 for package: nss-tools-3.19.1-18.el7.x86_64 ---> Package nss.x86_64 0:3.36.0-7.1.el7_6 will be an update --> Processing Dependency: nss-util >= 3.36.0-1.1 for package: nss-3.36.0-7.1.el7_6.x86_64 --> Processing Dependency: nspr >= 4.19.0 for package: nss-3.36.0-7.1.el7_6.x86_64 --> Processing Dependency: nss-pem(x86-64) for package: nss-3.36.0-7.1.el7_6.x86_64 --> Processing Dependency: libnssutil3.so(NSSUTIL_3.31)(64bit) for package: nss-3.36.0-7.1.el7_6.x86_64 --> Processing Dependency: libnssutil3.so(NSSUTIL_3.24)(64bit) for package: nss-3.36.0-7.1.el7_6.x86_64 --> Processing Dependency: libnssutil3.so(NSSUTIL_3.21)(64bit) for package: nss-3.36.0-7.1.el7_6.x86_64 ---> Package nss-softokn.x86_64 0:3.16.2.3-13.el7_1 will be updated ---> Package nss-softokn.x86_64 0:3.36.0-5.el7_5 will be an update --> Processing Dependency: nss-softokn-freebl(x86-64) >= 3.36.0-5.el7_5 for package: nss-softokn-3.36.0-5.el7_5.x86_64 ---> Package pcsc-lite-libs.x86_64 0:1.8.8-8.el7 will be installed ---> Package tzdata-java.noarch 0:2018i-1.el7 will be installed ---> Package xorg-x11-fonts-Type1.noarch 0:7.5-9.el7 will be installed --> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch --> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch --> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch --> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch --> Running transaction check ---> Package atk.x86_64 0:2.28.1-1.el7 will be installed ---> Package cairo.x86_64 0:1.15.12-3.el7 will be installed --> Processing Dependency: libpixman-1.so.0()(64bit) for package: cairo-1.15.12-3.el7.x86_64 --> Processing Dependency: libGL.so.1()(64bit) for package: cairo-1.15.12-3.el7.x86_64 --> Processing Dependency: libEGL.so.1()(64bit) for package: cairo-1.15.12-3.el7.x86_64 ---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed --> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch ---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed ---> Package freetype.x86_64 0:2.4.11-11.el7 will be updated ---> Package freetype.x86_64 0:2.8-12.el7_6.1 will be an update ---> Package gdk-pixbuf2.x86_64 0:2.36.12-3.el7 will be installed --> Processing Dependency: glib2(x86-64) >= 2.48.0 for package: gdk-pixbuf2-2.36.12-3.el7.x86_64 --> Processing Dependency: libjasper.so.1()(64bit) for package: gdk-pixbuf2-2.36.12-3.el7.x86_64 ---> Package gtk-update-icon-cache.x86_64 0:3.22.30-3.el7 will be installed ---> Package hicolor-icon-theme.noarch 0:0.12-7.el7 will be installed ---> Package libICE.x86_64 0:1.0.9-9.el7 will be installed ---> Package libSM.x86_64 0:1.2.2-2.el7 will be installed ---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed ---> Package libXcursor.x86_64 0:1.1.15-1.el7 will be installed ---> Package libXdamage.x86_64 0:1.1.4-4.1.el7 will be installed ---> Package libXfixes.x86_64 0:5.0.3-1.el7 will be installed ---> Package libXinerama.x86_64 0:1.1.3-2.1.el7 will be installed ---> Package libXrandr.x86_64 0:1.5.1-2.el7 will be installed ---> Package libtiff.x86_64 0:4.0.3-27.el7_3 will be installed --> Processing Dependency: libjbig.so.2.0()(64bit) for package: libtiff-4.0.3-27.el7_3.x86_64 ---> Package libxslt.x86_64 0:1.1.28-5.el7 will be installed ---> Package nspr.x86_64 0:4.10.8-2.el7_1 will be updated ---> Package nspr.x86_64 0:4.19.0-1.el7_5 will be an update ---> Package nss-pem.x86_64 0:1.0.3-5.el7 will be installed ---> Package nss-softokn-freebl.x86_64 0:3.16.2.3-13.el7_1 will be updated ---> Package nss-softokn-freebl.x86_64 0:3.36.0-5.el7_5 will be an update ---> Package nss-sysinit.x86_64 0:3.19.1-18.el7 will be updated ---> Package nss-sysinit.x86_64 0:3.36.0-7.1.el7_6 will be an update ---> Package nss-tools.x86_64 0:3.19.1-18.el7 will be updated ---> Package nss-tools.x86_64 0:3.36.0-7.1.el7_6 will be an update ---> Package nss-util.x86_64 0:3.19.1-4.el7_1 will be updated ---> Package nss-util.x86_64 0:3.36.0-1.1.el7_6 will be an update ---> Package pango.x86_64 0:1.42.4-1.el7 will be installed --> Processing Dependency: libthai(x86-64) >= 0.1.9 for package: pango-1.42.4-1.el7.x86_64 --> Processing Dependency: libXft(x86-64) >= 2.0.0 for package: pango-1.42.4-1.el7.x86_64 --> Processing Dependency: harfbuzz(x86-64) >= 1.4.2 for package: pango-1.42.4-1.el7.x86_64 --> Processing Dependency: fribidi(x86-64) >= 1.0 for package: pango-1.42.4-1.el7.x86_64 --> Processing Dependency: libthai.so.0(LIBTHAI_0.1)(64bit) for package: pango-1.42.4-1.el7.x86_64 --> Processing Dependency: libthai.so.0()(64bit) for package: pango-1.42.4-1.el7.x86_64 --> Processing Dependency: libharfbuzz.so.0()(64bit) for package: pango-1.42.4-1.el7.x86_64 --> Processing Dependency: libfribidi.so.0()(64bit) for package: pango-1.42.4-1.el7.x86_64 --> Processing Dependency: libXft.so.2()(64bit) for package: pango-1.42.4-1.el7.x86_64 ---> Package python-javapackages.noarch 0:3.4.1-11.el7 will be installed --> Processing Dependency: python-lxml for package: python-javapackages-3.4.1-11.el7.noarch ---> Package ttmkfdir.x86_64 0:3.0.9-42.el7 will be installed ---> Package xorg-x11-font-utils.x86_64 1:7.5-21.el7 will be installed --> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-21.el7.x86_64 --> Running transaction check ---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed ---> Package fribidi.x86_64 0:1.0.2-1.el7 will be installed ---> Package glib2.x86_64 0:2.42.2-5.el7 will be updated ---> Package glib2.x86_64 0:2.56.1-2.el7 will be an update ---> Package harfbuzz.x86_64 0:1.7.5-2.el7 will be installed --> Processing Dependency: libgraphite2.so.3()(64bit) for package: harfbuzz-1.7.5-2.el7.x86_64 ---> Package jasper-libs.x86_64 0:1.900.1-33.el7 will be installed ---> Package jbigkit-libs.x86_64 0:2.0-11.el7 will be installed ---> Package libXft.x86_64 0:2.3.2-2.el7 will be installed ---> Package libfontenc.x86_64 0:1.1.3-3.el7 will be installed ---> Package libglvnd-egl.x86_64 1:1.0.1-0.8.git5baa1e5.el7 will be installed --> Processing Dependency: libglvnd(x86-64) = 1:1.0.1-0.8.git5baa1e5.el7 for package: 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64 --> Processing Dependency: mesa-libEGL(x86-64) >= 13.0.4-1 for package: 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64 --> Processing Dependency: libGLdispatch.so.0()(64bit) for package: 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64 ---> Package libglvnd-glx.x86_64 1:1.0.1-0.8.git5baa1e5.el7 will be installed --> Processing Dependency: mesa-libGL(x86-64) >= 13.0.4-1 for package: 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64 ---> Package libthai.x86_64 0:0.1.14-9.el7 will be installed ---> Package pixman.x86_64 0:0.34.0-1.el7 will be installed ---> Package python-lxml.x86_64 0:3.2.1-4.el7 will be installed --> Running transaction check ---> Package graphite2.x86_64 0:1.3.10-1.el7_3 will be installed ---> Package libglvnd.x86_64 1:1.0.1-0.8.git5baa1e5.el7 will be installed ---> Package mesa-libEGL.x86_64 0:18.0.5-4.el7_6 will be installed --> Processing Dependency: mesa-libgbm = 18.0.5-4.el7_6 for package: mesa-libEGL-18.0.5-4.el7_6.x86_64 --> Processing Dependency: libxshmfence.so.1()(64bit) for package: mesa-libEGL-18.0.5-4.el7_6.x86_64 --> Processing Dependency: libwayland-server.so.0()(64bit) for package: mesa-libEGL-18.0.5-4.el7_6.x86_64 --> Processing Dependency: libwayland-client.so.0()(64bit) for package: mesa-libEGL-18.0.5-4.el7_6.x86_64 --> Processing Dependency: libglapi.so.0()(64bit) for package: mesa-libEGL-18.0.5-4.el7_6.x86_64 --> Processing Dependency: libgbm.so.1()(64bit) for package: mesa-libEGL-18.0.5-4.el7_6.x86_64 ---> Package mesa-libGL.x86_64 0:18.0.5-4.el7_6 will be installed --> Processing Dependency: libdrm >= 2.4.83 for package: mesa-libGL-18.0.5-4.el7_6.x86_64 --> Processing Dependency: libXxf86vm.so.1()(64bit) for package: mesa-libGL-18.0.5-4.el7_6.x86_64 --> Running transaction check ---> Package libXxf86vm.x86_64 0:1.1.4-1.el7 will be installed ---> Package libdrm.x86_64 0:2.4.60-3.el7 will be updated ---> Package libdrm.x86_64 0:2.4.91-3.el7 will be an update ---> Package libwayland-client.x86_64 0:1.15.0-1.el7 will be installed ---> Package libwayland-server.x86_64 0:1.15.0-1.el7 will be installed ---> Package libxshmfence.x86_64 0:1.2-1.el7 will be installed ---> Package mesa-libgbm.x86_64 0:18.0.5-4.el7_6 will be installed ---> Package mesa-libglapi.x86_64 0:18.0.5-4.el7_6 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================================================================== Installing: java-1.8.0-openjdk-devel x86_64 1:1.8.0.201.b09-2.el7_6 updates 9.8 M Installing for dependencies: atk x86_64 2.28.1-1.el7 base 263 k cairo x86_64 1.15.12-3.el7 base 741 k copy-jdk-configs noarch 3.3-10.el7_5 base 21 k cups-libs x86_64 1:1.6.3-35.el7 base 357 k dejavu-fonts-common noarch 2.33-6.el7 base 64 k dejavu-sans-fonts noarch 2.33-6.el7 base 1.4 M fontconfig x86_64 2.13.0-4.3.el7 base 254 k fontpackages-filesystem noarch 1.44-8.el7 base 9.9 k fribidi x86_64 1.0.2-1.el7 base 79 k gdk-pixbuf2 x86_64 2.36.12-3.el7 base 570 k giflib x86_64 4.1.6-9.el7 base 40 k graphite2 x86_64 1.3.10-1.el7_3 base 115 k gtk-update-icon-cache x86_64 3.22.30-3.el7 base 28 k gtk2 x86_64 2.24.31-1.el7 base 3.4 M harfbuzz x86_64 1.7.5-2.el7 base 267 k hicolor-icon-theme noarch 0.12-7.el7 base 42 k jasper-libs x86_64 1.900.1-33.el7 base 150 k java-1.8.0-openjdk x86_64 1:1.8.0.201.b09-2.el7_6 updates 260 k java-1.8.0-openjdk-headless x86_64 1:1.8.0.201.b09-2.el7_6 updates 32 M javapackages-tools noarch 3.4.1-11.el7 base 73 k jbigkit-libs x86_64 2.0-11.el7 base 46 k libICE x86_64 1.0.9-9.el7 base 66 k libSM x86_64 1.2.2-2.el7 base 39 k libX11 x86_64 1.6.5-2.el7 base 606 k libX11-common noarch 1.6.5-2.el7 base 164 k libXau x86_64 1.0.8-2.1.el7 base 29 k libXcomposite x86_64 0.4.4-4.1.el7 base 22 k libXcursor x86_64 1.1.15-1.el7 base 30 k libXdamage x86_64 1.1.4-4.1.el7 base 20 k libXext x86_64 1.3.3-3.el7 base 39 k libXfixes x86_64 5.0.3-1.el7 base 18 k libXft x86_64 2.3.2-2.el7 base 58 k libXi x86_64 1.7.9-1.el7 base 40 k libXinerama x86_64 1.1.3-2.1.el7 base 14 k libXrandr x86_64 1.5.1-2.el7 base 27 k libXrender x86_64 0.9.10-1.el7 base 26 k libXtst x86_64 1.2.3-1.el7 base 20 k libXxf86vm x86_64 1.1.4-1.el7 base 18 k libfontenc x86_64 1.1.3-3.el7 base 31 k libglvnd x86_64 1:1.0.1-0.8.git5baa1e5.el7 base 89 k libglvnd-egl x86_64 1:1.0.1-0.8.git5baa1e5.el7 base 44 k libglvnd-glx x86_64 1:1.0.1-0.8.git5baa1e5.el7 base 125 k libjpeg-turbo x86_64 1.2.90-6.el7 base 134 k libpng x86_64 2:1.5.13-7.el7_2 base 213 k libthai x86_64 0.1.14-9.el7 base 187 k libtiff x86_64 4.0.3-27.el7_3 base 170 k libwayland-client x86_64 1.15.0-1.el7 base 33 k libwayland-server x86_64 1.15.0-1.el7 base 39 k libxcb x86_64 1.13-1.el7 base 214 k libxshmfence x86_64 1.2-1.el7 base 7.2 k libxslt x86_64 1.1.28-5.el7 base 242 k lksctp-tools x86_64 1.0.17-2.el7 base 88 k mesa-libEGL x86_64 18.0.5-4.el7_6 updates 102 k mesa-libGL x86_64 18.0.5-4.el7_6 updates 162 k mesa-libgbm x86_64 18.0.5-4.el7_6 updates 38 k mesa-libglapi x86_64 18.0.5-4.el7_6 updates 44 k nss-pem x86_64 1.0.3-5.el7 base 74 k pango x86_64 1.42.4-1.el7 base 280 k pcsc-lite-libs x86_64 1.8.8-8.el7 base 34 k pixman x86_64 0.34.0-1.el7 base 248 k python-javapackages noarch 3.4.1-11.el7 base 31 k python-lxml x86_64 3.2.1-4.el7 base 758 k ttmkfdir x86_64 3.0.9-42.el7 base 48 k tzdata-java noarch 2018i-1.el7 updates 187 k xorg-x11-font-utils x86_64 1:7.5-21.el7 base 104 k xorg-x11-fonts-Type1 noarch 7.5-9.el7 base 521 k Updating for dependencies: chkconfig x86_64 1.7.4-1.el7 base 181 k freetype x86_64 2.8-12.el7_6.1 updates 380 k glib2 x86_64 2.56.1-2.el7 base 2.5 M libdrm x86_64 2.4.91-3.el7 base 153 k nspr x86_64 4.19.0-1.el7_5 base 127 k nss x86_64 3.36.0-7.1.el7_6 updates 835 k nss-softokn x86_64 3.36.0-5.el7_5 base 315 k nss-softokn-freebl x86_64 3.36.0-5.el7_5 base 222 k nss-sysinit x86_64 3.36.0-7.1.el7_6 updates 62 k nss-tools x86_64 3.36.0-7.1.el7_6 updates 515 k nss-util x86_64 3.36.0-1.1.el7_6 updates 78 k Transaction Summary =================================================================================================================================================================================== Install 1 Package (+66 Dependent packages) Upgrade ( 11 Dependent packages) Total download size: 60 M Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/78): atk-2.28.1-1.el7.x86_64.rpm | 263 kB 00:00:00 (2/78): chkconfig-1.7.4-1.el7.x86_64.rpm | 181 kB 00:00:00 (3/78): copy-jdk-configs-3.3-10.el7_5.noarch.rpm | 21 kB 00:00:00 (4/78): cups-libs-1.6.3-35.el7.x86_64.rpm | 357 kB 00:00:00 (5/78): dejavu-fonts-common-2.33-6.el7.noarch.rpm | 64 kB 00:00:00 (6/78): cairo-1.15.12-3.el7.x86_64.rpm | 741 kB 00:00:00 (7/78): fontconfig-2.13.0-4.3.el7.x86_64.rpm | 254 kB 00:00:00 (8/78): fontpackages-filesystem-1.44-8.el7.noarch.rpm | 9.9 kB 00:00:00 (9/78): fribidi-1.0.2-1.el7.x86_64.rpm | 79 kB 00:00:00 (10/78): gdk-pixbuf2-2.36.12-3.el7.x86_64.rpm | 570 kB 00:00:00 (11/78): dejavu-sans-fonts-2.33-6.el7.noarch.rpm | 1.4 MB 00:00:00 (12/78): giflib-4.1.6-9.el7.x86_64.rpm | 40 kB 00:00:00 (13/78): graphite2-1.3.10-1.el7_3.x86_64.rpm | 115 kB 00:00:00 (14/78): gtk-update-icon-cache-3.22.30-3.el7.x86_64.rpm | 28 kB 00:00:00 (15/78): freetype-2.8-12.el7_6.1.x86_64.rpm | 380 kB 00:00:00 (16/78): glib2-2.56.1-2.el7.x86_64.rpm | 2.5 MB 00:00:00 (17/78): harfbuzz-1.7.5-2.el7.x86_64.rpm | 267 kB 00:00:00 (18/78): hicolor-icon-theme-0.12-7.el7.noarch.rpm | 42 kB 00:00:00 (19/78): gtk2-2.24.31-1.el7.x86_64.rpm | 3.4 MB 00:00:00 (20/78): jasper-libs-1.900.1-33.el7.x86_64.rpm | 150 kB 00:00:00 (21/78): java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64.rpm | 260 kB 00:00:00 (22/78): javapackages-tools-3.4.1-11.el7.noarch.rpm | 73 kB 00:00:00 (23/78): jbigkit-libs-2.0-11.el7.x86_64.rpm | 46 kB 00:00:00 (24/78): libICE-1.0.9-9.el7.x86_64.rpm | 66 kB 00:00:00 (25/78): libSM-1.2.2-2.el7.x86_64.rpm | 39 kB 00:00:00 (26/78): libX11-common-1.6.5-2.el7.noarch.rpm | 164 kB 00:00:00 (27/78): libXau-1.0.8-2.1.el7.x86_64.rpm | 29 kB 00:00:00 (28/78): libXcomposite-0.4.4-4.1.el7.x86_64.rpm | 22 kB 00:00:00 (29/78): libXcursor-1.1.15-1.el7.x86_64.rpm | 30 kB 00:00:00 (30/78): libX11-1.6.5-2.el7.x86_64.rpm | 606 kB 00:00:00 (31/78): libXdamage-1.1.4-4.1.el7.x86_64.rpm | 20 kB 00:00:00 (32/78): libXext-1.3.3-3.el7.x86_64.rpm | 39 kB 00:00:00 (33/78): libXfixes-5.0.3-1.el7.x86_64.rpm | 18 kB 00:00:00 (34/78): libXft-2.3.2-2.el7.x86_64.rpm | 58 kB 00:00:00 (35/78): libXi-1.7.9-1.el7.x86_64.rpm | 40 kB 00:00:00 (36/78): libXinerama-1.1.3-2.1.el7.x86_64.rpm | 14 kB 00:00:00 (37/78): libXrandr-1.5.1-2.el7.x86_64.rpm | 27 kB 00:00:00 (38/78): libXrender-0.9.10-1.el7.x86_64.rpm | 26 kB 00:00:00 (39/78): libXxf86vm-1.1.4-1.el7.x86_64.rpm | 18 kB 00:00:00 (40/78): libXtst-1.2.3-1.el7.x86_64.rpm | 20 kB 00:00:00 (41/78): libfontenc-1.1.3-3.el7.x86_64.rpm | 31 kB 00:00:00 (42/78): libglvnd-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm | 89 kB 00:00:00 (43/78): libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm | 44 kB 00:00:00 (44/78): libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm | 125 kB 00:00:00 (45/78): libjpeg-turbo-1.2.90-6.el7.x86_64.rpm | 134 kB 00:00:00 (46/78): libpng-1.5.13-7.el7_2.x86_64.rpm | 213 kB 00:00:00 (47/78): libdrm-2.4.91-3.el7.x86_64.rpm | 153 kB 00:00:00 (48/78): libtiff-4.0.3-27.el7_3.x86_64.rpm | 170 kB 00:00:00 (49/78): libthai-0.1.14-9.el7.x86_64.rpm | 187 kB 00:00:00 (50/78): libwayland-client-1.15.0-1.el7.x86_64.rpm | 33 kB 00:00:00 (51/78): libwayland-server-1.15.0-1.el7.x86_64.rpm | 39 kB 00:00:00 (52/78): libxshmfence-1.2-1.el7.x86_64.rpm | 7.2 kB 00:00:00 (53/78): libxslt-1.1.28-5.el7.x86_64.rpm | 242 kB 00:00:00 (54/78): lksctp-tools-1.0.17-2.el7.x86_64.rpm | 88 kB 00:00:00 (55/78): java-1.8.0-openjdk-devel-1.8.0.201.b09-2.el7_6.x86_64.rpm | 9.8 MB 00:00:01 (56/78): mesa-libEGL-18.0.5-4.el7_6.x86_64.rpm | 102 kB 00:00:00 (57/78): libxcb-1.13-1.el7.x86_64.rpm | 214 kB 00:00:00 (58/78): mesa-libGL-18.0.5-4.el7_6.x86_64.rpm | 162 kB 00:00:00 (59/78): mesa-libgbm-18.0.5-4.el7_6.x86_64.rpm | 38 kB 00:00:00 (60/78): mesa-libglapi-18.0.5-4.el7_6.x86_64.rpm | 44 kB 00:00:00 (61/78): nspr-4.19.0-1.el7_5.x86_64.rpm | 127 kB 00:00:00 (62/78): nss-pem-1.0.3-5.el7.x86_64.rpm | 74 kB 00:00:00 (63/78): nss-3.36.0-7.1.el7_6.x86_64.rpm | 835 kB 00:00:00 (64/78): nss-sysinit-3.36.0-7.1.el7_6.x86_64.rpm | 62 kB 00:00:00 (65/78): nss-softokn-freebl-3.36.0-5.el7_5.x86_64.rpm | 222 kB 00:00:00 (66/78): nss-softokn-3.36.0-5.el7_5.x86_64.rpm | 315 kB 00:00:00 (67/78): nss-tools-3.36.0-7.1.el7_6.x86_64.rpm | 515 kB 00:00:00 (68/78): nss-util-3.36.0-1.1.el7_6.x86_64.rpm | 78 kB 00:00:00 (69/78): pcsc-lite-libs-1.8.8-8.el7.x86_64.rpm | 34 kB 00:00:00 (70/78): pango-1.42.4-1.el7.x86_64.rpm | 280 kB 00:00:00 (71/78): python-javapackages-3.4.1-11.el7.noarch.rpm | 31 kB 00:00:00 (72/78): pixman-0.34.0-1.el7.x86_64.rpm | 248 kB 00:00:00 (73/78): ttmkfdir-3.0.9-42.el7.x86_64.rpm | 48 kB 00:00:00 (74/78): xorg-x11-font-utils-7.5-21.el7.x86_64.rpm | 104 kB 00:00:00 (75/78): python-lxml-3.2.1-4.el7.x86_64.rpm | 758 kB 00:00:00 (76/78): tzdata-java-2018i-1.el7.noarch.rpm | 187 kB 00:00:00 (77/78): xorg-x11-fonts-Type1-7.5-9.el7.noarch.rpm | 521 kB 00:00:00 (78/78): java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64.rpm | 32 MB 00:00:05 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 8.9 MB/s | 60 MB 00:00:06 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : nspr-4.19.0-1.el7_5.x86_64 1/89 Updating : nss-util-3.36.0-1.1.el7_6.x86_64 2/89 Updating : glib2-2.56.1-2.el7.x86_64 3/89 Installing : libjpeg-turbo-1.2.90-6.el7.x86_64 4/89 Installing : 2:libpng-1.5.13-7.el7_2.x86_64 5/89 Updating : freetype-2.8-12.el7_6.1.x86_64 6/89 Updating : libdrm-2.4.91-3.el7.x86_64 7/89 Installing : mesa-libglapi-18.0.5-4.el7_6.x86_64 8/89 Updating : chkconfig-1.7.4-1.el7.x86_64 9/89 Installing : 1:cups-libs-1.6.3-35.el7.x86_64 10/89 Installing : 1:libglvnd-1.0.1-0.8.git5baa1e5.el7.x86_64 11/89 Installing : libxshmfence-1.2-1.el7.x86_64 12/89 Installing : libxslt-1.1.28-5.el7.x86_64 13/89 Installing : fontpackages-filesystem-1.44-8.el7.noarch 14/89 Installing : libICE-1.0.9-9.el7.x86_64 15/89 Installing : libwayland-server-1.15.0-1.el7.x86_64 16/89 Installing : mesa-libgbm-18.0.5-4.el7_6.x86_64 17/89 Installing : libSM-1.2.2-2.el7.x86_64 18/89 Installing : dejavu-fonts-common-2.33-6.el7.noarch 19/89 Installing : dejavu-sans-fonts-2.33-6.el7.noarch 20/89 Installing : fontconfig-2.13.0-4.3.el7.x86_64 21/89 Installing : python-lxml-3.2.1-4.el7.x86_64 22/89 Installing : python-javapackages-3.4.1-11.el7.noarch 23/89 Installing : javapackages-tools-3.4.1-11.el7.noarch 24/89 Installing : ttmkfdir-3.0.9-42.el7.x86_64 25/89 Installing : jasper-libs-1.900.1-33.el7.x86_64 26/89 Installing : atk-2.28.1-1.el7.x86_64 27/89 Updating : nss-softokn-freebl-3.36.0-5.el7_5.x86_64 28/89 Updating : nss-softokn-3.36.0-5.el7_5.x86_64 29/89 Installing : nss-pem-1.0.3-5.el7.x86_64 30/89 Updating : nss-3.36.0-7.1.el7_6.x86_64 31/89 Updating : nss-sysinit-3.36.0-7.1.el7_6.x86_64 32/89 Installing : libfontenc-1.1.3-3.el7.x86_64 33/89 Installing : 1:xorg-x11-font-utils-7.5-21.el7.x86_64 34/89 Installing : xorg-x11-fonts-Type1-7.5-9.el7.noarch 35/89 Installing : jbigkit-libs-2.0-11.el7.x86_64 36/89 Installing : libtiff-4.0.3-27.el7_3.x86_64 37/89 Installing : libthai-0.1.14-9.el7.x86_64 38/89 Installing : fribidi-1.0.2-1.el7.x86_64 39/89 Installing : copy-jdk-configs-3.3-10.el7_5.noarch 40/89 Installing : hicolor-icon-theme-0.12-7.el7.noarch 41/89 Installing : libX11-common-1.6.5-2.el7.noarch 42/89 Installing : graphite2-1.3.10-1.el7_3.x86_64 43/89 Installing : harfbuzz-1.7.5-2.el7.x86_64 44/89 Installing : pixman-0.34.0-1.el7.x86_64 45/89 Installing : tzdata-java-2018i-1.el7.noarch 46/89 Installing : libwayland-client-1.15.0-1.el7.x86_64 47/89 Installing : libXau-1.0.8-2.1.el7.x86_64 48/89 Installing : libxcb-1.13-1.el7.x86_64 49/89 Installing : libX11-1.6.5-2.el7.x86_64 50/89 Installing : libXext-1.3.3-3.el7.x86_64 51/89 Installing : libXrender-0.9.10-1.el7.x86_64 52/89 Installing : libXfixes-5.0.3-1.el7.x86_64 53/89 Installing : libXi-1.7.9-1.el7.x86_64 54/89 Installing : libXdamage-1.1.4-4.1.el7.x86_64 55/89 Installing : libXcomposite-0.4.4-4.1.el7.x86_64 56/89 Installing : gdk-pixbuf2-2.36.12-3.el7.x86_64 57/89 Installing : gtk-update-icon-cache-3.22.30-3.el7.x86_64 58/89 Installing : libXtst-1.2.3-1.el7.x86_64 59/89 Installing : libXcursor-1.1.15-1.el7.x86_64 60/89 Installing : libXrandr-1.5.1-2.el7.x86_64 61/89 Installing : libXft-2.3.2-2.el7.x86_64 62/89 Installing : libXinerama-1.1.3-2.1.el7.x86_64 63/89 Installing : libXxf86vm-1.1.4-1.el7.x86_64 64/89 Installing : 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64 65/89 Installing : mesa-libGL-18.0.5-4.el7_6.x86_64 66/89 Installing : giflib-4.1.6-9.el7.x86_64 67/89 Installing : 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64 68/89 Installing : mesa-libEGL-18.0.5-4.el7_6.x86_64 69/89 Installing : cairo-1.15.12-3.el7.x86_64 70/89 Installing : pango-1.42.4-1.el7.x86_64 71/89 Installing : gtk2-2.24.31-1.el7.x86_64 72/89 Installing : pcsc-lite-libs-1.8.8-8.el7.x86_64 73/89 Installing : lksctp-tools-1.0.17-2.el7.x86_64 74/89 Installing : 1:java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64 75/89 Installing : 1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 76/89 Installing : 1:java-1.8.0-openjdk-devel-1.8.0.201.b09-2.el7_6.x86_64 77/89 Updating : nss-tools-3.36.0-7.1.el7_6.x86_64 78/89 Cleanup : nss-tools-3.19.1-18.el7.x86_64 79/89 Cleanup : nss-3.19.1-18.el7.x86_64 80/89 Cleanup : nss-sysinit-3.19.1-18.el7.x86_64 81/89 Cleanup : nss-softokn-3.16.2.3-13.el7_1.x86_64 82/89 Cleanup : nss-util-3.19.1-4.el7_1.x86_64 83/89 Cleanup : nspr-4.10.8-2.el7_1.x86_64 84/89 Cleanup : nss-softokn-freebl-3.16.2.3-13.el7_1.x86_64 85/89 Cleanup : chkconfig-1.3.61-5.el7.x86_64 86/89 Cleanup : libdrm-2.4.60-3.el7.x86_64 87/89 Cleanup : freetype-2.4.11-11.el7.x86_64 88/89 Cleanup : glib2-2.42.2-5.el7.x86_64 89/89 Verifying : libXext-1.3.3-3.el7.x86_64 1/89 Verifying : libXi-1.7.9-1.el7.x86_64 2/89 Verifying : libXrender-0.9.10-1.el7.x86_64 3/89 Verifying : 1:xorg-x11-font-utils-7.5-21.el7.x86_64 4/89 Verifying : libwayland-server-1.15.0-1.el7.x86_64 5/89 Verifying : python-lxml-3.2.1-4.el7.x86_64 6/89 Verifying : nss-sysinit-3.36.0-7.1.el7_6.x86_64 7/89 Verifying : 2:libpng-1.5.13-7.el7_2.x86_64 8/89 Verifying : pango-1.42.4-1.el7.x86_64 9/89 Verifying : python-javapackages-3.4.1-11.el7.noarch 10/89 Verifying : libXcomposite-0.4.4-4.1.el7.x86_64 11/89 Verifying : 1:java-1.8.0-openjdk-devel-1.8.0.201.b09-2.el7_6.x86_64 12/89 Verifying : lksctp-tools-1.0.17-2.el7.x86_64 13/89 Verifying : mesa-libGL-18.0.5-4.el7_6.x86_64 14/89 Verifying : dejavu-sans-fonts-2.33-6.el7.noarch 15/89 Verifying : pcsc-lite-libs-1.8.8-8.el7.x86_64 16/89 Verifying : cairo-1.15.12-3.el7.x86_64 17/89 Verifying : libXau-1.0.8-2.1.el7.x86_64 18/89 Verifying : chkconfig-1.7.4-1.el7.x86_64 19/89 Verifying : libwayland-client-1.15.0-1.el7.x86_64 20/89 Verifying : giflib-4.1.6-9.el7.x86_64 21/89 Verifying : nss-tools-3.36.0-7.1.el7_6.x86_64 22/89 Verifying : tzdata-java-2018i-1.el7.noarch 23/89 Verifying : mesa-libgbm-18.0.5-4.el7_6.x86_64 24/89 Verifying : libXtst-1.2.3-1.el7.x86_64 25/89 Verifying : nss-3.36.0-7.1.el7_6.x86_64 26/89 Verifying : libICE-1.0.9-9.el7.x86_64 27/89 Verifying : pixman-0.34.0-1.el7.x86_64 28/89 Verifying : javapackages-tools-3.4.1-11.el7.noarch 29/89 Verifying : nss-softokn-3.36.0-5.el7_5.x86_64 30/89 Verifying : 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64 31/89 Verifying : jasper-libs-1.900.1-33.el7.x86_64 32/89 Verifying : graphite2-1.3.10-1.el7_3.x86_64 33/89 Verifying : libX11-common-1.6.5-2.el7.noarch 34/89 Verifying : libXfixes-5.0.3-1.el7.x86_64 35/89 Verifying : libtiff-4.0.3-27.el7_3.x86_64 36/89 Verifying : fontconfig-2.13.0-4.3.el7.x86_64 37/89 Verifying : gdk-pixbuf2-2.36.12-3.el7.x86_64 38/89 Verifying : 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64 39/89 Verifying : libXcursor-1.1.15-1.el7.x86_64 40/89 Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64 41/89 Verifying : fontpackages-filesystem-1.44-8.el7.noarch 42/89 Verifying : ttmkfdir-3.0.9-42.el7.x86_64 43/89 Verifying : libjpeg-turbo-1.2.90-6.el7.x86_64 44/89 Verifying : hicolor-icon-theme-0.12-7.el7.noarch 45/89 Verifying : glib2-2.56.1-2.el7.x86_64 46/89 Verifying : copy-jdk-configs-3.3-10.el7_5.noarch 47/89 Verifying : harfbuzz-1.7.5-2.el7.x86_64 48/89 Verifying : libxslt-1.1.28-5.el7.x86_64 49/89 Verifying : fribidi-1.0.2-1.el7.x86_64 50/89 Verifying : libXrandr-1.5.1-2.el7.x86_64 51/89 Verifying : atk-2.28.1-1.el7.x86_64 52/89 Verifying : 1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 53/89 Verifying : libxshmfence-1.2-1.el7.x86_64 54/89 Verifying : nss-softokn-freebl-3.36.0-5.el7_5.x86_64 55/89 Verifying : libSM-1.2.2-2.el7.x86_64 56/89 Verifying : nspr-4.19.0-1.el7_5.x86_64 57/89 Verifying : freetype-2.8-12.el7_6.1.x86_64 58/89 Verifying : libXdamage-1.1.4-4.1.el7.x86_64 59/89 Verifying : mesa-libglapi-18.0.5-4.el7_6.x86_64 60/89 Verifying : libXinerama-1.1.3-2.1.el7.x86_64 61/89 Verifying : libXxf86vm-1.1.4-1.el7.x86_64 62/89 Verifying : gtk2-2.24.31-1.el7.x86_64 63/89 Verifying : nss-util-3.36.0-1.1.el7_6.x86_64 64/89 Verifying : gtk-update-icon-cache-3.22.30-3.el7.x86_64 65/89 Verifying : nss-pem-1.0.3-5.el7.x86_64 66/89 Verifying : dejavu-fonts-common-2.33-6.el7.noarch 67/89 Verifying : libthai-0.1.14-9.el7.x86_64 68/89 Verifying : 1:libglvnd-1.0.1-0.8.git5baa1e5.el7.x86_64 69/89 Verifying : libxcb-1.13-1.el7.x86_64 70/89 Verifying : libXft-2.3.2-2.el7.x86_64 71/89 Verifying : mesa-libEGL-18.0.5-4.el7_6.x86_64 72/89 Verifying : xorg-x11-fonts-Type1-7.5-9.el7.noarch 73/89 Verifying : libX11-1.6.5-2.el7.x86_64 74/89 Verifying : libdrm-2.4.91-3.el7.x86_64 75/89 Verifying : jbigkit-libs-2.0-11.el7.x86_64 76/89 Verifying : 1:cups-libs-1.6.3-35.el7.x86_64 77/89 Verifying : libfontenc-1.1.3-3.el7.x86_64 78/89 Verifying : libdrm-2.4.60-3.el7.x86_64 79/89 Verifying : nss-util-3.19.1-4.el7_1.x86_64 80/89 Verifying : nss-tools-3.19.1-18.el7.x86_64 81/89 Verifying : nss-softokn-3.16.2.3-13.el7_1.x86_64 82/89 Verifying : nss-sysinit-3.19.1-18.el7.x86_64 83/89 Verifying : glib2-2.42.2-5.el7.x86_64 84/89 Verifying : chkconfig-1.3.61-5.el7.x86_64 85/89 Verifying : freetype-2.4.11-11.el7.x86_64 86/89 Verifying : nss-3.19.1-18.el7.x86_64 87/89 Verifying : nss-softokn-freebl-3.16.2.3-13.el7_1.x86_64 88/89 Verifying : nspr-4.10.8-2.el7_1.x86_64 89/89 Installed: java-1.8.0-openjdk-devel.x86_64 1:1.8.0.201.b09-2.el7_6 Dependency Installed: atk.x86_64 0:2.28.1-1.el7 cairo.x86_64 0:1.15.12-3.el7 copy-jdk-configs.noarch 0:3.3-10.el7_5 cups-libs.x86_64 1:1.6.3-35.el7 dejavu-fonts-common.noarch 0:2.33-6.el7 dejavu-sans-fonts.noarch 0:2.33-6.el7 fontconfig.x86_64 0:2.13.0-4.3.el7 fontpackages-filesystem.noarch 0:1.44-8.el7 fribidi.x86_64 0:1.0.2-1.el7 gdk-pixbuf2.x86_64 0:2.36.12-3.el7 giflib.x86_64 0:4.1.6-9.el7 graphite2.x86_64 0:1.3.10-1.el7_3 gtk-update-icon-cache.x86_64 0:3.22.30-3.el7 gtk2.x86_64 0:2.24.31-1.el7 harfbuzz.x86_64 0:1.7.5-2.el7 hicolor-icon-theme.noarch 0:0.12-7.el7 jasper-libs.x86_64 0:1.900.1-33.el7 java-1.8.0-openjdk.x86_64 1:1.8.0.201.b09-2.el7_6 java-1.8.0-openjdk-headless.x86_64 1:1.8.0.201.b09-2.el7_6 javapackages-tools.noarch 0:3.4.1-11.el7 jbigkit-libs.x86_64 0:2.0-11.el7 libICE.x86_64 0:1.0.9-9.el7 libSM.x86_64 0:1.2.2-2.el7 libX11.x86_64 0:1.6.5-2.el7 libX11-common.noarch 0:1.6.5-2.el7 libXau.x86_64 0:1.0.8-2.1.el7 libXcomposite.x86_64 0:0.4.4-4.1.el7 libXcursor.x86_64 0:1.1.15-1.el7 libXdamage.x86_64 0:1.1.4-4.1.el7 libXext.x86_64 0:1.3.3-3.el7 libXfixes.x86_64 0:5.0.3-1.el7 libXft.x86_64 0:2.3.2-2.el7 libXi.x86_64 0:1.7.9-1.el7 libXinerama.x86_64 0:1.1.3-2.1.el7 libXrandr.x86_64 0:1.5.1-2.el7 libXrender.x86_64 0:0.9.10-1.el7 libXtst.x86_64 0:1.2.3-1.el7 libXxf86vm.x86_64 0:1.1.4-1.el7 libfontenc.x86_64 0:1.1.3-3.el7 libglvnd.x86_64 1:1.0.1-0.8.git5baa1e5.el7 libglvnd-egl.x86_64 1:1.0.1-0.8.git5baa1e5.el7 libglvnd-glx.x86_64 1:1.0.1-0.8.git5baa1e5.el7 libjpeg-turbo.x86_64 0:1.2.90-6.el7 libpng.x86_64 2:1.5.13-7.el7_2 libthai.x86_64 0:0.1.14-9.el7 libtiff.x86_64 0:4.0.3-27.el7_3 libwayland-client.x86_64 0:1.15.0-1.el7 libwayland-server.x86_64 0:1.15.0-1.el7 libxcb.x86_64 0:1.13-1.el7 libxshmfence.x86_64 0:1.2-1.el7 libxslt.x86_64 0:1.1.28-5.el7 lksctp-tools.x86_64 0:1.0.17-2.el7 mesa-libEGL.x86_64 0:18.0.5-4.el7_6 mesa-libGL.x86_64 0:18.0.5-4.el7_6 mesa-libgbm.x86_64 0:18.0.5-4.el7_6 mesa-libglapi.x86_64 0:18.0.5-4.el7_6 nss-pem.x86_64 0:1.0.3-5.el7 pango.x86_64 0:1.42.4-1.el7 pcsc-lite-libs.x86_64 0:1.8.8-8.el7 pixman.x86_64 0:0.34.0-1.el7 python-javapackages.noarch 0:3.4.1-11.el7 python-lxml.x86_64 0:3.2.1-4.el7 ttmkfdir.x86_64 0:3.0.9-42.el7 tzdata-java.noarch 0:2018i-1.el7 xorg-x11-font-utils.x86_64 1:7.5-21.el7 xorg-x11-fonts-Type1.noarch 0:7.5-9.el7 Dependency Updated: chkconfig.x86_64 0:1.7.4-1.el7 freetype.x86_64 0:2.8-12.el7_6.1 glib2.x86_64 0:2.56.1-2.el7 libdrm.x86_64 0:2.4.91-3.el7 nspr.x86_64 0:4.19.0-1.el7_5 nss.x86_64 0:3.36.0-7.1.el7_6 nss-softokn.x86_64 0:3.36.0-5.el7_5 nss-softokn-freebl.x86_64 0:3.36.0-5.el7_5 nss-sysinit.x86_64 0:3.36.0-7.1.el7_6 nss-tools.x86_64 0:3.36.0-7.1.el7_6 nss-util.x86_64 0:3.36.0-1.1.el7_6 Complete! [root@node101 ~]#
2>.安装ElasticSearch
[root@node101 ~]# [root@node101 ~]# ll total 32984 -rw-r--r--. 1 root root 33775471 Sep 19 03:12 elasticsearch-5.6.12.rpm [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# rpm -ivh elasticsearch-5.6.12.rpm warning: elasticsearch-5.6.12.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY Preparing... ################################# [100%] Creating elasticsearch group... OK Creating elasticsearch user... OK Updating / installing... 1:elasticsearch-0:5.6.12-1 ################################# [100%] ### NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using systemd sudo systemctl daemon-reload sudo systemctl enable elasticsearch.service ### You can start elasticsearch service by executing sudo systemctl start elasticsearch.service [root@node101 ~]# [root@node101 ~]#
3>.修改ElasticSearch相关配置文件
[root@node101 ~]# [root@node101 ~]# [root@node101 ~]# rpm -ql elasticsearch /etc/elasticsearch/elasticsearch.yml /etc/elasticsearch/jvm.options /etc/elasticsearch/log4j2.properties /etc/elasticsearch/scripts /etc/init.d/elasticsearch /etc/sysconfig/elasticsearch /usr/lib/sysctl.d/elasticsearch.conf /usr/lib/systemd/system/elasticsearch.service /usr/lib/tmpfiles.d/elasticsearch.conf /usr/share/elasticsearch/LICENSE.txt /usr/share/elasticsearch/NOTICE.txt /usr/share/elasticsearch/README.textile /usr/share/elasticsearch/bin /usr/share/elasticsearch/bin/elasticsearch /usr/share/elasticsearch/bin/elasticsearch-keystore /usr/share/elasticsearch/bin/elasticsearch-plugin /usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec /usr/share/elasticsearch/bin/elasticsearch-translog /usr/share/elasticsearch/bin/elasticsearch.in.sh /usr/share/elasticsearch/lib /usr/share/elasticsearch/lib/HdrHistogram-2.1.9.jar /usr/share/elasticsearch/lib/elasticsearch-5.6.12.jar /usr/share/elasticsearch/lib/hppc-0.7.1.jar /usr/share/elasticsearch/lib/jackson-core-2.8.6.jar /usr/share/elasticsearch/lib/jackson-dataformat-cbor-2.8.6.jar /usr/share/elasticsearch/lib/jackson-dataformat-smile-2.8.6.jar /usr/share/elasticsearch/lib/jackson-dataformat-yaml-2.8.6.jar /usr/share/elasticsearch/lib/java-version-checker-5.6.12.jar /usr/share/elasticsearch/lib/jna-4.4.0-1.jar /usr/share/elasticsearch/lib/joda-time-2.9.5.jar /usr/share/elasticsearch/lib/jopt-simple-5.0.2.jar /usr/share/elasticsearch/lib/jts-1.13.jar /usr/share/elasticsearch/lib/log4j-1.2-api-2.11.1.jar /usr/share/elasticsearch/lib/log4j-api-2.11.1.jar /usr/share/elasticsearch/lib/log4j-core-2.11.1.jar /usr/share/elasticsearch/lib/lucene-analyzers-common-6.6.1.jar /usr/share/elasticsearch/lib/lucene-backward-codecs-6.6.1.jar /usr/share/elasticsearch/lib/lucene-core-6.6.1.jar /usr/share/elasticsearch/lib/lucene-grouping-6.6.1.jar /usr/share/elasticsearch/lib/lucene-highlighter-6.6.1.jar /usr/share/elasticsearch/lib/lucene-join-6.6.1.jar /usr/share/elasticsearch/lib/lucene-memory-6.6.1.jar /usr/share/elasticsearch/lib/lucene-misc-6.6.1.jar /usr/share/elasticsearch/lib/lucene-queries-6.6.1.jar /usr/share/elasticsearch/lib/lucene-queryparser-6.6.1.jar /usr/share/elasticsearch/lib/lucene-sandbox-6.6.1.jar /usr/share/elasticsearch/lib/lucene-spatial-6.6.1.jar /usr/share/elasticsearch/lib/lucene-spatial-extras-6.6.1.jar /usr/share/elasticsearch/lib/lucene-spatial3d-6.6.1.jar /usr/share/elasticsearch/lib/lucene-suggest-6.6.1.jar /usr/share/elasticsearch/lib/plugin-cli-5.6.12.jar /usr/share/elasticsearch/lib/securesm-1.2.jar /usr/share/elasticsearch/lib/snakeyaml-1.15.jar /usr/share/elasticsearch/lib/spatial4j-0.6.jar /usr/share/elasticsearch/lib/t-digest-3.0.jar /usr/share/elasticsearch/modules /usr/share/elasticsearch/modules/aggs-matrix-stats /usr/share/elasticsearch/modules/aggs-matrix-stats/aggs-matrix-stats-5.6.12.jar /usr/share/elasticsearch/modules/aggs-matrix-stats/plugin-descriptor.properties /usr/share/elasticsearch/modules/ingest-common /usr/share/elasticsearch/modules/ingest-common/ingest-common-5.6.12.jar /usr/share/elasticsearch/modules/ingest-common/jcodings-1.0.12.jar /usr/share/elasticsearch/modules/ingest-common/joni-2.1.6.jar /usr/share/elasticsearch/modules/ingest-common/plugin-descriptor.properties /usr/share/elasticsearch/modules/lang-expression /usr/share/elasticsearch/modules/lang-expression/antlr4-runtime-4.5.1-1.jar /usr/share/elasticsearch/modules/lang-expression/asm-5.0.4.jar /usr/share/elasticsearch/modules/lang-expression/asm-commons-5.0.4.jar /usr/share/elasticsearch/modules/lang-expression/asm-tree-5.0.4.jar /usr/share/elasticsearch/modules/lang-expression/lang-expression-5.6.12.jar /usr/share/elasticsearch/modules/lang-expression/lucene-expressions-6.6.1.jar /usr/share/elasticsearch/modules/lang-expression/plugin-descriptor.properties /usr/share/elasticsearch/modules/lang-expression/plugin-security.policy /usr/share/elasticsearch/modules/lang-groovy /usr/share/elasticsearch/modules/lang-groovy/groovy-2.4.6-indy.jar /usr/share/elasticsearch/modules/lang-groovy/lang-groovy-5.6.12.jar /usr/share/elasticsearch/modules/lang-groovy/plugin-descriptor.properties /usr/share/elasticsearch/modules/lang-groovy/plugin-security.policy /usr/share/elasticsearch/modules/lang-mustache /usr/share/elasticsearch/modules/lang-mustache/compiler-0.9.3.jar /usr/share/elasticsearch/modules/lang-mustache/lang-mustache-5.6.12.jar /usr/share/elasticsearch/modules/lang-mustache/plugin-descriptor.properties /usr/share/elasticsearch/modules/lang-mustache/plugin-security.policy /usr/share/elasticsearch/modules/lang-painless /usr/share/elasticsearch/modules/lang-painless/antlr4-runtime-4.5.1-1.jar /usr/share/elasticsearch/modules/lang-painless/asm-debug-all-5.1.jar /usr/share/elasticsearch/modules/lang-painless/lang-painless-5.6.12.jar /usr/share/elasticsearch/modules/lang-painless/plugin-descriptor.properties /usr/share/elasticsearch/modules/lang-painless/plugin-security.policy /usr/share/elasticsearch/modules/parent-join /usr/share/elasticsearch/modules/parent-join/parent-join-5.6.12.jar /usr/share/elasticsearch/modules/parent-join/plugin-descriptor.properties /usr/share/elasticsearch/modules/percolator /usr/share/elasticsearch/modules/percolator/percolator-5.6.12.jar /usr/share/elasticsearch/modules/percolator/plugin-descriptor.properties /usr/share/elasticsearch/modules/reindex /usr/share/elasticsearch/modules/reindex/commons-codec-1.10.jar /usr/share/elasticsearch/modules/reindex/commons-logging-1.1.3.jar /usr/share/elasticsearch/modules/reindex/elasticsearch-rest-client-5.6.12.jar /usr/share/elasticsearch/modules/reindex/httpasyncclient-4.1.2.jar /usr/share/elasticsearch/modules/reindex/httpclient-4.5.2.jar /usr/share/elasticsearch/modules/reindex/httpcore-4.4.5.jar /usr/share/elasticsearch/modules/reindex/httpcore-nio-4.4.5.jar /usr/share/elasticsearch/modules/reindex/plugin-descriptor.properties /usr/share/elasticsearch/modules/reindex/plugin-security.policy /usr/share/elasticsearch/modules/reindex/reindex-5.6.12.jar /usr/share/elasticsearch/modules/transport-netty3 /usr/share/elasticsearch/modules/transport-netty3/netty-3.10.6.Final.jar /usr/share/elasticsearch/modules/transport-netty3/plugin-descriptor.properties /usr/share/elasticsearch/modules/transport-netty3/plugin-security.policy /usr/share/elasticsearch/modules/transport-netty3/transport-netty3-5.6.12.jar /usr/share/elasticsearch/modules/transport-netty4 /usr/share/elasticsearch/modules/transport-netty4/netty-buffer-4.1.13.Final.jar /usr/share/elasticsearch/modules/transport-netty4/netty-codec-4.1.13.Final.jar /usr/share/elasticsearch/modules/transport-netty4/netty-codec-http-4.1.13.Final.jar /usr/share/elasticsearch/modules/transport-netty4/netty-common-4.1.13.Final.jar /usr/share/elasticsearch/modules/transport-netty4/netty-handler-4.1.13.Final.jar /usr/share/elasticsearch/modules/transport-netty4/netty-resolver-4.1.13.Final.jar /usr/share/elasticsearch/modules/transport-netty4/netty-transport-4.1.13.Final.jar /usr/share/elasticsearch/modules/transport-netty4/plugin-descriptor.properties /usr/share/elasticsearch/modules/transport-netty4/plugin-security.policy /usr/share/elasticsearch/modules/transport-netty4/transport-netty4-5.6.12.jar /usr/share/elasticsearch/plugins /var/lib/elasticsearch /var/log/elasticsearch /var/run/elasticsearch [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# rpm -ql elasticsearch |wc -l 126 [root@node101 ~]#
[root@node101 ~]# [root@node101 ~]# vi /etc/elasticsearch/elasticsearch.yml [root@node101 ~]# [root@node101 ~]# cp /etc/elasticsearch/elasticsearch.yml /etc/elasticsearch/elasticsearch.yml-`date +%F` #备份默认的配置文件 [root@node101 ~]# [root@node101 ~]# vi /etc/elasticsearch/elasticsearch.yml [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# grep -v ^# /etc/elasticsearch/elasticsearch.yml cluster.name: yinzhengjie-elasticsearch #指定集群的名称 node.name: node101.yinzhengjie.org.cn #指定当前ES节点的主机名称 path.data: /home/yinzhengjie/elasticsearch/data #指定数据存放路径 path.logs: /home/yinzhengjie/elasticsearch/logs #指定日志的存放路径 network.host: node101.yinzhengjie.org.cn #指定ES对外提供的主机IP地址,我们这里也可以指定主机名 http.port: 9200 #指定ES对外提供服务的访问端口 discovery.zen.ping.unicast.hosts: ["node101.yinzhengjie.org.cn", "node102.yinzhengjie.org.cn","node103.yinzhengjie.org.cn"] #通过ping的方式单播判断节点是否存活 discovery.zen.minimum_master_nodes: 1 #指定最少的主节点。它是用来协调ES集群内部事务的,一般而言,我们这里配置1即可! [root@node101 ~]# [root@node101 ~]#
[root@node101 ~]# [root@node101 ~]# cp /etc/elasticsearch/jvm.options /etc/elasticsearch/jvm.options-`date +%F` [root@node101 ~]# [root@node101 ~]# vi /etc/elasticsearch/jvm.options [root@node101 ~]# [root@node101 ~]# grep "Xm" /etc/elasticsearch/jvm.options|grep -v ^# -Xms1g #注意,如果你的虚拟机呢内存小于或等于2G的同学的话,建议将改值该小!它默认是2G空间! -Xmx1g [root@node101 ~]#
[root@node101 ~]# [root@node101 ~]# mkdir -pv /home/yinzhengjie/elasticsearch/{data,logs} mkdir: created directory ‘/home/yinzhengjie/elasticsearch’ mkdir: created directory ‘/home/yinzhengjie/elasticsearch/data’ mkdir: created directory ‘/home/yinzhengjie/elasticsearch/logs’ [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# ll /home/yinzhengjie/elasticsearch/ total 0 drwxr-xr-x. 2 root root 6 Mar 10 16:30 data drwxr-xr-x. 2 root root 6 Mar 10 16:30 logs [root@node101 ~]#
[root@node101 ~]# [root@node101 ~]# [root@node101 ~]# ll /home/yinzhengjie/elasticsearch/ total 0 drwxr-xr-x. 2 root root 6 Mar 10 16:30 data drwxr-xr-x. 2 root root 6 Mar 10 16:30 logs [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# chown elasticsearch:elasticsearch -R /home/yinzhengjie/elasticsearch/ [root@node101 ~]# [root@node101 ~]# ll /home/yinzhengjie/elasticsearch/ total 0 drwxr-xr-x. 2 elasticsearch elasticsearch 6 Mar 10 16:30 data drwxr-xr-x. 2 elasticsearch elasticsearch 6 Mar 10 16:30 logs [root@node101 ~]# [root@node101 ~]#
4>.启动ElasticSearch集群(启动前,请检查1~3个步骤是否都做了,尤其是目录权限问题,如果你配置的目录elasticsearch没有访问权限的话会导致服务启动不了!)
[root@node101 ~]# systemctl daemon-reload [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# systemctl enable elasticsearch Created symlink from /etc/systemd/system/multi-user.target.wants/elasticsearch.service to /usr/lib/systemd/system/elasticsearch.service. [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# systemctl start elasticsearch [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# ss -ntl | grep 9200 LISTEN 0 128 ::ffff:172.30.1.101:9200 :::* [root@node101 ~]# [root@node101 ~]# ss -ntl | grep 9300 LISTEN 0 128 ::ffff:172.30.1.101:9300 :::* [root@node101 ~]# [root@node101 ~]# systemctl status elasticsearch ● elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2019-03-10 16:55:53 CST; 3min 47s ago Docs: http://www.elastic.co Process: 10539 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS) Main PID: 10541 (java) CGroup: /system.slice/elasticsearch.service └─10541 /bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -server -Xss1m -... Mar 10 16:55:53 node101.yinzhengjie.org.cn systemd[1]: Starting Elasticsearch... Mar 10 16:55:53 node101.yinzhengjie.org.cn systemd[1]: Started Elasticsearch. [root@node101 ~]# [root@node101 ~]#
[root@node101 ~]# [root@node101 ~]# [root@node101 ~]# hostname node101.yinzhengjie.org.cn [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# curl http://node101.yinzhengjie.org.cn:9200/ { "name" : "node101.yinzhengjie.org.cn", "cluster_name" : "yinzhengjie-elasticsearch", "cluster_uuid" : "tKF0B2cyRvGsBpKB7NFHPA", "version" : { "number" : "5.6.12", "build_hash" : "cfe3d9f", "build_date" : "2018-09-10T20:12:43.732Z", "build_snapshot" : false, "lucene_version" : "6.6.1" }, "tagline" : "You Know, for Search" } [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# curl http://node102.yinzhengjie.org.cn:9200/ { "name" : "node102.yinzhengjie.org.cn", "cluster_name" : "yinzhengjie-elasticsearch", "cluster_uuid" : "QJVO3t2JT3Cc0dkR8qxtmA", "version" : { "number" : "5.6.12", "build_hash" : "cfe3d9f", "build_date" : "2018-09-10T20:12:43.732Z", "build_snapshot" : false, "lucene_version" : "6.6.1" }, "tagline" : "You Know, for Search" } [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# curl http://node103.yinzhengjie.org.cn:9200/ { "name" : "node103.yinzhengjie.org.cn", "cluster_name" : "yinzhengjie-elasticsearch", "cluster_uuid" : "tHNyi0tPSxiIRLm12fvxgA", "version" : { "number" : "5.6.12", "build_hash" : "cfe3d9f", "build_date" : "2018-09-10T20:12:43.732Z", "build_snapshot" : false, "lucene_version" : "6.6.1" }, "tagline" : "You Know, for Search" } [root@node101 ~]# [root@node101 ~]#
5>.查看集群节点的信息
[root@node101 ~]# [root@node101 ~]# curl http://node101.yinzhengjie.org.cn:9200/_cat/nodes 172.30.1.101 13 43 0 0.00 0.01 0.08 mdi - node101.yinzhengjie.org.cn 172.30.1.103 14 43 0 0.08 0.03 0.05 mdi * node103.yinzhengjie.org.cn 172.30.1.102 12 42 0 0.00 0.02 0.06 mdi - node102.yinzhengjie.org.cn [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# curl http://node101.yinzhengjie.org.cn:9200/_cat/master 94Amogx-SNSGhHtYAEMfAQ node103.yinzhengjie.org.cn 172.30.1.103 node103.yinzhengjie.org.cn [root@node101 ~]# [root@node101 ~]#
[root@node101 ~]# [root@node101 ~]# curl http://node101.yinzhengjie.org.cn:9200/_cat/health 1552211115 17:45:15 yinzhengjie-elasticsearch green 3 3 0 0 0 0 0 0 - 100.0% [root@node101 ~]# [root@node101 ~]#
三.ElasticSearch的基本使用
1>.创建索引
[root@node101 ~]# [root@node101 ~]# curl -X PUT http://node101.yinzhengjie.org.cn:9200/myindex/students/1 -d '{"Name":"Jason Yin","Age":18,"Job":"大数据SRE"}' {"_index":"myindex","_type":"students","_id":"1","_version":1,"result":"created","_shards":{"total":2,"successful":2,"failed":0},"created":true}[root@node101 ~]# [root@node101 ~]#
2>.查询索引
[root@node101 ~]# [root@node101 ~]# curl http://node101.yinzhengjie.org.cn:9200/myindex/students/1?pretty { "_index" : "myindex", "_type" : "students", "_id" : "1", "_version" : 1, "found" : true, "_source" : { "Name" : "Jason Yin", "Age" : 18, "Job" : "大数据SRE" } } [root@node101 ~]# [root@node101 ~]#
3>.查看分片(只要创建了索引就可以查询分片啦~)
[root@node101 ~]# [root@node101 ~]# curl -X GET http://node101.yinzhengjie.org.cn:9200/_cat/shards myindex 2 r STARTED 0 162b 172.30.1.103 node103.yinzhengjie.org.cn myindex 2 p STARTED 0 162b 172.30.1.102 node102.yinzhengjie.org.cn myindex 3 p STARTED 1 4.3kb 172.30.1.103 node103.yinzhengjie.org.cn myindex 3 r STARTED 1 4.3kb 172.30.1.101 node101.yinzhengjie.org.cn myindex 1 p STARTED 0 162b 172.30.1.101 node101.yinzhengjie.org.cn myindex 1 r STARTED 0 162b 172.30.1.102 node102.yinzhengjie.org.cn myindex 4 r STARTED 0 162b 172.30.1.103 node103.yinzhengjie.org.cn myindex 4 p STARTED 0 162b 172.30.1.101 node101.yinzhengjie.org.cn myindex 0 p STARTED 0 162b 172.30.1.103 node103.yinzhengjie.org.cn myindex 0 r STARTED 0 162b 172.30.1.102 node102.yinzhengjie.org.cn [root@node101 ~]# [root@node101 ~]#
4>.使用jq查询ElasticSearch的返回结果
[root@node101 ~]# yum -y install epel-release Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.huaweicloud.com * extras: ftp.sjtu.edu.cn * updates: mirrors.nwsuaf.edu.cn Resolving Dependencies --> Running transaction check ---> Package epel-release.noarch 0:7-11 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================================================================== Installing: epel-release noarch 7-11 extras 15 k Transaction Summary =================================================================================================================================================================================== Install 1 Package Total download size: 15 k Installed size: 24 k Downloading packages: epel-release-7-11.noarch.rpm | 15 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: RPMDB altered outside of yum. Installing : epel-release-7-11.noarch 1/1 Verifying : epel-release-7-11.noarch 1/1 Installed: epel-release.noarch 0:7-11 Complete! [root@node101 ~]# [root@node101 ~]#
[root@node101 ~]# [root@node101 ~]# yum -y install jq Loaded plugins: fastestmirror epel/x86_64/metalink | 8.0 kB 00:00:00 epel | 4.7 kB 00:00:00 (1/3): epel/x86_64/group_gz | 88 kB 00:00:00 (2/3): epel/x86_64/updateinfo | 957 kB 00:00:00 (3/3): epel/x86_64/primary_db | 6.6 MB 00:00:01 Loading mirror speeds from cached hostfile * base: mirrors.huaweicloud.com * epel: mirrors.yun-idc.com * extras: ftp.sjtu.edu.cn * updates: mirrors.nwsuaf.edu.cn Resolving Dependencies --> Running transaction check ---> Package jq.x86_64 0:1.5-1.el7 will be installed --> Processing Dependency: libonig.so.2()(64bit) for package: jq-1.5-1.el7.x86_64 --> Running transaction check ---> Package oniguruma.x86_64 0:5.9.5-3.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================================================================== Installing: jq x86_64 1.5-1.el7 epel 153 k Installing for dependencies: oniguruma x86_64 5.9.5-3.el7 epel 129 k Transaction Summary =================================================================================================================================================================================== Install 1 Package (+1 Dependent package) Total download size: 282 k Installed size: 906 k Downloading packages: warning: /var/cache/yum/x86_64/7/epel/packages/jq-1.5-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY Public key for jq-1.5-1.el7.x86_64.rpm is not installed (1/2): jq-1.5-1.el7.x86_64.rpm | 153 kB 00:00:00 (2/2): oniguruma-5.9.5-3.el7.x86_64.rpm | 129 kB 00:00:00 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 1.1 MB/s | 282 kB 00:00:00 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Importing GPG key 0x352C64E5: Userid : "Fedora EPEL (7) <epel@fedoraproject.org>" Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5 Package : epel-release-7-11.noarch (@extras) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : oniguruma-5.9.5-3.el7.x86_64 1/2 Installing : jq-1.5-1.el7.x86_64 2/2 Verifying : oniguruma-5.9.5-3.el7.x86_64 1/2 Verifying : jq-1.5-1.el7.x86_64 2/2 Installed: jq.x86_64 0:1.5-1.el7 Dependency Installed: oniguruma.x86_64 0:5.9.5-3.el7 Complete! [root@node101 ~]#
[root@node101 ~]# [root@node101 ~]# yum -y info jq Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.huaweicloud.com * epel: mirrors.yun-idc.com * extras: ftp.sjtu.edu.cn * updates: mirrors.nwsuaf.edu.cn Installed Packages Name : jq Arch : x86_64 Version : 1.5 Release : 1.el7 Size : 351 k Repo : installed From repo : epel Summary : Command-line JSON processor URL : http://stedolan.github.io/jq/ License : MIT and ASL 2.0 and CC-BY and GPLv3 Description : lightweight and flexible command-line JSON processor : : jq is like sed for JSON data – you can use it to slice : and filter and map and transform structured data with : the same ease that sed, awk, grep and friends let you : play with text. : : It is written in portable C, and it has zero runtime : dependencies. : : jq can mangle the data format that you have into the : one that you want with very little effort, and the : program to do so is often shorter and simpler than : you'd expect. [root@node101 ~]#
[root@node101 ~]# curl -s -X GET http://node101.yinzhengjie.org.cn:9200/_search?q=Age:18 | jq . { "took": 4, "timed_out": false, "_shards": { "total": 5, "successful": 5, "skipped": 0, "failed": 0 }, "hits": { "total": 1, "max_score": 1, "hits": [ { "_index": "myindex", "_type": "students", "_id": "1", "_score": 1, "_source": { "Name": "Jason Yin", "Age": 18, "Job": "大数据SRE" } } ] } } [root@node101 ~]# [root@node101 ~]#
[root@node101 ~]# [root@node101 ~]# curl -s -X GET http://node101.yinzhengjie.org.cn:9200/_search?q=Age:18 | jq . { "took": 4, "timed_out": false, "_shards": { "total": 5, "successful": 5, "skipped": 0, "failed": 0 }, "hits": { "total": 1, "max_score": 1, "hits": [ { "_index": "myindex", "_type": "students", "_id": "1", "_score": 1, "_source": { "Name": "Jason Yin", "Age": 18, "Job": "大数据SRE" } } ] } } [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# curl -s -X GET http://node101.yinzhengjie.org.cn:9200/_search?q=Age:18 | jq .took 3 [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# curl -s -X GET http://node101.yinzhengjie.org.cn:9200/_search?q=Age:18 | jq ._shards { "total": 5, "successful": 5, "skipped": 0, "failed": 0 } [root@node101 ~]# [root@node101 ~]# curl -s -X GET http://node101.yinzhengjie.org.cn:9200/_search?q=Age:18 | jq .hits { "total": 1, "max_score": 1, "hits": [ { "_index": "myindex", "_type": "students", "_id": "1", "_score": 1, "_source": { "Name": "Jason Yin", "Age": 18, "Job": "大数据SRE" } } ] } [root@node101 ~]# [root@node101 ~]#
5>.ElasticSearch的官方的查询API
详情请参考:https://www.elastic.co/guide/en/elasticsearch/reference/5.6/_the_search_api.html。