早上在服務器上安裝elasticsearch集羣,在其中的一臺上面安裝好elasticsearch以後安裝了一些插件,其中一個插件是marvel,結果多是新版本不支持這個插件,就沒有安裝成功,也就索性沒管,安裝了head和kopf插件,安裝完以後改了一下配置文件css
systemctl restart elasticssearch重啓,結果卻報錯了,報錯以下:java
[2017-03-15 14:58:42,874][WARN ][bootstrap ] Unable to lock JVM Memory: error=12,reason=Cannot allocate memory
[2017-03-15 14:58:42,874][WARN ][bootstrap ] This can result in part of the JVM being swapped out.
[2017-03-15 14:58:42,874][WARN ][bootstrap ] Increase RLIMIT_MEMLOCK, soft limit: 65536, hard limit: 65536
[2017-03-15 14:58:42,874][WARN ][bootstrap ] These can be adjusted by modifying /etc/security/limits.conf, for example:
# allow user 'elasticsearch' mlockall
elasticsearch soft memlock unlimited
elasticsearch hard memlock unlimited
[2017-03-15 14:58:42,874][WARN ][bootstrap ] If you are logged in interactively, you will have to re-login for the new limits to take effect.
[2017-03-15 14:58:43,084][INFO ][node ] [linux-node-1] version[2.4.4], pid[3869], build[fcbb46d/2017-01-03T11:33:16Z]
[2017-03-15 14:58:43,084][INFO ][node ] [linux-node-1] initializing ...
[2017-03-15 14:58:43,832][INFO ][plugins ] [linux-node-1] modules [reindex, lang-expression, lang-groovy], plugins [head, marvel-agent, kopf], sites [kopf, head]
[2017-03-15 14:58:43,878][INFO ][env ] [linux-node-1] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [15gb], net total_space [19gb], spins? [unknown], types [rootfs]
[2017-03-15 14:58:43,879][INFO ][env ] [linux-node-1] heap size [1015.6mb], compressed ordinary object pointers [true]
[2017-03-15 14:58:43,943][ERROR][bootstrap ] Exception
java.lang.IllegalStateException: marvel plugin requires the license plugin to be installed
at org.elasticsearch.marvel.license.LicenseModule.verifyLicensePlugin(LicenseModule.java:37)
at org.elasticsearch.marvel.license.LicenseModule.<init>(LicenseModule.java:25)
at org.elasticsearch.marvel.MarvelPlugin.nodeModules(MarvelPlugin.java:89)
at org.elasticsearch.plugins.PluginsService.nodeModules(PluginsService.java:263)
at org.elasticsearch.node.Node.<init>(Node.java:179)
at org.elasticsearch.node.Node.<init>(Node.java:140)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:194)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:286)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:45)
發現下面爆了個licence錯誤,說 marvel plugin requires the license plugin to be installed,因而想到那個插件沒有安裝成功,去plugin目錄下面把marvel-agent目錄移除了,重啓就正常了node