1. 程式人生 > >ElasticSearch 5 安裝部署常見錯誤或問題

ElasticSearch 5 安裝部署常見錯誤或問題

問題1:

uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root

問題原因:不能使用root使用者啟動
解決方案:改用別的使用者

問題2:

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:350) ~[elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.bootstrap.SystemCallFilter.init(SystemCallFilter.java:638) ~[elasticsearch-5.4.0.jar:5.4.0
] at org.elasticsearch.bootstrap.JNANatives.tryInstallSystemCallFilter(JNANatives.java:215) [elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.bootstrap.Natives.tryInstallSystemCallFilter(Natives.java:99) [elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.bootstrap.Bootstrap.initializeNatives
(Bootstrap.java:111) [elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:204) [elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:360) [elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) [elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114) [elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67) [elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) [elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.cli.Command.main(Command.java:88) [elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) [elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) [elasticsearch-5.4.0.jar:5.4.0]

原因:報了一大串錯誤,大家不必驚慌,其實只是一個警告,主要是因為你Linux版本過低造成的。

解決方案:
1、重新安裝新版本的Linux系統
2、警告不影響使用,可以忽略

問題3:

ERROR: bootstrap checks failed
memory locking requested for elasticsearch process but memory is not locked

原因:鎖定記憶體失敗

解決方案:
切換到root使用者,編輯limits.conf配置檔案, 新增類似如下內容:
sudo vim /etc/security/limits.conf

新增如下內容:
* soft memlock unlimited
* hard memlock unlimited
備註:* 代表Linux所有使用者名稱稱

儲存、退出、重新登入才可生效
臨時取消限制
ulimit -l unlimited

問題4:

ERROR: bootstrap checks failed
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

原因:無法建立本地檔案問題,使用者最大可建立檔案數太小

解決方案:

切換到root使用者,編輯limits.conf配置檔案, 新增類似如下內容:
sudo vim /etc/security/limits.conf

新增如下內容:
* soft nofile 65536
* hard nofile 131072
備註:* 代表Linux所有使用者名稱稱

儲存、退出、重新登入才可生效

問題5:

max number of threads [1024] for user [es] is too low, increase to at least [2048]
原因:無法建立本地執行緒問題,使用者最大可建立執行緒數太小
解決方案:切換到root使用者,進入limits.d目錄下,修改90-nproc.conf 配置檔案。

sudo vim /etc/security/limits.d/90-nproc.conf

找到如下內容:
* soft nproc 1024

修改為
* soft nproc 2048

問題6:

max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
原因:最大虛擬記憶體太小
解決方案:切換到root使用者下,修改配置檔案sysctl.conf

sudo vim /etc/sysctl.conf

新增下面配置:
vm.max_map_count=655360

並執行命令:
sysctl -p

問題7:

system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
問題原因:因為Centos6不支援SecComp

SecComp是Linux kernel (自從2.6.23版本之後)所支援的一種簡潔的sandboxing機制。它能使一個程序進入到一種“安全”執行模式,該模式下的程序只能呼叫4種系統呼叫(system calls),即read(), write(), exit()和sigreturn(),否則程序便會被終止。

而ES5.2以後的版本預設bootstrap.system_call_filter為true進行檢測,所以導致檢測失敗,失敗後直接導致ES不能啟動。
詳見 :https://github.com/elastic/elasticsearch/issues/22899
System call filter settingedit
Elasticsearch has attempted to install a system call filter since version 2.1.0. These are enabled by default and could be disabled via bootstrap.seccomp. The naming of this setting is poor since seccomp is specific to Linux but Elasticsearch attempts to install a system call filter on various operating systems. Starting in Elasticsearch 5.2.0, this setting has been renamed to bootstrap.system_call_filter. The previous setting is still support but will be removed in Elasticsearch 6.0.0.

解決方法:在elasticsearch.yml中配置bootstrap.system_call_filter為false,注意要在Memory下面:
bootstrap.memory_lock: false
bootstrap.system_call_filter: false

問題8:

ElasticSearch啟動找不到主機或路由
原因:ElasticSearch 單播配置有問題
解決方案:
檢查ElasticSearch中的配置檔案
vim config/elasticsearch.yml
找到如下配置:
discovery.zen.ping.unicast.hosts:[“192.168..:9300”,”192.168..:9300”]
一般情況下,是這裡配置有問題,注意書寫格式

問題9:

org.elasticsearch.transport.RemoteTransportException: Failed to deserialize exception response from stream
原因:ElasticSearch節點之間的jdk版本不一致
解決方案:ElasticSearch叢集統一jdk環境ls

問題10:

Unsupported major.minor version 52.0
原因:jdk版本問題太低
解決方案:更換jdk版本,ElasticSearch5.0.0支援jdk1.8.0

問題11:

bin/elasticsearch-plugin install license
ERROR: Unknown plugin license

原因:ElasticSearch5.0.0以後外掛命令已經改變
解決方案:使用最新命令安裝所有外掛
bin/elasticsearch-plugin install x-pack

相關推薦

ElasticSearch 5 安裝部署常見錯誤問題

問題1: uncaught exception in thread [main] org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not r

ElasticSearch 5.0.0 安裝部署常見錯誤問題

[2016-11-06T16:27:21,712][WARN ][o.e.b.JNANatives ] unable to install syscall filter: Java.lang.UnsupportedOperationException: seccomp

ElasticSearch 5.X安裝部署常見錯誤以及解決辦法

Java.lang.UnsupportedOperationException: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMPandCONFIG_SECCOMP_FILTERcompiledinatorg.elasticsearch

hive2.*安裝部署常見錯誤總結(連載)

異常一、java.lang.RuntimeException Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate o

elasticSearch安裝常見錯誤問題

問題1: uncaught exception in thread [main] org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not r

mysql-5.7.23版本安裝以及常見錯誤(詳細)

作業系統:windows7 64-bit 資料庫版本:mysql-5.7.23-winx64 1. 首先去官網下載符合作業系統的資料庫版本:https://dev.mysql.com/downloads/mysql/ 2. 下載之後解壓縮到某個資料夾或目錄下,我的是D:\mysql-5.

ElasticSearch-安裝以及常見錯誤

問題一:警告提示 [2016-11-06T16:27:21,712][WARN ][o.e.b.JNANatives ] unable to install syscall filter:  java.lang.UnsupportedOperationException: seccomp unavailab

(轉)ubuntu源碼編譯安裝php常見錯誤解決辦法

ttf tar.gz mcr ibm 地址 sin make zip .org 原文地址 http://blog.csdn.net/white__cat/article/details/28907535 ‘./configure’ ‘–prefix=/usr/lo

windows 安裝Scrapy常見錯誤總結

window scrapy 寫這篇文章,不僅是為了匯總安裝Scrapy的常見安裝問題,還自己獨立解決問題的能力。從一開始報VS C++版本的錯誤,到後來在CentOS運行pip install lxml很慢(CentOS 7 是一臺虛擬機)。這是一種常見的安裝lxml的異常情況:電腦環境:win10 64位

PHP編譯安裝常見錯誤解決辦法

containe -c libmcrypt led form vpx char win sta PHP編譯安裝時常見錯誤解決辦法 This article is post on https://coderwall.com/p/ggmpfa configur

centos-6.5安裝部署LNMP環境

worker download $path format java medium dump ddr 下載源 系統信息: 1 2 3 4 [root@zww ~]# cat /etc/redhat-release CentOS release 6.

Docker安裝使用常見錯誤

結果 64bit ted 選擇 pie mod interface upd any 一、啟動Docker Toolbox如果出現下面的問題 VBoxManage.exe: error: Raw-mode is unavailable courtesy of Hyper-V.

Apache (支援IPv6) 安裝常見錯誤

1:下載支援IPv6的Apache版本 (http://www.apachehaus.com/cgi-bin/download.plx)可以 找到你想要各種Apache支援IPv6的版本,記得安裝對應的vc9 和VC11。 2:下載後,解壓到你想要的目錄。(E:\web server\Apach

PHP編譯安裝常見錯誤解決辦法,php編譯常見錯誤

轉載自:http://www.bkjia.com/PHPjc/1008013.html   This article is post on https://coderwall.com/p/ggmpfa configure: error: xslt-config not foun

Vcenter server 5.5安裝部署

VMware Client 連結:https://pan.baidu.com/s/1ByKQ31LUE-mJiw2Nffy_hw 提取碼:qfva   配置SQL Server 2008 R2 1、選擇啟動 SQL Server Management Studio。   &

Centos 7.5安裝部署redis 5.0.0集群

per 追加 onf redis3 分享圖片 c-c 防火墻 conf tcp Redis是一個開源的使用ANSI C語言編寫、支持網絡、可基於內存亦可持久化的日誌型、Key-Value數據庫,並提供多種語言的API。和Memcached類似,但它支持存儲的value類型相

IIS網站部署常見錯誤記錄

1、網站部署步驟 開啟IIS服務、開啟IIS管理器、新增網站、修改程式池(4.0)、部署完成。 2、常見問題記錄 (1)、對於web.config連線資料庫的配置為windows身份驗證,登入時(實際就是訪問資料庫時)會報這個錯。 <connectionStrings> <add

elasticsearch搜尋引擎安裝部署

實驗環境:redhat6.5 server1 172.25.35.1 redhat6.5 server1 172.25.35.2redhat6.5 server1 172.25.35.3準備安裝包;[[email protected] elk]# lsbigdesk-master.zip jemal

ElasticSearch安裝常見問題

1. Elasticsearch下載地址: 2.elasticsearch-head外掛下載地址: https://github.com/mobz/elasticsearch-head/archive/master.zip 3.使用Elasticsearch5.

Nginx安裝常見錯誤

1.Nginx安裝環境 Nginx是C語言開發,建議在linux上執行,本教程使用Centos7.0作為安裝環境.1)gcc安裝nginx需要先將官網下載的原始碼進行編譯,編譯依賴gcc環境,如果沒有gcc環境,需要安裝gcc需要執行的命令:yum install gcc-c++ 2)