新特性
- 支持lucence 6.x:索引性能提升
- 新增sliced scroll类型:并发遍历
- 新增profile API:查询优化
- 新增reindex:对数据进行重建
- 新增ingest节点
- 磁盘空间少一半;索引时间少一半;查询性能提升25%;IPV6也支持了
- 为什么快,底层使用的是Block k-d trees,核心思想是将数字类型编码成定长的字节数组,对定长的字节数组内容进行编码排序,然后来构建二叉树,然后依次递归构建,目前底层支持8个维度和最多每个维度16个字节,基本满足大部分场景。
- 等等
安装java
代码语言:javascript复制tar xf jdk-8u151-linux-x64.tar.gz
vim /etc/profile
export JAVA_HOME=/opt/jdk1.8/
export JAVA_BIN=/opt/jdk1.8/bin
export PATH=${JAVA_HOME}bin:$PATH
export CLASSPATH=.:${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jar
source /etc/profile
[root@localhost bin]# java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
创建用户
代码语言:javascript复制[root@localhost bin]# useradd elk
[root@localhost bin]# echo "vm.max_map_count=262144" >>/etc/sysctl.conf
[root@localhost bin]# vi /etc/security/limits.conf
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
[root@localhost local]# vi /etc/security/limits.d/90-nproc.conf
* soft nproc 2048
root soft nproc unlimited
[root@localhost local]# sysctl -p
ERROR: [1] bootstrap checks failed
[1]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
解决方法:在elasticsearch.yml中配置bootstrap.system_call_filter为false,注意要在Memory下面:
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
##配置文件
[root@localhost elasticsearch-5.4.1]# cat config/elasticsearch.yml | grep -v "#"
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
network.host: 128.0.0.101
http.port: 9200
查看安装
代码语言:javascript复制[root@localhost elasticsearch-5.4.1]# curl 128.0.0.101:9200
{
"name" : "u9dcelG",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "9jO3De99QU-pF9yiO306Aw",
"version" : {
"number" : "5.4.1",
"build_hash" : "2cfe0df",
"build_date" : "2017-05-29T16:05:51.443Z",
"build_snapshot" : false,
"lucene_version" : "6.5.1"
},
"tagline" : "You Know, for Search"
}