Can you check in stram events on the gateway UI, you can select a time range to begin at the start of the application so you can see the series of events that happened in a timeline. Then you will find the first error in that list. You can find stram events in the logical tab to the right for the application in monitor page.
Regards, Ashwin. On Wed, Nov 30, 2016 at 8:20 AM, Vlad Rozov <[email protected]> wrote: > Hmm, that is strange. I would expect an ERROR in the KafkaInputOperator > around 21:01. Please check the earliest killed container log. > > 2016-11-24 21:01:01,839 [IPC Server handler 4 on 44453] ERROR > stram.StreamingContainerManager > processOperatorFailure - Initiating container restart after operator > failure PTOperator[id=1,name=kafkaInputOperator] > > Thank you, > > Vlad > > On 11/30/16 07:17, Feldkamp, Brandon (CONT) wrote: > > This is the only other stacktrace I could find but it’s dated after the > initial cause of failure. > > > > 2016-11-24 21:52:24,681 [14/kafkaInputOperator:KafkaInputOperator] ERROR > engine.StreamingContainer run - Operator set [OperatorDeployInfo[id=14, > name=kafkaInputOperator,type=INPUT,checkpoint={583786630000239f, 0, > 0},inputs=[],outputs=[OperatorDeployInfo.OutputDeployInfo[portName=outputPort,streamId=KafkaInput > -> AuthParser,bufferServer=ip-200-120-36]]]] stopped running due to an > exception. > > java.lang.RuntimeException: replay > > at com.datatorrent.contrib.kafka.AbstractKafkaInputOperator. > replay(AbstractKafkaInputOperator.java:330) > > at com.datatorrent.contrib.kafka.AbstractKafkaInputOperator. > beginWindow(AbstractKafkaInputOperator.java:266) > > at com.datatorrent.stram.engine.InputNode.run(InputNode.java:122) > > at com.datatorrent.stram.engine.StreamingContainer$2.run( > StreamingContainer.java:1407) > > Caused by: java.io.EOFException: Received -1 when reading from channel, > socket has likely been closed. > > at kafka.utils.Utils$.read(Utils.scala:376) > > at kafka.network.BoundedByteBufferReceive.readFrom( > BoundedByteBufferReceive.scala:54) > > at kafka.network.Receive$class.readCompletely(Transmission. > scala:56) > > at kafka.network.BoundedByteBufferReceive.readCompletely( > BoundedByteBufferReceive.scala:29) > > at kafka.network.BlockingChannel.receive(BlockingChannel.scala: > 100) > > at kafka.consumer.SimpleConsumer.liftedTree1$1(SimpleConsumer. > scala:81) > > at kafka.consumer.SimpleConsumer.kafka$consumer$SimpleConsumer$ > $sendRequest(SimpleConsumer.scala:71) > > at kafka.consumer.SimpleConsumer$$anonfun$fetch$1$$anonfun$ > apply$mcV$sp$1.apply$mcV$sp(SimpleConsumer.scala:109) > > at kafka.consumer.SimpleConsumer$$anonfun$fetch$1$$anonfun$ > apply$mcV$sp$1.apply(SimpleConsumer.scala:109) > > at kafka.consumer.SimpleConsumer$$anonfun$fetch$1$$anonfun$ > apply$mcV$sp$1.apply(SimpleConsumer.scala:109) > > at kafka.metrics.KafkaTimer.time(KafkaTimer.scala:33) > > at kafka.consumer.SimpleConsumer$$anonfun$fetch$1.apply$mcV$sp( > SimpleConsumer.scala:108) > > at kafka.consumer.SimpleConsumer$$anonfun$fetch$1.apply( > SimpleConsumer.scala:108) > > at kafka.consumer.SimpleConsumer$$anonfun$fetch$1.apply( > SimpleConsumer.scala:108) > > at kafka.metrics.KafkaTimer.time(KafkaTimer.scala:33) > > at kafka.consumer.SimpleConsumer.fetch(SimpleConsumer.scala:107) > > at kafka.javaapi.consumer.SimpleConsumer.fetch( > SimpleConsumer.scala:47) > > at com.datatorrent.contrib.kafka.AbstractKafkaInputOperator. > replay(AbstractKafkaInputOperator.java:304) > > ... 3 more > > 2016-11-24 21:52:24,690 [14/kafkaInputOperator:KafkaInputOperator] ERROR > engine.StreamingContainer run - Shutdown of operator > OperatorDeployInfo[id=14,name=kafkaInputOperator,type=INPUT,checkpoint={583786630000239f, > 0, > 0},inputs=[],outputs=[OperatorDeployInfo.OutputDeployInfo[portName=outputPort,streamId=KafkaInput > -> AuthParser,bufferServer=ip-200-120-36]]] failed due to an exception. > > java.lang.NullPointerException > > at com.datatorrent.contrib.kafka.SimpleKafkaConsumer.close( > SimpleKafkaConsumer.java:348) > > at org.apache.commons.io.IOUtils.closeQuietly(IOUtils.java:303) > > at com.datatorrent.contrib.kafka.KafkaConsumer.stop( > KafkaConsumer.java:157) > > at com.datatorrent.contrib.kafka.AbstractKafkaInputOperator. > deactivate(AbstractKafkaInputOperator.java:405) > > at com.datatorrent.stram.engine.Node.deactivate(Node.java:646) > > at com.datatorrent.stram.engine.StreamingContainer.teardownNode( > StreamingContainer.java:1347) > > at com.datatorrent.stram.engine.StreamingContainer.access$500( > StreamingContainer.java:130) > > at com.datatorrent.stram.engine.StreamingContainer$2.run( > StreamingContainer.java:1438) > > > > > > *From: *Vlad Rozov <[email protected]> <[email protected]> > *Organization: *DataTorrent > *Reply-To: *"[email protected]" <[email protected]> > <[email protected]> <[email protected]> > *Date: *Tuesday, November 29, 2016 at 10:21 PM > *To: *"[email protected]" <[email protected]> > <[email protected]> <[email protected]> > *Subject: *Re: Connection refused exception > > > > Brandon, > > Is the stacktrace from the app master log or is it from a local mode run? > The exception is raised due to the buffer server termination in one of the > operators containers and I guess that it happens when app master tries to > purge data from the buffer server. Check the operators containers logs for > exceptions/errors unless the application was started in the local mode. In > the later case, try to enable DEBUG level. > > Thank you, > > Vlad > > On 11/29/16 05:54, Feldkamp, Brandon (CONT) wrote: > > Hello, > > > > I’m wondering if anyone has seen a similar stack trace before as there > isn’t a lot of info provided. I’m wondering if the connection refused is > from one operator to another or the kafkaInputOperator being unable to > connect to kafka. > > > > Any ideas? Here’s the stacktrace: > > > > 2016-11-24 21:00:51,998 [ProcessWideEventLoop] ERROR netlet.AbstractClient > handleException - Exception in event loop {id=ProcessWideEventLoop, > head=7418, tail=7416, capacity=1024} > > java.net.ConnectException: Connection refused > > at sun.nio.ch.SocketChannelImpl.checkConnect(Native > Method) > > at sun.nio.ch.SocketChannelImpl.finishConnect( > SocketChannelImpl.java:717) > > at com.datatorrent.netlet.DefaultEventLoop. > handleSelectedKey(DefaultEventLoop.java:371) > > at com.datatorrent.netlet.OptimizedEventLoop$ > SelectedSelectionKeySet.forEach(OptimizedEventLoop.java:59) > > at com.datatorrent.netlet.OptimizedEventLoop.runEventLoop( > OptimizedEventLoop.java:192) > > at com.datatorrent.netlet.OptimizedEventLoop.runEventLoop( > OptimizedEventLoop.java:157) > > at com.datatorrent.netlet.DefaultEventLoop.run( > DefaultEventLoop.java:156) > > at java.lang.Thread.run(Thread.java:745) > > 2016-11-24 21:01:01,839 [IPC Server handler 4 on 44453] ERROR > stram.StreamingContainerManager > processOperatorFailure - Initiating container restart after operator > failure PTOperator[id=1,name=kafkaInputOperator] > > 2016-11-24 21:01:01,898 [IPC Server handler 29 on 44453] ERROR > stram.StreamingContainerManager > processOperatorFailure - Initiating container restart after operator > failure PTOperator[id=7,name=kafkaInputOperator] > > 2016-11-24 21:01:32,991 [IPC Server handler 24 on 44453] ERROR > stram.StreamingContainerManager > processOperatorFailure - Initiating container restart after operator > failure PTOperator[id=13,name=kafkaInputOperator] > > 2016-11-24 21:01:44,189 [IPC Server handler 22 on 44453] ERROR > stram.StreamingContainerManager > processOperatorFailure - Initiating container restart after operator > failure PTOperator[id=10,name=kafkaInputOperator] > > 2016-11-24 21:01:44,604 [IPC Server handler 5 on 44453] ERROR > stram.StreamingContainerManager > processOperatorFailure - Initiating container restart after operator > failure PTOperator[id=3,name=kafkaInputOperator] > > 2016-11-24 21:01:44,744 [IPC Server handler 16 on 44453] ERROR > stram.StreamingContainerManager > processOperatorFailure - Initiating container restart after operator > failure PTOperator[id=12,name=kafkaInputOperator] > > Thanks! > > Brandon > > > ------------------------------ > > The information contained in this e-mail is confidential and/or > proprietary to Capital One and/or its affiliates and may only be used > solely in performance of work or services for Capital One. The information > transmitted herewith is intended only for use by the individual or entity > to which it is addressed. If the reader of this message is not the intended > recipient, you are hereby notified that any review, retransmission, > dissemination, distribution, copying or other use of, or taking of any > action in reliance upon this information is strictly prohibited. If you > have received this communication in error, please contact the sender and > delete the material from your computer. > > > > > ------------------------------ > > The information contained in this e-mail is confidential and/or > proprietary to Capital One and/or its affiliates and may only be used > solely in performance of work or services for Capital One. The information > transmitted herewith is intended only for use by the individual or entity > to which it is addressed. If the reader of this message is not the intended > recipient, you are hereby notified that any review, retransmission, > dissemination, distribution, copying or other use of, or taking of any > action in reliance upon this information is strictly prohibited. If you > have received this communication in error, please contact the sender and > delete the material from your computer. > > > -- Regards, Ashwin.
