|
1.JDK的版本问题[2016-09-17 15:39:30,231][ERROR][bootstrap ] Exceptionjava.lang.RuntimeException: Java version: Oracle Corporation 1.7.0_45 [OpenJDK 64-Bit Server VM 24.45-b08] suffers from critical bug https://bugs.openjdk.java.net/browse/JDK-8024830 which can cause data
corruption.
Please upgrade the JVM, see http://www.elastic.co/guide/en/e ... /_installation.html for current recommendations.
If you absolutely cannot upgrade, please add -XX:-UseSuperWord to the JAVA_OPTS environment variable.
Upgrading is preferred, this workaround will result in degraded performance.
解决方法:安装最新版本的jdk1.8来解决这个问题;
2.配置文件中配置项的冒号前后加空格问题
Exception in thread "main" SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: ElasticsearchParseException[malformed, expected settings to start with 'object', instead was [VALUE_STRING]];
解决方法:在配置文件中的配置项的冒号前后增加空格;例如: network.host : 192.168.0.36
3.启动用户问题:
root@localhost bin]# Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root.
解决方法:不能用root启动,换普通用户,注意需要用户有执行权限,包括写日志的权限;
否则会有类似的错误:
[feng@localhost ~]$ Exception in thread "main" java.lang.IllegalStateException: Unable to access 'path.scripts' (/usr/local/elk/elasticsearch/config/scripts)
Likely root cause: java.nio.file.AccessDeniedException: /usr/local/elk/elasticsearch/config/scripts
4.启动选项问题:
+ exec /usr/bin/java -Xms256m -Xmx1g -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -Dfile.encoding=UTF-8 -Djna.nosys=true -Des.path.home=/usr/local/elk/elasticsearch -cp '/usr/local/elk/elasticsearch/lib/elasticsearch-2.4.0.jar:/usr/local/elk/elasticsearch/lib/*' org.elasticsearch.bootstrap.Elasticsearch start start -d
+ exit 0
[iyunv@localhost bin]# ERROR: Parameter [start]does not start with --
解决方法:启动时不加start ,例如: elasticsearch -d
|
评分
-
查看全部评分
|