当前位置:   article > 正文

elasticsearch配置x-pack和SSL安全认证常见问题

general node connection failure

精选30+云产品,助力企业轻松上云!>>> hot3.png

异常

当客户端为rest-high-level-client时,客户端异常:
  1. com.mamaqunaer.elasticsearch.ElasticSearchException: org.apache.http.ConnectionClosedException: Connection closed
  2. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  3. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  4. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  5. at java.lang.reflect.Method.invoke(Method.java:498)
  6. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
  7. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  8. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
  9. at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
  10. at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:73)
  11. at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:83)
  12. at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
  13. at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
  14. at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
  15. at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
  16. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251)
  17. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
  18. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
  19. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
  20. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
  21. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
  22. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
  23. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  24. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  25. at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
  26. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
  27. at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
  28. at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
  29. at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
  30. at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
  31. at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
  32. Caused by: org.apache.http.ConnectionClosedException: Connection closed
  33. at org.elasticsearch.client.RestClient$SyncResponseListener.get(RestClient.java:718)
  34. at org.elasticsearch.client.RestClient.performRequest(RestClient.java:235)
  35. at org.elasticsearch.client.RestClient.performRequest(RestClient.java:198)
  36. at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:522)
  37. at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:508)
  38. at org.elasticsearch.client.RestHighLevelClient.get(RestHighLevelClient.java:293)
  39. ... 34 more
  40. Caused by: org.apache.http.ConnectionClosedException: Connection closed
  41. at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.endOfInput(HttpAsyncRequestExecutor.java:350)
  42. at org.apache.http.impl.nio.client.InternalRequestExecutor.endOfInput(InternalRequestExecutor.java:132)
  43. at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:261)
  44. at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)
  45. at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39)
  46. at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:114)
  47. at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)
  48. at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)
  49. at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
  50. at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
  51. at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
  52. at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)
  53. at ja
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号