Linux环境
[root@CZ-QMRKJKXXPT-WW-WEB1 ~]# uname -a
Linux CZ-QMRKJKXXPT-WW-WEB1 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 17:27:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@CZ-QMRKJKXXPT-WW-WEB1 ~]# cat /proc/version
Linux version 2.6.32-642.el6.x86_64 (mockbuild@worker1.bsys.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) ) #1 SMP Tue May 10 17:27:01 UTC 2016
[root@CZ-QMRKJKXXPT-WW-WEB1 ~]# cat /etc/issue
CentOS release 6.8 (Final)
Kernel
on an m
1、如何指定ES使用项目自带jdk
#备份
cp elasticsearch-env elasticsearch-envcopy
#修改
vim vim elasticsearch-env
将
# now set the path to java
if [ ! -z "$ES_JAVA_HOME" ]; then
JAVA="$ES_JAVA_HOME/bin/java"
JAVA_TYPE="ES_JAVA_HOME"
elif [ ! -z "$JAVA_HOME" ]; then
# fallback to JAVA_HOME
echo "warning: usage of JAVA_HOME is deprecated, use ES_JAVA_HOME" >&2
JAVA="$JAVA_HOME/bin/java"
JAVA_TYPE="JAVA_HOME"
else
# use the bundled JDK (default)
if [ "$(uname -s)" = "Darwin" ]; then
# macOS has a different structure
JAVA="$ES_HOME/jdk.app/Contents/Home/bin/java"
else
JAVA="$ES_HOME/jdk/bin/java"
fi
JAVA_TYPE="bundled JDK"
fi
修改为
# now set the path to java
#if [ ! -z "$ES_JAVA_HOME" ]; then
# JAVA="$ES_JAVA_HOME/bin/java"
# JAVA_TYPE="ES_JAVA_HOME"
#elif [ ! -z "$JAVA_HOME" ]; then
# fallback to JAVA_HOME
# echo "warning: usage of JAVA_HOME is deprecated, use ES_JAVA_HOME" >&2
# JAVA="$JAVA_HOME/bin/java"
# JAVA_TYPE="JAVA_HOME"
#else
# use the bundled JDK (default)
if [ "$(uname -s)" = "Darwin" ]; then
# macOS has a different structure
JAVA="$ES_HOME/jdk.app/Contents/Home/bin/java"
else
JAVA="$ES_HOME/jdk/bin/java"
fi
JAVA_TYPE="bundled JDK"
#fi
2、can not run elasticsearch as root
#创建用户:elasticsearch
adduser elasticsearch
# 创建用户密码,需要输入两次
passwd elasticsearch
#将对应的文件夹权限赋给该用户
chown -R elasticsearch elasticsearch-7.15.1
su elasticsearch
3、unable to install syscall filter
使用的是centos6,其linux内核版本为2.6。而Elasticsearch的插件要求至少3.5以上版本 。
修改confi
bootstrap.system_call_filter: false
4、exception during geoip databases update
此版本将GeoIp功能默认开启了采集。在默认的启动下是会去官网的默认地址下获取最新的Ip的GEO信息
在elasticsearch.yml中添加配置
ingest.geoip.downloader.enabled: false