spring-xd-module-parent version 1.3.1.release仅支持弹性搜索1.3.2。任何与弹性搜索2.x交互的选项?

时间:2016-06-22 19:09:20

标签: spring-xd spring-data-elasticsearch

在我的maven项目中,我尝试开发自己的spring xd处理器,在弹性搜索版本2.3.3中存储信息。

我按照spring xd网站上的示例进行操作,常见的方法是将spring-xd-module-parent作为父pom。这带来了所有必要的依赖关系。我拿了最后一个稳定版本(1.3.1.RELEASE)。

事情是它有弹性搜索版本1.3.2和spring-boot-starter-data-elasticsearch 1.2.3.RELEASE作为依赖项。当我尝试运行我的测试只是尝试在弹性搜索中插入文档时,我得到一个例外:

org.elasticsearch.transport.RemoteTransportException: Failed to deserialize exception response from stream
Caused by: org.elasticsearch.transport.TransportSerializationException: Failed to deserialize exception response from stream
at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:173)
at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:125)
at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)
at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.StreamCorruptedException: Unsupported version: 1
at org.elasticsearch.common.io.ThrowableObjectInputStream.readStreamHeader(ThrowableObjectInputStream.java:46)

根据我的理解兼容性问题...

有没有像春季启动一样的方法不使用父pom方法并使用依赖关系管理方法,可以覆盖某些依赖项的版本?我没有找到这样的样品。 - 如果是的话,它是否会在spring-xd 1.3.1.RELEASE的部署时工作,因为我觉得它是为了使用弹性搜索1.3.1而构建的?

  • 如果无法与弹性搜索2.x集成,您是否看到我在春天可以做的任何解决方法?我的处理器是流中的一个步骤,所以如果我不能直接做到这一点,我可以在我的设计中做一个解决方法,使这个工作直到将来的发布?我不想回滚到弹性搜索1.x

0 个答案:

没有答案