Hi,

I have configured Storm Cluster with Trident that does a Simple String
Manipulation operation with netty as Entry point.
I'm making concurrent calls as HTTP requests which will be processed by
netty and extracts only the String and sends to Storm.

With 10 Threads at the rate of 100 requests/second, I am trying to send
close to 10,000 requests.
After a due course, I am getting below errors.
Searched across the web and in Storm forums with no success in getting the
solutions.

Also there are no proper guidelines for implementing KeyedFairBolt which is
recommended for concurrent requests, but it is recommended along with
Deprecated API LinearDRPCTopology Builder, whereas Trident seems to be
higher level abstraction of Spouts and Bolts along with which KeyedFairBolt
can't be used.

Any help is appreciated.

org.apache.thrift7.TApplicationException: execute failed: out of sequence
response
    at org.apache.thrift7.TServiceClient.receiveBase(TServiceClient.java:76)

    at
backtype.storm.generated.DistributedRPC$Client.recv_execute(DistributedRPC.java:92)
    at
backtype.storm.generated.DistributedRPC$Client.execute(DistributedRPC.java:78)
    at backtype.storm.utils.DRPCClient.execute(DRPCClient.java:71)
    at storm.starter.trident.TridentSample.build(TridentSample.java:93)
    at
com.storm.HttpSnoopServerHandler.channelRead0(HttpSnoopServerHandler.java:99)
    at
io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
    at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
    at
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
    at
io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:276)
    at
io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:263)
    at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
    at
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
    at
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
    at
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
    at
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
    at
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
    at
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
    at
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
    at
io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
    at java.lang.Thread.run(Thread.java:745)


org.apache.thrift7.transport.TTransportException: Cannot write to null
outputStream

    at
org.apache.thrift7.transport.TIOStreamTransport.write(TIOStreamTransport.java:142)
    at
org.apache.thrift7.transport.TFramedTransport.flush(TFramedTransport.java:156)
    at org.apache.thrift7.TServiceClient.sendBase(TServiceClient.java:65)
    at
backtype.storm.generated.DistributedRPC$Client.send_execute(DistributedRPC.java:86)
    at
backtype.storm.generated.DistributedRPC$Client.execute(DistributedRPC.java:77)
    at backtype.storm.utils.DRPCClient.execute(DRPCClient.java:71)
    at storm.starter.trident.TridentSample.build(TridentSample.java:93)
    at
com.storm.HttpSnoopServerHandler.channelRead0(HttpSnoopServerHandler.java:99)
    at
io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
    at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
    at
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
    at
io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:276)
    at
io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:263)
    at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
    at
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
    at
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
    at
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
    at
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
    at
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
    at
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
    at
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
    at
io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
    at java.lang.Thread.run(Thread.java:745)

java.lang.NullPointerException
    at backtype.storm.utils.DRPCClient.execute(DRPCClient.java:71)
    at storm.starter.trident.TridentSample.build(TridentSample.java:93)
    at
com.storm.HttpSnoopServerHandler.channelRead0(HttpSnoopServerHandler.java:99)
    at
io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
    at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
    at
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
    at
io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:276)
    at
io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:263)
    at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
    at
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
    at
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
    at
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
    at
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
    at
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
    at
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
    at
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
    at
io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
    at java.lang.Thread.run(Thread.java:745)




-- 
Thanks,
Sivaviknesh S

Reply via email to