一 ES基础知识介绍

Near Reamtime(NRT)

Elasticsearch 是一个实时的查询平台,从索引数据开始到索引数据结束几乎是1s的时间

Cluster

集群是一个或多个节点的集合,这些节点一起保存数据,并在所有节点上提供联合索引和搜索功能,集群通过唯一的名称(默认为elasticsearch)加以标记,同一个节点只能加入一个集群中。

Node

节点是集群中用来存储数据、参与集群中索引和搜索功能的一台单独的服务器,节点在启动时默认会分配一个随机的UUID作为集群中该节点的身份标识,该名称可以手动在配置文件中指定。

Index

Elasticsearch和RDBMS名词对比
Elasticsearch RDBMS
Indices(indices1,indices2,indices3...) Database(database1,database2,database3...)
Types Tables
Documents Rows
Fileds Columns

Elasticsearch7.4下载

https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.4.2-linux-x86_64.tar.gz

JDK1.8下载

http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.tar.gz

二  安装Elasticsearch

1. 新建用户,并为用户配置环境变量

# groupadd -r elasticsearch
# useradd -r -g elasticsearch -G root elasticsearch
# cat /home/elasticsearch /.bash_profile # .bash_profile # Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi # User specific environment and startup programs export JAVA_HOME=/usr/java/jdk1..0_111
export ES_HOME=/usr/local/elasticsearch
export PATH=$JAVA_HOME/bin:$ES_HOME/bin:$PATH

2. 系统和内核参数优化

# echo "vm.max_map_count=655360" >> /etc/sysctl.conf
# sysctl -p
# cat /etc/security/limits.conf
elasticsearch soft nproc
elasticsearch hard nproc
elasticsearch soft nofile
elasticsearch hard nofile
elasticsearch soft memlock unlimited
elasticsearch hard memlock unlimited

注:如果不进行参数优化,启动elasticsearch时候可能会报如下错误

[--07T09::,][INFO ][o.e.b.BootstrapChecks    ] [sht-sgmhadoopdn-] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: [] bootstrap checks failed
[]: max file descriptors [] for elasticsearch process is too low, increase to at least []
[]: max virtual memory areas vm.max_map_count [] is too low, increase to at least []
[--07T09::,][INFO ][o.e.n.Node ] [sht-sgmhadoopdn-] stopping ...
[--07T09::,][INFO ][o.e.n.Node ] [sht-sgmhadoopdn-] stopped
[--07T09::,][INFO ][o.e.n.Node ] [sht-sgmhadoopdn-] closing ...
[--07T09::,][INFO ][o.e.n.Node ] [sht-sgmhadoopdn-] closed

注:运行elasticsearch的用户最好为elasticsearch,我曾试着用mysqladmin用户运行elasticsearch,但是会报java版本不匹配的错,实际上我的mysqladmin用户的环境变量里已经配置了java,并且已经生效,但是elasticsearch还是读取系统全局的变量,暂时不清楚原因,可以理解为一个未知的bug吧

$ ./elasticsearch --help
Elasticsearch requires at least Java but your Java version from /bin/java does not meet this requirement
[mysqladmin@sht-sgmhadoopdn- bin]$ java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) -Bit Server VM (build 25.111-b14, mixed mode)
[mysqladmin@sht-sgmhadoopdn- bin]$ which java
/usr/java/jdk1..0_111/bin/java
[mysqladmin@sht-sgmhadoopdn- bin]$ /bin/java -version
java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) -Bit Server VM (build 24.0-b56, mixed mode)

3.修改elasticsearch配置文件

$ cat elasticsearch.yml  | grep -v "$^" | grep -v "^#"
cluster.name: dev-es
node.name: sht-sgmhadoopnn-
node.attr.rack: r1
path.data: /usr/local/elasticsearch/data
path.logs: /usr/local/elasticsearch/data/logs
bootstrap.memory_lock: false
network.host: 0.0.0.0
http.port:
cluster.initial_master_nodes: ["sht-sgmhadoopnn-01"]

4.启动elasticsearch

