一 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. 【Linux】-NO.87.Assembly.1.滴水逆向.1.001-【介绍】-

    1.0.0 Summary Tittle:[Linux]-NO.87.Assembly.1.滴水逆向.1.001-[基础]- Style:Java Series:Log4j Since:2017-04 ...

  2. openshift 容器云从入门到崩溃之十《容器监控-数据展示》

    POD资源历史曲线(CPU.内存.网络) 监控方案heapster+hawkular-metrics+hawkular-cassandra heapster负责收集数据 hawkular-cassan ...

  3. 深入理解Java虚拟机1-chap1-2-斗之气8段

    1.HotSpot VM:热点代码探测能力,与JIT技术共同进行编译优化,输出高质量代码 2.运行时数据区域 程序计数器:控制程序执行顺序,无OOM Java虚拟机栈:生命周期与线程一致,描述Java ...

  4. cocos2d-x JS 本地玩家位置跟服务器玩家位置转换相关

    //各种游戏人数情况下的本地位置配置mb.LOCAL_POS_LIST = { 2 : [0, 2], 3 : [0, 1, 3], 4 : [0, 1, 2, 3]}; /*------------ ...

  5. 关于var、let、const的故事

    对于一门编程语言来说,变量与常量是再正常不过的两种,JavaScript是一直解释型的弱类型语言. JavaScript中变量或者常量可以用var.let.const(后两者是ES6的新特性). 1. ...

  6. 清空nohup日志

    #清空nohup日志cat /dev/null > /tpdata/www/wxapp_domain/nohup.out

  7. IDEA中文出现乱码解决(转)

    转自:http://lcl088005.iteye.com/blog/2284696 我是个idea的忠实用户,新公司的项目都是用eclipse做的,通过svn拉下代码后发现,注释的内容里,中文内容都 ...

  8. 服务器日志文件Web远程查看

    公司买的一款企业应用软件,所有透过应用操作DB的操作都会生成有日志,日志是以文本文件的形式存放在服务器上,后缀名为*.log.1,*.log.2之类的,软件本身也提供功能查询这些日志,但这个查询的功能 ...

  9. Template模板

     目标 模板介绍 模板变量 常用标签 常用过滤器 自定义过滤器 模板结构 加载静态文件 一 模板介绍 在之前的章节中,视图函数只是直接返回文本,而在实际生产环境中其实很少这样用,因为实际的页面大多是带 ...

  10. 高度自适应不能触发transition的解决方法

    1. 前言  在我们不能确定一个元素的高度的时候,要使用transition过渡,是不会触发的,比如一个p标签 内容行数不固定  我们可能就要初始 height: 0 ; 过渡到 height: au ...