我有点怀疑你在刷屏

elasticsearch客户端报错 求助!!!!

Elasticsearch | 作者 lingluan123 | 发布于2018年05月02日 | 阅读数:4779

[2018-05-02T14:45:11,170][ERROR][o.e.b.Bootstrap ] [BWmF-PY] Exception
java.lang.NullPointerException: null
at org.elasticsearch.http.netty4.Netty4HttpServerTransport.doStop(Netty4HttpServerTransport.java:469) ~[?:?]
at org.elasticsearch.http.netty4.Netty4HttpServerTransport.doStart(Netty4HttpServerTransport.java:326) ~[?:?]
at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.node.Node.start(Node.java:743) ~[elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:277) ~[elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:360) [elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) [elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114) [elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67) [elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) [elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.cli.Command.main(Command.java:88) [elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) [elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) [elasticsearch-5.5.2.jar:5.5.2]
[2018-05-02T14:45:11,170][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.NullPointerException
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:127) ~[elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114) ~[elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67) ~[elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) ~[elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.cli.Command.main(Command.java:88) ~[elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[elasticsearch-5.5.2.jar:5.5.2]
Caused by: java.lang.NullPointerException
at org.elasticsearch.http.netty4.Netty4HttpServerTransport.doStop(Netty4HttpServerTransport.java:469) ~[?:?]
at org.elasticsearch.http.netty4.Netty4HttpServerTransport.doStart(Netty4HttpServerTransport.java:326) ~[?:?]
at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.node.Node.start(Node.java:743) ~[elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:277) ~[elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:360) ~[elasticsearch-5.5.2.jar:5.5.2]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) ~[elasticsearch-5.5.2.jar:5.5.2]
... 6 more
已邀请:

zqc0512 - andy zhou

赞同来自:

你这日志没有全,感觉上是 transport设置有问题。

lingluan123

赞同来自:

完整日志
[2018-05-02T15:04:45,436][INFO ][o.e.n.Node               ] [] initializing ...
[2018-05-02T15:04:45,545][INFO ][o.e.e.NodeEnvironment    ] [BWmF-PY] using [1] data paths, mounts [[新加卷 (D:)]], net usable_space [252.6gb], net total_space [364.7gb], spins? [unknown], types [NTFS]
[2018-05-02T15:04:45,561][INFO ][o.e.e.NodeEnvironment    ] [BWmF-PY] heap size [1.9gb], compressed ordinary object pointers [true]
[2018-05-02T15:04:45,702][INFO ][o.e.n.Node               ] node name [BWmF-PY] derived from node ID [BWmF-PYbRWCOU2O0Tb4Lzw]; set [node.name] to override
[2018-05-02T15:04:45,702][INFO ][o.e.n.Node               ] version[5.5.2], pid[14532], build[b2f0c09/2017-08-14T12:33:14.154Z], OS[Windows 2003/5.2/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_77/25.77-b03]
[2018-05-02T15:04:45,702][INFO ][o.e.n.Node               ] JVM arguments [-Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Delasticsearch, -Des.path.home=D:\elasticsearch-5.5.2]
[2018-05-02T15:04:46,905][INFO ][o.e.p.PluginsService     ] [BWmF-PY] loaded module [aggs-matrix-stats]
[2018-05-02T15:04:46,905][INFO ][o.e.p.PluginsService     ] [BWmF-PY] loaded module [ingest-common]
[2018-05-02T15:04:46,905][INFO ][o.e.p.PluginsService     ] [BWmF-PY] loaded module [lang-expression]
[2018-05-02T15:04:46,905][INFO ][o.e.p.PluginsService     ] [BWmF-PY] loaded module [lang-groovy]
[2018-05-02T15:04:46,905][INFO ][o.e.p.PluginsService     ] [BWmF-PY] loaded module [lang-mustache]
[2018-05-02T15:04:46,905][INFO ][o.e.p.PluginsService     ] [BWmF-PY] loaded module [lang-painless]
[2018-05-02T15:04:46,905][INFO ][o.e.p.PluginsService     ] [BWmF-PY] loaded module [parent-join]
[2018-05-02T15:04:46,905][INFO ][o.e.p.PluginsService     ] [BWmF-PY] loaded module [percolator]
[2018-05-02T15:04:46,905][INFO ][o.e.p.PluginsService     ] [BWmF-PY] loaded module [reindex]
[2018-05-02T15:04:46,905][INFO ][o.e.p.PluginsService     ] [BWmF-PY] loaded module [transport-netty3]
[2018-05-02T15:04:46,905][INFO ][o.e.p.PluginsService     ] [BWmF-PY] loaded module [transport-netty4]
[2018-05-02T15:04:46,905][INFO ][o.e.p.PluginsService     ] [BWmF-PY] loaded plugin [analysis-ik]
[2018-05-02T15:04:49,217][INFO ][o.e.d.DiscoveryModule    ] [BWmF-PY] using discovery type [zen]
[2018-05-02T15:04:49,905][INFO ][o.e.n.Node               ] initialized
[2018-05-02T15:04:49,905][INFO ][o.e.n.Node               ] [BWmF-PY] starting ...
[2018-05-02T15:04:52,233][INFO ][o.e.t.TransportService   ] [BWmF-PY] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}
[2018-05-02T15:04:55,295][INFO ][o.e.c.s.ClusterService   ] [BWmF-PY] new_master {BWmF-PY}{BWmF-PYbRWCOU2O0Tb4Lzw}{W_A1AWwxT-a-8Nos-5DBeQ}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2018-05-02T15:04:55,389][INFO ][o.w.a.d.Monitor          ] try load config from D:\elasticsearch-5.5.2\config\analysis-ik\IKAnalyzer.cfg.xml
[2018-05-02T15:04:55,389][INFO ][o.w.a.d.Monitor          ] try load config from D:\elasticsearch-5.5.2\plugins\analysis-ik\config\IKAnalyzer.cfg.xml
[2018-05-02T15:04:55,655][INFO ][o.w.a.d.Monitor          ] [Dict Loading] extra_main.dic
[2018-05-02T15:04:55,905][INFO ][o.w.a.d.Monitor          ] [Dict Loading] main.dic
[2018-05-02T15:04:56,295][INFO ][o.e.g.GatewayService     ] [BWmF-PY] recovered [8] indices into cluster_state
[2018-05-02T15:04:56,952][INFO ][o.e.c.r.a.AllocationService] [BWmF-PY] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[person][3]] ...]).
[2018-05-02T15:04:57,530][ERROR][o.e.b.Bootstrap          ] [BWmF-PY] Exception
java.lang.NullPointerException: null
    at org.elasticsearch.http.netty4.Netty4HttpServerTransport.doStop(Netty4HttpServerTransport.java:469) ~[?:?]
    at org.elasticsearch.http.netty4.Netty4HttpServerTransport.doStart(Netty4HttpServerTransport.java:326) ~[?:?]
    at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.node.Node.start(Node.java:743) ~[elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:277) ~[elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:360) [elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) [elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114) [elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67) [elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) [elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.cli.Command.main(Command.java:88) [elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) [elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) [elasticsearch-5.5.2.jar:5.5.2]
[2018-05-02T15:04:57,530][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.NullPointerException
    at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:127) ~[elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114) ~[elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67) ~[elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) ~[elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.cli.Command.main(Command.java:88) ~[elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[elasticsearch-5.5.2.jar:5.5.2]
Caused by: java.lang.NullPointerException
    at org.elasticsearch.http.netty4.Netty4HttpServerTransport.doStop(Netty4HttpServerTransport.java:469) ~[?:?]
    at org.elasticsearch.http.netty4.Netty4HttpServerTransport.doStart(Netty4HttpServerTransport.java:326) ~[?:?]
    at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.node.Node.start(Node.java:743) ~[elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:277) ~[elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:360) ~[elasticsearch-5.5.2.jar:5.5.2]
    at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) ~[elasticsearch-5.5.2.jar:5.5.2]
    ... 6 more
[2018-05-02T15:04:58,530][INFO ][o.e.n.Node               ] [BWmF-PY] stopping ...
[2018-05-02T15:04:58,748][INFO ][o.e.n.Node               ] [BWmF-PY] stopped
[2018-05-02T15:04:58,748][INFO ][o.e.n.Node               ] [BWmF-PY] closing ...
[2018-05-02T15:04:58,764][INFO ][o.e.n.Node               ] [BWmF-PY] closed

 

lingluan123

赞同来自:

有没有人遇到过这个问题啊

要回复问题请先登录注册