$ cd /usr/local/elasticsearch/bin/
$ ./elasticsearch
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
[2019-11-29T21:40:49,749][INFO ][o.e.e.NodeEnvironment ] [sht-sgmhadoopnn-01] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [41.5gb], net total_space [76.4gb], types [rootfs]
[2019-11-29T21:40:49,756][INFO ][o.e.e.NodeEnvironment ] [sht-sgmhadoopnn-01] heap size [1007.3mb], compressed ordinary object pointers [true]
[2019-11-29T21:40:49,762][INFO ][o.e.n.Node ] [sht-sgmhadoopnn-01] node name [sht-sgmhadoopnn-01], node ID [VwFAki8mQjqxSuujq579NA], cluster name [dev-es]
[2019-11-29T21:40:49,763][INFO ][o.e.n.Node ] [sht-sgmhadoopnn-01] version[7.4.2], pid[15451], build[default/tar/2f90bbf7b93631e52bafb59b3b049cb44ec25e96/2019-10-28T20:40:44.881551Z], OS[Linux/3.10.0-957.12.2.el7.x86_64/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/13.0.1/13.0.1+9]
[2019-11-29T21:40:49,763][INFO ][o.e.n.Node ] [sht-sgmhadoopnn-01] JVM home [/usr/local/elasticsearch-7.4.2/jdk]
[2019-11-29T21:40:49,764][INFO ][o.e.n.Node ] [sht-sgmhadoopnn-01] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch-14884986979711276651, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -Dio.netty.allocator.type=unpooled, -XX:MaxDirectMemorySize=536870912, -Des.path.home=/usr/local/elasticsearch, -Des.path.conf=/usr/local/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=true]
[2019-11-29T21:40:54,923][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [aggs-matrix-stats]
[2019-11-29T21:40:54,923][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [analysis-common]
[2019-11-29T21:40:54,924][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [data-frame]
[2019-11-29T21:40:54,924][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [flattened]
[2019-11-29T21:40:54,929][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [frozen-indices]
[2019-11-29T21:40:54,930][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [ingest-common]
[2019-11-29T21:40:54,930][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [ingest-geoip]
[2019-11-29T21:40:54,931][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [ingest-user-agent]
[2019-11-29T21:40:54,931][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [lang-expression]
[2019-11-29T21:40:54,931][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [lang-mustache]
[2019-11-29T21:40:54,934][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [lang-painless]
[2019-11-29T21:40:54,934][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [mapper-extras]
[2019-11-29T21:40:54,935][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [parent-join]
[2019-11-29T21:40:54,935][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [percolator]
[2019-11-29T21:40:54,935][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [rank-eval]
[2019-11-29T21:40:54,939][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [reindex]
[2019-11-29T21:40:54,939][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [repository-url]
[2019-11-29T21:40:54,940][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [search-business-rules]
[2019-11-29T21:40:54,940][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [spatial]
[2019-11-29T21:40:54,940][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [transport-netty4]
[2019-11-29T21:40:54,944][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [vectors]
[2019-11-29T21:40:54,945][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [x-pack-analytics]
[2019-11-29T21:40:54,945][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [x-pack-ccr]
[2019-11-29T21:40:54,946][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [x-pack-core]
[2019-11-29T21:40:54,946][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [x-pack-deprecation]
[2019-11-29T21:40:54,946][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [x-pack-graph]
[2019-11-29T21:40:54,953][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [x-pack-ilm]
[2019-11-29T21:40:54,954][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [x-pack-logstash]
[2019-11-29T21:40:54,954][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [x-pack-ml]
[2019-11-29T21:40:54,954][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [x-pack-monitoring]
[2019-11-29T21:40:54,955][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [x-pack-rollup]
[2019-11-29T21:40:54,955][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [x-pack-security]
[2019-11-29T21:40:54,959][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [x-pack-sql]
[2019-11-29T21:40:54,959][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [x-pack-voting-only-node]
[2019-11-29T21:40:54,960][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] loaded module [x-pack-watcher]
[2019-11-29T21:40:54,961][INFO ][o.e.p.PluginsService ] [sht-sgmhadoopnn-01] no plugins loaded
[2019-11-29T21:41:04,226][INFO ][o.e.x.s.a.s.FileRolesStore] [sht-sgmhadoopnn-01] parsed [0] roles from file [/usr/local/elasticsearch/config/roles.yml]
[2019-11-29T21:41:06,319][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [sht-sgmhadoopnn-01] [controller/15548] [Main.cc@110] controller (64 bit): Version 7.4.2 (Build 473f61b8a5238b) Copyright (c) 2019 Elasticsearch BV
[2019-11-29T21:41:07,855][DEBUG][o.e.a.ActionModule ] [sht-sgmhadoopnn-01] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[2019-11-29T21:41:08,615][INFO ][o.e.d.DiscoveryModule ] [sht-sgmhadoopnn-01] using discovery type [zen] and seed hosts providers [settings]
[2019-11-29T21:41:10,403][INFO ][o.e.n.Node ] [sht-sgmhadoopnn-01] initialized
[2019-11-29T21:41:10,404][INFO ][o.e.n.Node ] [sht-sgmhadoopnn-01] starting ...
[2019-11-29T21:41:10,642][INFO ][o.e.t.TransportService ] [sht-sgmhadoopnn-01] publish_address {172.16.101.55:9300}, bound_addresses {[::]:9300}
[2019-11-29T21:41:10,657][INFO ][o.e.b.BootstrapChecks ] [sht-sgmhadoopnn-01] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2019-11-29T21:41:10,688][INFO ][o.e.c.c.Coordinator ] [sht-sgmhadoopnn-01] setting initial configuration to VotingConfiguration{VwFAki8mQjqxSuujq579NA}
[2019-11-29T21:41:11,063][INFO ][o.e.c.s.MasterService ] [sht-sgmhadoopnn-01] elected-as-master ([1] nodes joined)[{sht-sgmhadoopnn-01}{VwFAki8mQjqxSuujq579NA}{vo1YU6yIR5y3eevPfr-PvQ}{172.16.101.55}{172.16.101.55:9300}{dilm}{ml.machine_memory=6087860224, rack=r1, xpack.installed=true, ml.max_open_jobs=20} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 1, version: 1, reason: master node changed {previous [], current [{sht-sgmhadoopnn-01}{VwFAki8mQjqxSuujq579NA}{vo1YU6yIR5y3eevPfr-PvQ}{172.16.101.55}{172.16.101.55:9300}{dilm}{ml.machine_memory=6087860224, rack=r1, xpack.installed=true, ml.max_open_jobs=20}]}
[2019-11-29T21:41:11,180][INFO ][o.e.c.c.CoordinationState] [sht-sgmhadoopnn-01] cluster UUID set to [kfD_MSD4SOSuF0gPlKBWVQ]
[2019-11-29T21:41:11,257][INFO ][o.e.c.s.ClusterApplierService] [sht-sgmhadoopnn-01] master node changed {previous [], current [{sht-sgmhadoopnn-01}{VwFAki8mQjqxSuujq579NA}{vo1YU6yIR5y3eevPfr-PvQ}{172.16.101.55}{172.16.101.55:9300}{dilm}{ml.machine_memory=6087860224, rack=r1, xpack.installed=true, ml.max_open_jobs=20}]}, term: 1, version: 1, reason: Publication{term=1, version=1}
[2019-11-29T21:41:11,428][INFO ][o.e.h.AbstractHttpServerTransport] [sht-sgmhadoopnn-01] publish_address {172.16.101.55:9200}, bound_addresses {[::]:9200}
[2019-11-29T21:41:11,429][INFO ][o.e.n.Node ] [sht-sgmhadoopnn-01] started
[2019-11-29T21:41:11,669][INFO ][o.e.g.GatewayService ] [sht-sgmhadoopnn-01] recovered [0] indices into cluster_state
[2019-11-29T21:41:12,228][INFO ][o.e.c.m.MetaDataIndexTemplateService] [sht-sgmhadoopnn-01] adding template [.triggered_watches] for index patterns [.triggered_watches*]
[2019-11-29T21:41:12,370][INFO ][o.e.c.m.MetaDataIndexTemplateService] [sht-sgmhadoopnn-01] adding template [.watches] for index patterns [.watches*]
[2019-11-29T21:41:12,517][INFO ][o.e.c.m.MetaDataIndexTemplateService] [sht-sgmhadoopnn-01] adding template [.watch-history-10] for index patterns [.watcher-history-10*]
[2019-11-29T21:41:12,637][INFO ][o.e.c.m.MetaDataIndexTemplateService] [sht-sgmhadoopnn-01] adding template [.slm-history] for index patterns [.slm-history-1*]
[2019-11-29T21:41:12,741][INFO ][o.e.c.m.MetaDataIndexTemplateService] [sht-sgmhadoopnn-01] adding template [.monitoring-logstash] for index patterns [.monitoring-logstash-7-*]
[2019-11-29T21:41:12,916][INFO ][o.e.c.m.MetaDataIndexTemplateService] [sht-sgmhadoopnn-01] adding template [.monitoring-es] for index patterns [.monitoring-es-7-*]
[2019-11-29T21:41:13,079][INFO ][o.e.c.m.MetaDataIndexTemplateService] [sht-sgmhadoopnn-01] adding template [.monitoring-beats] for index patterns [.monitoring-beats-7-*]
[2019-11-29T21:41:13,195][INFO ][o.e.c.m.MetaDataIndexTemplateService] [sht-sgmhadoopnn-01] adding template [.monitoring-alerts-7] for index patterns [.monitoring-alerts-7]
[2019-11-29T21:41:13,291][INFO ][o.e.c.m.MetaDataIndexTemplateService] [sht-sgmhadoopnn-01] adding template [.monitoring-kibana] for index patterns [.monitoring-kibana-7-*]
[2019-11-29T21:41:13,385][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [sht-sgmhadoopnn-01] adding index lifecycle policy [watch-history-ilm-policy]
[2019-11-29T21:41:13,503][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [sht-sgmhadoopnn-01] adding index lifecycle policy [slm-history-ilm-policy]
[2019-11-29T21:41:13,934][INFO ][o.e.l.LicenseService ] [sht-sgmhadoopnn-01] license [c6634b36-15ab-4c2f-a1d1-01dfc4dafe4e] mode [basic] - valid
[2019-11-29T21:41:13,935][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [sht-sgmhadoopnn-01] Active license is now [BASIC]; Security is disabled

注:我在CentOS6启动时会报错

[--10T10::,][WARN ][o.e.b.JNANatives         ] unable to install syscall filter:
java.lang.UnsupportedOperationException: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER compiled in
at org.elasticsearch.bootstrap.SystemCallFilter.linuxImpl(SystemCallFilter.java:) ~[elasticsearch-5.5..jar:5.5.]
at org.elasticsearch.bootstrap.SystemCallFilter.init(SystemCallFilter.java:) ~[elasticsearch-5.5..jar:5.5.]
at org.elasticsearch.bootstrap.JNANatives.tryInstallSystemCallFilter(JNANatives.java:) [elasticsearch-5.5..jar:5.5.]
at org.elasticsearch.bootstrap.Natives.tryInstallSystemCallFilter(Natives.java:) [elasticsearch-5.5..jar:5.5.]
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:) [elasticsearch-5.5..jar:5.5.]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:) [elasticsearch-5.5..jar:5.5.]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:) [elasticsearch-5.5..jar:5.5.]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:) [elasticsearch-5.5..jar:5.5.]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:) [elasticsearch-5.5..jar:5.5.]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:) [elasticsearch-5.5..jar:5.5.]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:) [elasticsearch-5.5..jar:5.5.]
at org.elasticsearch.cli.Command.main(Command.java:) [elasticsearch-5.5..jar:5.5.]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:) [elasticsearch-5.5..jar:5.5.]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:) [elasticsearch-5.5..jar:5.5.]

https://github.com/elastic/elasticsearch/issues/22899

解决办法:在elasticsearch.yml配置文件添加

bootstrap.memory_lock: false
bootstrap.system_call_filter: false

注:不加任何参数为前台启动,以后台进程启动的话需执行下面的命令

[elsearch@sht-sgmhadoopdn-04 bin]$ ./elasticsearch &

[elsearch@sht-sgmhadoopdn-04 bin]$ ./elasticsearch -d

5.将elasticsearch添加为系统服务

# cat /usr/lib/systemd/system/elasticsearch.service
[Unit]
Description=Elasticsearch
Documentation=http://www.elastic.co
Wants=network-online.target
After=network-online.target [Service]
Type=notify
RuntimeDirectory=elasticsearch
PrivateTmp=true
Environment=ES_HOME=/usr/local/elasticsearch
Environment=ES_PATH_CONF=/usr/local/elasticsearch/config
Environment=PID_DIR=/var/run/elasticsearch
Environment=ES_SD_NOTIFY=true
EnvironmentFile=-/etc/sysconfig/elasticsearch WorkingDirectory=/usr/local/elasticsearch User=elasticsearch
Group=elasticsearch
Type=forking
Restart=always ExecStart=/usr/local/elasticsearch/bin/elasticsearch -d -p ${PID_DIR}/elasticsearch.pid # StandardOutput is configured to redirect to journalctl since
# some error messages may be logged in standard output before
# elasticsearch logging system is initialized. Elasticsearch
# stores its logs in /var/log/elasticsearch and does not use
# journalctl by default. If you also want to enable journalctl
# logging, you can simply remove the "quiet" option from ExecStart.
StandardOutput=journal
StandardError=inherit # Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE= # Specifies the maximum number of processes
LimitNPROC= # Specifies the maximum size of virtual memory
LimitAS=infinity # Specifies the maximum file size
LimitFSIZE=infinity # Disable timeout logic and wait until process is stopped
TimeoutStopSec= # SIGTERM signal is used to stop the Java process
KillSignal=SIGTERM # Send the signal only to the JVM rather than its control group
KillMode=process # Java process is never killed
SendSIGKILL=no # When a JVM receives a SIGTERM signal it exits with code
SuccessExitStatus= [Install]
WantedBy=multi-user.target # Built for ${project.name}-${project.version} (${project.name})
# systemctl daemon-reload
# systemctl enable elasticsearch
# systemctl start elasticsearch
# systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: active (running) since Fri -- :: CST; 34s ago
Docs: http://www.elastic.co
Process: ExecStart=/usr/local/elasticsearch/bin/elasticsearch -d -p ${PID_DIR}/elasticsearch.pid (code=exited, status=/SUCCESS)
Main PID: (java)
Tasks:
Memory: .2G
CGroup: /system.slice/elasticsearch.service
├─ /usr/local/elasticsearch/jdk/bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction= -XX:+UseCMSInitiatingOccupancyOnly -Des.networkaddress.cache.ttl= -Des.networkaddress.cache.negative.ttl= -XX:+Alw...
└─ /usr/local/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller Dec :: sht-sgmhadoopnn- systemd[]: Starting Elasticsearch...
Dec :: sht-sgmhadoopnn- systemd[]: Started Elasticsearch.

Elasticsearch5.5安装部署的更多相关文章

  1. elasticsearch+kibana+metricbeat安装部署方法

    elasticsearch+kibana+metricbeat安装部署方法 本文是elasticsearch + kibana + metricbeat,没有涉及到logstash部分.通过beat收 ...

  2. Elasticsearch学习之ElasticSearch 5.0.0 安装部署常见错误或问题

    ElasticSearch 5.0.0 安装部署常见错误或问题 问题一: [--06T16::,][WARN ][o.e.b.JNANatives ] unable to install syscal ...

  3. elasticsearch5.5安装

    beat --------  kafka -------- logstash---------------elasticsearch--------------kibana beat配置文件 [roo ...

  4. Oracle安装部署,版本升级,应用补丁快速参考

    一.Oracle安装部署 1.1 单机环境 1.2 Oracle RAC环境 1.3 Oracle DataGuard环境 1.4 主机双机 1.5 客户端部署 二.Oracle版本升级 2.1 单机 ...

  5. KVM安装部署

    KVM安装部署 公司开始部署KVM,KVM的全称是kernel base virtual machine,对KVM虚拟化技术研究了一段时间, KVM是基于硬件的完全虚拟化,跟vmware.xen.hy ...

  6. Linux平台oracle 11g单实例 + ASM存储 安装部署 快速参考

    操作环境:Citrix虚拟化环境中申请一个Linux6.4主机(模板)目标:创建单机11g + ASM存储 数据库 1. 主机准备 2. 创建ORACLE 用户和组成员 3. 创建以下目录并赋予对应权 ...

  7. 分布式文件系统 - FastDFS 在 CentOS 下配置安装部署

    少啰嗦,直接装 看过上一篇分布式文件系统 - FastDFS 简单了解一下的朋友应该知道,本次安装是使用目前余庆老师开源的最新 V5.05 版本,是余庆老师放在 Github 上的,和目前你能在网络上 ...

  8. C# winform安装部署(转载)

    c# winform 程序打包部署 核心总结: 1.建议在完成的要打包的项目外,另建解决方案建立安装部署项目(而不是在同一个解决方案内新建),在解决方案上右击-〉添加-〉现有项目-〉选择你要打包的项目 ...

  9. Ubuntu14.04 Django Mysql安装部署全过程

    Ubuntu14.04 Django Mysql安装部署全过程   一.简要步骤.(阿里云Ubuntu14.04) Python安装 Django Mysql的安装与配置 记录一下我的部署过程,也方便 ...

随机推荐

  1. SQL中exsit和in

    本周在做ETL的时候踩了个小坑 A表中数据有18条,有字段UserID B表与A表结构相同,但只有16条数据(手动删除2条,更改2条UserID为不重复的其他值) 当 Select UserID fr ...

  2. mysql 目录

    初识数据库 mysql 初识sql语句 mysql 操作sql语句 mysql 数据库操作 mysql 数据表操作 mysql 数据操作 mysql 权限管理 mysql内置功能之视图.触发器.事务. ...

  3. Socket,ServerSocket,WebSocket

    一 区别 首先来说下区别吧, Socket和ServerSocket 指传输层网络接口协议,是基于套接字的服务端和客户端实现. 而WebScoket是应用层协议,是客户端-服务器的异步通信方法,用于双 ...

  4. java框架之Hibernate(2)-持久化类&主键生成策略&缓存&事务&查询

    持久化类 概述 持久化:将内存中的对象持久化到数据库中的过程就是持久化.Hibernate 就是用来进行持久化的框架. 持久化类:一个 Java 对象与数据库的表建立了映射关系,那么这个类在 Hibe ...

  5. python基础(10)-匿名函数&内置函数

    匿名函数 例子 返回两个数的和 def add(x, y): return x + y # 等价于 add = lambda x, y: x + y 返回字典中值最大的key dic = {'a': ...

  6. 建立请求号 request

    1:获取TR号(一般由团队的负责人创建,发出) 2:进入 i7p系统 3:点击process 4:输入tr号 5:选中 正确的请求号,右键> process item> add task ...

  7. CentOS6.10安装redis5.0

    1.以安装redis5.0.0为例 下载安装包:http://redis.io 安装非常简单! [root@centos6 ~]#yum install gcc #需要先安装GCC,如果已安装请忽略 ...

  8. UML第一次作业

    一. 用例图:用例图(usecase diagram)是UML用于描述软件功能的图形.用例图包括用例.参与者及其关系,用例图也可以包括注释和约束.程序员要画时序图啥的用其他的比较麻烦,用plantum ...

  9. Unicode编码学习

    unicode基础知识 简单来说,** unicode 是字符集,utf-8,utf-16,utf-32是编码规则.** unicode 字符集: ttps://unicode-table.com/ ...

  10. SQL Server 百万级数据提高查询速度的方法(转)

    1.应尽量避免在 where 子句中使用!=或<>操作符,否则将引擎放弃使用索引而进行全表扫描.2.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及 ...