1. 程式人生 > >elasticsearch 在centOS 啟動報錯 UnsupportedOperationException 異常

elasticsearch 在centOS 啟動報錯 UnsupportedOperationException 異常

在這裡插入圖片描述

java.lang.UnsupportedOperationException: 
	seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed

原因:

因為Centos6不支援SecComp,而ES預設bootstrap.system_call_filter為true進行檢測,所以導致檢測失敗,失敗後直接導致ES不能啟動解決:
修改elasticsearch.yml 新增一下內容 :

bootstrap.memory_lock: false
bootstrap.system_call_filter: false