橡皮、老虎皮、狮子皮哪一个最不好?

调试ES5.6.3代码遇到以下问题,有人知道什么问题吗?

Elasticsearch | 作者 chenchen | 发布于2017年11月18日 | 阅读数:4113


"C:\Program Files\Java\jre1.8.0_151\bin\java" -Des.path.home=E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\ -Djave.security.policy=E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\config\elasticsearch.policy -Dlog4j2.disable.jmx=true "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.5\lib\idea_rt.jar=51800:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.5\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jre1.8.0_151\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_151\lib\deploy.jar;C:\Program Files\Java\jre1.8.0_151\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jre1.8.0_151\lib\ext\cldrdata.jar;C:\Program Files\Java\jre1.8.0_151\lib\ext\dnsns.jar;C:\Program Files\Java\jre1.8.0_151\lib\ext\jaccess.jar;C:\Program Files\Java\jre1.8.0_151\lib\ext\jfxrt.jar;C:\Program Files\Java\jre1.8.0_151\lib\ext\localedata.jar;C:\Program Files\Java\jre1.8.0_151\lib\ext\nashorn.jar;C:\Program Files\Java\jre1.8.0_151\lib\ext\sunec.jar;C:\Program Files\Java\jre1.8.0_151\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jre1.8.0_151\lib\ext\sunmscapi.jar;C:\Program Files\Java\jre1.8.0_151\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jre1.8.0_151\lib\ext\zipfs.jar;C:\Program Files\Java\jre1.8.0_151\lib\javaws.jar;C:\Program Files\Java\jre1.8.0_151\lib\jce.jar;C:\Program Files\Java\jre1.8.0_151\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_151\lib\jfxswt.jar;C:\Program Files\Java\jre1.8.0_151\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_151\lib\management-agent.jar;C:\Program Files\Java\jre1.8.0_151\lib\plugin.jar;C:\Program Files\Java\jre1.8.0_151\lib\resources.jar;C:\Program Files\Java\jre1.8.0_151\lib\rt.jar;E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\build-idea\classes\main;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene-core\6.6.1\b51e719d781e6ec2dbf6d6eacc20a9c2df30269a\lucene-core-6.6.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene-analyzers-common\6.6.1\52cb2bbc52221d33972faacf67e5da0ab92956bd\lucene-analyzers-common-6.6.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene-backward-codecs\6.6.1\4ad390d10b0290af6dac83a519956b98b1fd18f0\lucene-backward-codecs-6.6.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene-grouping\6.6.1\fa9069bd2b75b219a295d15394607350195b0665\lucene-grouping-6.6.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene-highlighter\6.6.1\6cc18a6e4a60b8fca62fcfaf8b9fc3ff6bf1864d\lucene-highlighter-6.6.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene-join\6.6.1\355dc2046a1574cf23d325171372531e687a72cb\lucene-join-6.6.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene-memory\6.6.1\4df5d3018bf7853b4f44eada0c3d823f25800fc3\lucene-memory-6.6.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene-misc\6.6.1\4a434f20c15a1e651ba9d3db1167fec695b557d4\lucene-misc-6.6.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene-queries\6.6.1\e138ad9807b029ca3ee0276eeb0257812c9c9179\lucene-queries-6.6.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene-queryparser\6.6.1\f80e27fee9595ced0276e3caa53b6d12cc779b0e\lucene-queryparser-6.6.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene-sandbox\6.6.1\3a4d147697dfb27b3a0f01f67c0b61175c14b011\lucene-sandbox-6.6.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene-spatial\6.6.1\a83dc0e68cc3aeb8835610022f8d2cff34096d40\lucene-spatial-6.6.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene-spatial-extras\6.6.1\c1a3c9892f1d57b14adc4bcf30509c2bec2ebafb\lucene-spatial-extras-6.6.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene-spatial3d\6.6.1\87ed4ef7f3b18bf106c6f780eea39c88c9a39ad1\lucene-spatial3d-6.6.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.lucene\lucene-suggest\6.6.1\9c74240a249fd7c35fdeb6379ed2a929fb7c8acb\lucene-suggest-6.6.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.elasticsearch\securesm\1.1\1e423447d020041534be94c0f31a49fbdc1f2950\securesm-1.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\net.sf.jopt-simple\jopt-simple\5.0.2\98cafc6081d5632b61be2c9e60650b64ddbc637c\jopt-simple-5.0.2.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.carrotsearch\hppc\0.7.1\8b5057f74ea378c0150a1860874a3ebdcb713767\hppc-0.7.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\joda-time\joda-time\2.9.5\5f01da7306363fad2028b916f3eab926262de928\joda-time-2.9.5.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.yaml\snakeyaml\1.15\3b132bea69e8ee099f416044970997bde80f4ea6\snakeyaml-1.15.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-core\2.8.6\2ef7b1cc34de149600f5e75bc2d5bf40de894e60\jackson-core-2.8.6.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.dataformat\jackson-dataformat-smile\2.8.6\71590ad45cee21249774e2f93e5eca66e446cef3\jackson-dataformat-smile-2.8.6.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.dataformat\jackson-dataformat-yaml\2.8.6\8bd44d50f9a6cdff9c7578ea39d524eb519e35ab\jackson-dataformat-yaml-2.8.6.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.dataformat\jackson-dataformat-cbor\2.8.6\b88721371cfa2d7242bb5e52fe70861aa061c050\jackson-dataformat-cbor-2.8.6.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.tdunning\t-digest\3.0\84ccf145ac2215e6bfa63baa3101c0af41017cfc\t-digest-3.0.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.hdrhistogram\HdrHistogram\2.1.9\e4631ce165eb400edecfa32e03d3f1be53dee754\HdrHistogram-2.1.9.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.locationtech.spatial4j\spatial4j\0.6\21b15310bddcfd8c72611c180f20cf23279809a3\spatial4j-0.6.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.vividsolutions\jts\1.13\3ccfb9b60f04d71add996a666ceb8902904fd805\jts-1.13.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-api\2.9.1\7a2999229464e7a324aa503c0a52ec0f05efe7bd\log4j-api-2.9.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-core\2.9.1\c041978c686866ee8534f538c6220238db3bb6be\log4j-core-2.9.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-1.2-api\2.9.1\894f96d677880d4ab834a1356f62b875e579caaa\log4j-1.2-api-2.9.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.elasticsearch\jna\4.4.0-1\c9dfcec6f07ee4b1d7a6c09a7eaa9dd4fb6d2c79\jna-4.4.0-1.jar" org.elasticsearch.bootstrap.Elasticsearch
2017-11-18 18:42:13,934 main DEBUG Not in a ServletContext environment, thus not loading WebLookup plugin.
2017-11-18 18:42:13,996 main DEBUG Starting LoggerContext[name=18b4aac2, org.apache.logging.log4j.core.LoggerContext@214b199c] with configuration org.apache.logging.log4j.core.config.composite.CompositeConfiguration@20d3d15a...
2017-11-18 18:42:13,996 main DEBUG Initializing configuration org.apache.logging.log4j.core.config.composite.CompositeConfiguration@20d3d15a
2017-11-18 18:42:13,996 main DEBUG Installed 1 script engine
2017-11-18 18:42:15,481 main DEBUG Oracle Nashorn version: 1.8.0_151, language: ECMAScript, threading: Not Thread Safe, compile: true, names: [nashorn, Nashorn, js, JS, JavaScript, javascript, ECMAScript, ecmascript], factory class: jdk.nashorn.api.scripting.NashornScriptEngineFactory
2017-11-18 18:42:15,481 main DEBUG PluginManager 'Core' found 115 plugins
2017-11-18 18:42:15,481 main DEBUG PluginManager 'Level' found 0 plugins
2017-11-18 18:42:15,496 main DEBUG PluginManager 'Lookup' found 13 plugins
2017-11-18 18:42:15,496 main DEBUG Building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef].
2017-11-18 18:42:15,527 main DEBUG PluginManager 'TypeConverter' found 26 plugins
2017-11-18 18:42:15,605 main DEBUG createAppenderRef(ref="index_indexing_slowlog_rolling", level="null", Filter=null)
2017-11-18 18:42:15,605 main DEBUG Building Plugin[name=logger, class=org.apache.logging.log4j.core.config.LoggerConfig].
2017-11-18 18:42:15,642 main DEBUG createLogger(additivity="false", level="TRACE", name="index.indexing.slowlog.index", includeLocation="null", ={index_indexing_slowlog_rolling}, ={}, Configuration, Filter=null)
2017-11-18 18:42:15,663 main DEBUG Building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef].
2017-11-18 18:42:15,665 main DEBUG createAppenderRef(ref="index_search_slowlog_rolling", level="null", Filter=null)
2017-11-18 18:42:15,666 main DEBUG Building Plugin[name=logger, class=org.apache.logging.log4j.core.config.LoggerConfig].
2017-11-18 18:42:15,670 main DEBUG createLogger(additivity="false", level="TRACE", name="index.search.slowlog", includeLocation="null", ={index_search_slowlog_rolling}, ={}, Configuration, Filter=null)
2017-11-18 18:42:15,678 main DEBUG Building Plugin[name=logger, class=org.apache.logging.log4j.core.config.LoggerConfig].
2017-11-18 18:42:15,679 main DEBUG createLogger(additivity="true", level="DEBUG", name="org.elasticsearch.action", includeLocation="null", ={}, ={}, Configuration, Filter=null)
2017-11-18 18:42:15,679 main DEBUG Building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef].
2017-11-18 18:42:15,679 main DEBUG createAppenderRef(ref="deprecation_rolling", level="null", Filter=null)
2017-11-18 18:42:15,679 main DEBUG Building Plugin[name=logger, class=org.apache.logging.log4j.core.config.LoggerConfig].
2017-11-18 18:42:15,679 main DEBUG createLogger(additivity="false", level="WARN", name="org.elasticsearch.deprecation", includeLocation="null", ={deprecation_rolling}, ={}, Configuration, Filter=null)
2017-11-18 18:42:15,679 main DEBUG Building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef].
2017-11-18 18:42:15,695 main DEBUG createAppenderRef(ref="console", level="null", Filter=null)
2017-11-18 18:42:15,695 main DEBUG Building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef].
2017-11-18 18:42:15,695 main DEBUG createAppenderRef(ref="rolling", level="null", Filter=null)
2017-11-18 18:42:15,695 main DEBUG Building Plugin[name=root, class=org.apache.logging.log4j.core.config.LoggerConfig$RootLogger].
2017-11-18 18:42:15,695 main DEBUG createLogger(additivity="null", level="INFO", includeLocation="null", ={console, rolling}, ={}, Configuration, Filter=null)
2017-11-18 18:42:15,695 main DEBUG Building Plugin[name=loggers, class=org.apache.logging.log4j.core.config.LoggersPlugin].
2017-11-18 18:42:15,695 main DEBUG createLoggers(={index.indexing.slowlog.index, index.search.slowlog, org.elasticsearch.action, org.elasticsearch.deprecation, root})
2017-11-18 18:42:15,695 main DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout].
2017-11-18 18:42:15,777 main DEBUG PatternLayout$Builder(pattern="[%d{ISO8601}][%-5p][%-25c{1.}] %marker%.-10000m%n", PatternSelector=null, Configuration, Replace=null, charset="null", alwaysWriteExceptions="null", disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
2017-11-18 18:42:15,792 main DEBUG PluginManager 'Converter' found 42 plugins
2017-11-18 18:42:15,964 main DEBUG Building Plugin[name=TimeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy].
2017-11-18 18:42:15,995 main DEBUG TimeBasedTriggeringPolicy$Builder(interval="1", modulate="true", maxRandomDelay="null")
2017-11-18 18:42:15,995 main DEBUG Building Plugin[name=Policies, class=org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy].
2017-11-18 18:42:16,011 main DEBUG createPolicy(={TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true)})
2017-11-18 18:42:16,011 main DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.RollingFileAppender].
2017-11-18 18:42:16,057 main DEBUG RollingFileAppender$Builder(fileName="E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch.log", filePattern="E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch-%d{yyyy-MM-dd}.log", append="null", locking="null", Policies(CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true)])), Strategy=null, advertise="null", advertiseUri="null", createOnDemand="null", filePermissions="null", fileOwner="null", fileGroup="null", bufferedIo="null", bufferSize="null", immediateFlush="null", ignoreExceptions="null", PatternLayout([%d{ISO8601}][%-5p][%-25c{1.}] %marker%.-10000m%n), name="rolling", Configuration, Filter=null)
2017-11-18 18:42:16,120 main DEBUG Starting RollingFileManager E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch.log
2017-11-18 18:42:16,151 main DEBUG PluginManager 'FileConverter' found 2 plugins
2017-11-18 18:42:16,151 main DEBUG Setting prev file time to 2017-10-22T22:34:34.016+0800
2017-11-18 18:42:16,182 main DEBUG Initializing triggering policy CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true)])
2017-11-18 18:42:16,182 main DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout].
2017-11-18 18:42:16,182 main DEBUG PatternLayout$Builder(pattern="[%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n", PatternSelector=null, Configuration, Replace=null, charset="null", alwaysWriteExceptions="null", disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
2017-11-18 18:42:16,182 main DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.ConsoleAppender].
2017-11-18 18:42:16,198 main DEBUG ConsoleAppender$Builder(target="null", follow="null", direct="null", bufferedIo="null", bufferSize="null", immediateFlush="null", ignoreExceptions="null", PatternLayout([%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n), name="console", Configuration, Filter=null)
2017-11-18 18:42:16,198 main DEBUG Jansi is not installed, cannot find org.fusesource.jansi.WindowsAnsiOutputStream
2017-11-18 18:42:16,198 main DEBUG Starting OutputStreamManager SYSTEM_OUT.false.false
2017-11-18 18:42:16,198 main DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout].
2017-11-18 18:42:16,213 main DEBUG PatternLayout$Builder(pattern="[%d{ISO8601}][%-5p][%-25c{1.}] %marker%.-10000m%n", PatternSelector=null, Configuration, Replace=null, charset="null", alwaysWriteExceptions="null", disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
2017-11-18 18:42:16,213 main DEBUG Building Plugin[name=SizeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy].
2017-11-18 18:42:16,213 main DEBUG createPolicy(size="1GB")
2017-11-18 18:42:16,245 main DEBUG Building Plugin[name=Policies, class=org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy].
2017-11-18 18:42:16,245 main DEBUG createPolicy(={SizeBasedTriggeringPolicy(size=1073741824)})
2017-11-18 18:42:16,245 main DEBUG Building Plugin[name=DefaultRolloverStrategy, class=org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy].
2017-11-18 18:42:16,260 main DEBUG DefaultRolloverStrategy$Builder(max="4", min="null", fileIndex="null", compressionLevel="null", ={}, stopCustomActionsOnError="null", tempCompressedFilePattern="null", Configuration)
2017-11-18 18:42:16,260 main DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.RollingFileAppender].
2017-11-18 18:42:16,260 main DEBUG RollingFileAppender$Builder(fileName="E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_deprecation.log", filePattern="E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_deprecation-%i.log.gz", append="null", locking="null", Policies(CompositeTriggeringPolicy(policies=[SizeBasedTriggeringPolicy(size=1073741824)])), DefaultRolloverStrategy(DefaultRolloverStrategy(min=1, max=4, useMax=true)), advertise="null", advertiseUri="null", createOnDemand="null", filePermissions="null", fileOwner="null", fileGroup="null", bufferedIo="null", bufferSize="null", immediateFlush="null", ignoreExceptions="null", PatternLayout([%d{ISO8601}][%-5p][%-25c{1.}] %marker%.-10000m%n), name="deprecation_rolling", Configuration, Filter=null)
2017-11-18 18:42:16,260 main DEBUG Starting RollingFileManager E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_deprecation.log
2017-11-18 18:42:16,260 main DEBUG PluginManager 'FileConverter' found 2 plugins
2017-11-18 18:42:16,260 main DEBUG Setting prev file time to 2017-10-21T01:37:54.989+0800
2017-11-18 18:42:16,260 main DEBUG Initializing triggering policy CompositeTriggeringPolicy(policies=[SizeBasedTriggeringPolicy(size=1073741824)])
2017-11-18 18:42:16,260 main DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout].
2017-11-18 18:42:16,260 main DEBUG PatternLayout$Builder(pattern="[%d{ISO8601}][%-5p][%-25c] %marker%.-10000m%n", PatternSelector=null, Configuration, Replace=null, charset="null", alwaysWriteExceptions="null", disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
2017-11-18 18:42:16,276 main DEBUG Building Plugin[name=TimeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy].
2017-11-18 18:42:16,276 main DEBUG TimeBasedTriggeringPolicy$Builder(interval="1", modulate="true", maxRandomDelay="null")
2017-11-18 18:42:16,276 main DEBUG Building Plugin[name=Policies, class=org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy].
2017-11-18 18:42:16,276 main DEBUG createPolicy(={TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true)})
2017-11-18 18:42:16,276 main DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.RollingFileAppender].
2017-11-18 18:42:16,276 main DEBUG RollingFileAppender$Builder(fileName="E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_index_search_slowlog.log", filePattern="E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_index_search_slowlog-%d{yyyy-MM-dd}.log", append="null", locking="null", Policies(CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true)])), Strategy=null, advertise="null", advertiseUri="null", createOnDemand="null", filePermissions="null", fileOwner="null", fileGroup="null", bufferedIo="null", bufferSize="null", immediateFlush="null", ignoreExceptions="null", PatternLayout([%d{ISO8601}][%-5p][%-25c] %marker%.-10000m%n), name="index_search_slowlog_rolling", Configuration, Filter=null)
2017-11-18 18:42:16,276 main DEBUG Starting RollingFileManager E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_index_search_slowlog.log
2017-11-18 18:42:16,276 main DEBUG PluginManager 'FileConverter' found 2 plugins
2017-11-18 18:42:16,291 main DEBUG Setting prev file time to 2017-10-21T01:37:54.989+0800
2017-11-18 18:42:16,291 main DEBUG Initializing triggering policy CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true)])
2017-11-18 18:42:16,291 main DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout].
2017-11-18 18:42:16,291 main DEBUG PatternLayout$Builder(pattern="[%d{ISO8601}][%-5p][%-25c] %marker%.-10000m%n", PatternSelector=null, Configuration, Replace=null, charset="null", alwaysWriteExceptions="null", disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
2017-11-18 18:42:16,291 main DEBUG Building Plugin[name=TimeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy].
2017-11-18 18:42:16,291 main DEBUG TimeBasedTriggeringPolicy$Builder(interval="1", modulate="true", maxRandomDelay="null")
2017-11-18 18:42:16,291 main DEBUG Building Plugin[name=Policies, class=org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy].
2017-11-18 18:42:16,291 main DEBUG createPolicy(={TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true)})
2017-11-18 18:42:16,291 main DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.RollingFileAppender].
2017-11-18 18:42:16,291 main DEBUG RollingFileAppender$Builder(fileName="E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_index_indexing_slowlog.log", filePattern="E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_index_indexing_slowlog-%d{yyyy-MM-dd}.log", append="null", locking="null", Policies(CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true)])), Strategy=null, advertise="null", advertiseUri="null", createOnDemand="null", filePermissions="null", fileOwner="null", fileGroup="null", bufferedIo="null", bufferSize="null", immediateFlush="null", ignoreExceptions="null", PatternLayout([%d{ISO8601}][%-5p][%-25c] %marker%.-10000m%n), name="index_indexing_slowlog_rolling", Configuration, Filter=null)
2017-11-18 18:42:16,307 main DEBUG Starting RollingFileManager E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_index_indexing_slowlog.log
2017-11-18 18:42:16,323 main DEBUG PluginManager 'FileConverter' found 2 plugins
2017-11-18 18:42:16,323 main DEBUG Setting prev file time to 2017-10-21T01:37:55.005+0800
2017-11-18 18:42:16,323 main DEBUG Initializing triggering policy CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true)])
2017-11-18 18:42:16,323 main DEBUG Building Plugin[name=appenders, class=org.apache.logging.log4j.core.config.AppendersPlugin].
2017-11-18 18:42:16,323 main DEBUG createAppenders(={rolling, console, deprecation_rolling, index_search_slowlog_rolling, index_indexing_slowlog_rolling})
2017-11-18 18:42:16,323 main DEBUG Configuration org.apache.logging.log4j.core.config.composite.CompositeConfiguration@20d3d15a initialized
2017-11-18 18:42:16,323 main DEBUG Starting configuration org.apache.logging.log4j.core.config.composite.CompositeConfiguration@20d3d15a
2017-11-18 18:42:16,323 main DEBUG Started configuration org.apache.logging.log4j.core.config.composite.CompositeConfiguration@20d3d15a OK.
2017-11-18 18:42:16,323 main DEBUG Shutting down OutputStreamManager SYSTEM_OUT.false.false-1
2017-11-18 18:42:16,323 main DEBUG Shut down OutputStreamManager SYSTEM_OUT.false.false-1, all resources released: true
2017-11-18 18:42:16,323 main DEBUG Appender DefaultConsole-1 stopped with status true
2017-11-18 18:42:16,323 main DEBUG Stopped org.apache.logging.log4j.core.config.builder.impl.BuiltConfiguration@1dd02175 OK
2017-11-18 18:42:16,323 main DEBUG JMX disabled for Log4j2. Not registering MBeans.
2017-11-18 18:42:16,338 main DEBUG LoggerContext[name=18b4aac2, org.apache.logging.log4j.core.LoggerContext@214b199c] started OK with configuration org.apache.logging.log4j.core.config.composite.CompositeConfiguration@20d3d15a.
2017-11-18 18:42:27,816 main DEBUG RollingFileManager executing synchronous FileRenameAction[E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch.log to E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch-2017-10-22.log, renameEmptyFiles=false]
2017-11-18 18:42:27,832 main DEBUG Now writing to E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch.log at 2017-11-18T18:42:27.832+0800
[2017-11-18T18:42:27,910][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[main/:?]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123) ~[main/:?]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:70) ~[main/:?]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134) ~[main/:?]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[main/:?]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[main/:?]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[main/:?]
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source) ~[?:1.8.0_151]
at org.elasticsearch.bootstrap.Security.readPolicy(Security.java:214) ~[main/:?]
at org.elasticsearch.bootstrap.Security.getPluginPermissions(Security.java:171) ~[main/:?]
at org.elasticsearch.bootstrap.Security.configure(Security.java:118) ~[main/:?]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:228) ~[main/:?]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) ~[main/:?]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) ~[main/:?]
... 6 more
2017-11-18 18:42:27,910 pool-1-thread-1 DEBUG Stopping LoggerContext[name=18b4aac2, org.apache.logging.log4j.core.LoggerContext@214b199c]
2017-11-18 18:42:27,910 pool-1-thread-1 DEBUG Stopping LoggerContext[name=18b4aac2, org.apache.logging.log4j.core.LoggerContext@214b199c]...
2017-11-18 18:42:27,910 pool-1-thread-1 DEBUG JMX disabled for Log4j2. Not unregistering MBeans.
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Shutting down RollingFileManager E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_index_search_slowlog.log
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Shutting down RollingFileManager {}E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_index_search_slowlog.log
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG All asynchronous threads have terminated
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG RollingFileManager shutdown completed with status true
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Shut down RollingFileManager E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_index_search_slowlog.log, all resources released: true
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Appender index_search_slowlog_rolling stopped with status true
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Shutting down RollingFileManager E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_index_indexing_slowlog.log
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Shutting down RollingFileManager {}E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_index_indexing_slowlog.log
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG All asynchronous threads have terminated
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG RollingFileManager shutdown completed with status true
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Shut down RollingFileManager E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_index_indexing_slowlog.log, all resources released: true
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Appender index_indexing_slowlog_rolling stopped with status true
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Shutting down RollingFileManager E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_deprecation.log
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Shutting down RollingFileManager {}E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_deprecation.log
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG All asynchronous threads have terminated
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG RollingFileManager shutdown completed with status true
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Shut down RollingFileManager E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch_deprecation.log, all resources released: true
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Appender deprecation_rolling stopped with status true
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Shutting down OutputStreamManager SYSTEM_OUT.false.false
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Shut down OutputStreamManager SYSTEM_OUT.false.false, all resources released: true
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Appender console stopped with status true
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Shutting down RollingFileManager E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch.log
2017-11-18 18:42:27,925 pool-1-thread-1 DEBUG Shutting down RollingFileManager {}E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch.log
2017-11-18 18:42:27,941 pool-1-thread-1 DEBUG All asynchronous threads have terminated
2017-11-18 18:42:27,941 pool-1-thread-1 DEBUG RollingFileManager shutdown completed with status true
2017-11-18 18:42:27,941 pool-1-thread-1 DEBUG Shut down RollingFileManager E:\Athena\Elasticsearch\debug\src\elasticsearch-5.6.3\core\logs\elasticsearch.log, all resources released: true
2017-11-18 18:42:27,941 pool-1-thread-1 DEBUG Appender rolling stopped with status true
2017-11-18 18:42:27,941 pool-1-thread-1 DEBUG Stopped org.apache.logging.log4j.core.config.composite.CompositeConfiguration@20d3d15a OK
2017-11-18 18:42:27,941 pool-1-thread-1 DEBUG Stopped LoggerContext[name=18b4aac2, org.apache.logging.log4j.core.LoggerContext@214b199c] with status true
2017-11-18 18:42:27,941 Thread-3 DEBUG Not in a ServletContext environment, thus not loading WebLookup plugin.
2017-11-18 18:42:27,941 Thread-3 DEBUG PluginManager 'Converter' found 42 plugins
2017-11-18 18:42:27,957 Thread-3 DEBUG Jansi is not installed, cannot find org.fusesource.jansi.WindowsAnsiOutputStream
2017-11-18 18:42:27,957 Thread-3 DEBUG Starting OutputStreamManager SYSTEM_OUT.false.false-3
2017-11-18 18:42:27,957 Thread-3 DEBUG Starting LoggerContext[name=18b4aac2, org.apache.logging.log4j.core.LoggerContext@c7ed566]...
2017-11-18 18:42:27,957 Thread-3 DEBUG Reconfiguration started for context[name=18b4aac2] at URI null (org.apache.logging.log4j.core.LoggerContext@c7ed566) with optional ClassLoader: null
2017-11-18 18:42:27,957 Thread-3 DEBUG PluginManager 'ConfigurationFactory' found 4 plugins
2017-11-18 18:42:27,972 Thread-3 DEBUG Not in a ServletContext environment, thus not loading WebLookup plugin.
2017-11-18 18:42:27,972 Thread-3 DEBUG Not in a ServletContext environment, thus not loading WebLookup plugin.
2017-11-18 18:42:27,972 Thread-3 DEBUG Missing dependencies for Yaml support, ConfigurationFactory org.apache.logging.log4j.core.config.yaml.YamlConfigurationFactory is inactive
2017-11-18 18:42:27,972 Thread-3 DEBUG Not in a ServletContext environment, thus not loading WebLookup plugin.
2017-11-18 18:42:27,972 Thread-3 DEBUG Missing dependencies for Json support, ConfigurationFactory org.apache.logging.log4j.core.config.json.JsonConfigurationFactory is inactive
2017-11-18 18:42:27,972 Thread-3 DEBUG Not in a ServletContext environment, thus not loading WebLookup plugin.
2017-11-18 18:42:27,972 Thread-3 DEBUG Using configurationFactory org.apache.logging.log4j.core.config.ConfigurationFactory$Factory@5db08280
2017-11-18 18:42:28,019 Thread-3 ERROR No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'log4j2.debug' to show Log4j2 internal initialization logging.
2017-11-18 18:42:28,019 Thread-3 DEBUG Not in a ServletContext environment, thus not loading WebLookup plugin.
2017-11-18 18:42:28,019 Thread-3 DEBUG PluginManager 'Converter' found 42 plugins
2017-11-18 18:42:28,035 Thread-3 DEBUG Jansi is not installed, cannot find org.fusesource.jansi.WindowsAnsiOutputStream
2017-11-18 18:42:28,035 Thread-3 DEBUG Starting OutputStreamManager SYSTEM_OUT.false.false-4
2017-11-18 18:42:28,035 Thread-3 DEBUG Initializing configuration org.apache.logging.log4j.core.config.DefaultConfiguration@5b564ea9
2017-11-18 18:42:28,050 Thread-3 DEBUG Installed 1 script engine
2017-11-18 18:42:28,097 Thread-3 DEBUG Oracle Nashorn version: 1.8.0_151, language: ECMAScript, threading: Not Thread Safe, compile: true, names: [nashorn, Nashorn, js, JS, JavaScript, javascript, ECMAScript, ecmascript], factory class: jdk.nashorn.api.scripting.NashornScriptEngineFactory
2017-11-18 18:42:28,097 Thread-3 DEBUG PluginManager 'Core' found 115 plugins
2017-11-18 18:42:28,097 Thread-3 DEBUG PluginManager 'Level' found 0 plugins
2017-11-18 18:42:28,097 Thread-3 DEBUG Configuration org.apache.logging.log4j.core.config.DefaultConfiguration@5b564ea9 initialized
2017-11-18 18:42:28,097 Thread-3 DEBUG Starting configuration org.apache.logging.log4j.core.config.DefaultConfiguration@5b564ea9
2017-11-18 18:42:28,097 Thread-3 DEBUG Started configuration org.apache.logging.log4j.core.config.DefaultConfiguration@5b564ea9 OK.
2017-11-18 18:42:28,097 Thread-3 DEBUG Shutting down OutputStreamManager SYSTEM_OUT.false.false-3
2017-11-18 18:42:28,097 Thread-3 DEBUG Shut down OutputStreamManager SYSTEM_OUT.false.false-3, all resources released: true
2017-11-18 18:42:28,097 Thread-3 DEBUG Appender DefaultConsole-3 stopped with status true
2017-11-18 18:42:28,113 Thread-3 DEBUG Stopped org.apache.logging.log4j.core.config.DefaultConfiguration@4381d2de OK
2017-11-18 18:42:28,113 Thread-3 DEBUG JMX disabled for Log4j2. Not registering MBeans.
2017-11-18 18:42:28,113 Thread-3 DEBUG Reconfiguration complete for context[name=18b4aac2] at URI NULL_SOURCE (org.apache.logging.log4j.core.LoggerContext@c7ed566) with optional ClassLoader: null
2017-11-18 18:42:28,113 Thread-3 DEBUG Shutdown hook enabled. Registering a new one.
2017-11-18 18:42:28,113 Thread-3 WARN Unable to register Log4j shutdown hook because JVM is shutting down. Using SimpleLogger
Process finished with exit code 1

已邀请:

chenchen

赞同来自:

org.elasticsearch.bootstrap.StartupException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[main/:?]


主要就是这个报错,5.4 版本能设置一样能正常启动,但是5.6.3启动不了。启动参数如下:
-Des.path.conf=E:\elasticsearch-6.0.0\core\config
-Des.path.home=E:\elasticsearch-6.0.0\core
-Dlog4j2.disable.jmx=true
-Djava.security.policy=E:\elasticsearch-6.0.0\core\config\elasticsearch.policy

哪位高手能指点下

 

要回复问题请先登录注册