You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@apex.apache.org by "Feldkamp, Brandon (CONT)" <Br...@capitalone.com> on 2016/11/29 13:54:20 UTC

Connection refused exception

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.

Re: Connection refused exception

Posted by Vlad Rozov <v....@datatorrent.com>.
Is the exception reproducible? If yes, can you provide full app master 
log with the debug level enabled.

Thank you,

Vlad

On 12/1/16 05:29, Feldkamp, Brandon (CONT) wrote:
>
> Unfortunately, we\u2019re only seeing the initial connection refused 
> exception that I posted. So, if the issue is related to the buffer 
> server as suggested below, is that something we can mitigate? Do we 
> need to allocate more memory to the buffer servers?
>
> \u201cThe 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.\u201d
>
> *From: *Ashwin Chandra Putta <as...@gmail.com>
> *Reply-To: *"users@apex.apache.org" <us...@apex.apache.org>
> *Date: *Wednesday, November 30, 2016 at 12:07 PM
> *To: *"users@apex.apache.org" <us...@apex.apache.org>
> *Subject: *Re: Connection refused exception
>
> 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 <v.rozov@datatorrent.com 
> <ma...@datatorrent.com>> 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\u2019s 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 <v....@datatorrent.com>
>         <ma...@datatorrent.com>
>         *Organization: *DataTorrent
>         *Reply-To: *"users@apex.apache.org"
>         <ma...@apex.apache.org> <us...@apex.apache.org>
>         <ma...@apex.apache.org>
>         *Date: *Tuesday, November 29, 2016 at 10:21 PM
>         *To: *"users@apex.apache.org" <ma...@apex.apache.org>
>         <us...@apex.apache.org> <ma...@apex.apache.org>
>         *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\u2019m wondering if anyone has seen a similar stack trace
>             before as there isn\u2019t a lot of info provided. I\u2019m
>             wondering if the connection refused is from one operator
>             to another or the kafkaInputOperator being unable to
>             connect to kafka.
>
>             Any ideas? Here\u2019s 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.
>
>
> ------------------------------------------------------------------------
>
> 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.
>


Re: Connection refused exception

Posted by "Feldkamp, Brandon (CONT)" <Br...@capitalone.com>.
Unfortunately, we’re only seeing the initial connection refused exception that I posted. So, if the issue is related to the buffer server as suggested below, is that something we can mitigate? Do we need to allocate more memory to the buffer servers?

“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.”

From: Ashwin Chandra Putta <as...@gmail.com>
Reply-To: "users@apex.apache.org" <us...@apex.apache.org>
Date: Wednesday, November 30, 2016 at 12:07 PM
To: "users@apex.apache.org" <us...@apex.apache.org>
Subject: Re: Connection refused exception

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 <v....@datatorrent.com>> 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 <v....@datatorrent.com>
Organization: DataTorrent
Reply-To: "users@apex.apache.org"<ma...@apex.apache.org> <us...@apex.apache.org>
Date: Tuesday, November 29, 2016 at 10:21 PM
To: "users@apex.apache.org"<ma...@apex.apache.org> <us...@apex.apache.org>
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.
________________________________________________________

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.

Re: Connection refused exception

Posted by Ashwin Chandra Putta <as...@gmail.com>.
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 <v....@datatorrent.com> 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 <v....@datatorrent.com> <v....@datatorrent.com>
> *Organization: *DataTorrent
> *Reply-To: *"users@apex.apache.org" <us...@apex.apache.org>
> <us...@apex.apache.org> <us...@apex.apache.org>
> *Date: *Tuesday, November 29, 2016 at 10:21 PM
> *To: *"users@apex.apache.org" <us...@apex.apache.org>
> <us...@apex.apache.org> <us...@apex.apache.org>
> *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.

Re: Connection refused exception

Posted by Vlad Rozov <v....@datatorrent.com>.
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\u2019s 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 <v....@datatorrent.com>
> *Organization: *DataTorrent
> *Reply-To: *"users@apex.apache.org" <us...@apex.apache.org>
> *Date: *Tuesday, November 29, 2016 at 10:21 PM
> *To: *"users@apex.apache.org" <us...@apex.apache.org>
> *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\u2019m wondering if anyone has seen a similar stack trace before as
>     there isn\u2019t a lot of info provided. I\u2019m wondering if the
>     connection refused is from one operator to another or the
>     kafkaInputOperator being unable to connect to kafka.
>
>     Any ideas? Here\u2019s 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.
>


Re: Connection refused exception

Posted by "Feldkamp, Brandon (CONT)" <Br...@capitalone.com>.
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 <v....@datatorrent.com>
Organization: DataTorrent
Reply-To: "users@apex.apache.org" <us...@apex.apache.org>
Date: Tuesday, November 29, 2016 at 10:21 PM
To: "users@apex.apache.org" <us...@apex.apache.org>
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.

Re: Connection refused exception

Posted by Vlad Rozov <v....@datatorrent.com>.
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\u2019m wondering if anyone has seen a similar stack trace before as there 
> isn\u2019t a lot of info provided. I\u2019m wondering if the connection refused 
> is from one operator to another or the kafkaInputOperator being unable 
> to connect to kafka.
>
> Any ideas? Here\u2019s 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.
>


Re: Connection refused exception

Posted by Thomas Weise <th...@apache.org>.
There was a bug in the 3.5 release, this could be it. We fixed it and put
it into 3.5.1-snapshot. The detail are in JIRA, I don't have access to it
right now.

--
sent from mobile
On Nov 29, 2016 6:02 AM, "Feldkamp, Brandon (CONT)" <
Brandon.Feldkamp@capitalone.com> wrote:

> This pops up a little while later. I’ll have to check to see if I can see
> anything before!
>
>
>
> 016-11-24 21:51:02,443 [main] ERROR stram.StreamingAppMaster main -
> Exiting Application Master
>
> java.lang.NullPointerException
>
>                 at com.datatorrent.contrib.kafka.
> AbstractKafkaInputOperator.isPartitionRequired(AbstractKafkaInputOperator.
> java:804)
>
>                 at com.datatorrent.contrib.kafka.
> AbstractKafkaInputOperator.processStats(AbstractKafkaInputOperator.
> java:715)
>
>                 at com.datatorrent.stram.plan.physical.PhysicalPlan$
> StatsListenerProxy.processStats(PhysicalPlan.java:206)
>
>                 at com.datatorrent.stram.plan.physical.PhysicalPlan.
> onStatusUpdate(PhysicalPlan.java:1797)
>
>                 at com.datatorrent.stram.StreamingContainerManager.
> processEvents(StreamingContainerManager.java:1035)
>
>                 at com.datatorrent.stram.StreamingContainerManager.
> monitorHeartbeat(StreamingContainerManager.java:798)
>
>                 at com.datatorrent.stram.StreamingAppMasterService.
> execute(StreamingAppMasterService.java:1025)
>
>                 at com.datatorrent.stram.StreamingAppMasterService.run(
> StreamingAppMasterService.java:647)
>
>                 at com.datatorrent.stram.StreamingAppMaster.main(
> StreamingAppMaster.java:104)
>
>
>
> *From: *Pramod Immaneni <pr...@datatorrent.com>
> *Reply-To: *"users@apex.apache.org" <us...@apex.apache.org>
> *Date: *Tuesday, November 29, 2016 at 8:57 AM
> *To: *"users@apex.apache.org" <us...@apex.apache.org>
> *Subject: *Re: Connection refused exception
>
>
>
> Brandon,
>
>
>
> This is not related to kafkaInputOperator talking to Kafka. Do you see any
> other exceptions in the logs around this exception before or after?
>
>
>
> On Tue, Nov 29, 2016 at 6:54 AM, Feldkamp, Brandon (CONT) <
> Brandon.Feldkamp@capitalone.com> 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.
>

Re: Connection refused exception

Posted by Pramod Immaneni <pr...@datatorrent.com>.
I would let some of the kafka experts in the group take a look at this and
suggest further action. If they don't respond I can investigate this
exception further.

Thanks.

On Tue, Nov 29, 2016 at 7:02 AM, Feldkamp, Brandon (CONT) <
Brandon.Feldkamp@capitalone.com> wrote:

> This pops up a little while later. I’ll have to check to see if I can see
> anything before!
>
>
>
> 016-11-24 21:51:02,443 [main] ERROR stram.StreamingAppMaster main -
> Exiting Application Master
>
> java.lang.NullPointerException
>
>                 at com.datatorrent.contrib.kafka.
> AbstractKafkaInputOperator.isPartitionRequired(AbstractKafkaInputOperator.
> java:804)
>
>                 at com.datatorrent.contrib.kafka.
> AbstractKafkaInputOperator.processStats(AbstractKafkaInputOperator.
> java:715)
>
>                 at com.datatorrent.stram.plan.physical.PhysicalPlan$
> StatsListenerProxy.processStats(PhysicalPlan.java:206)
>
>                 at com.datatorrent.stram.plan.physical.PhysicalPlan.
> onStatusUpdate(PhysicalPlan.java:1797)
>
>                 at com.datatorrent.stram.StreamingContainerManager.
> processEvents(StreamingContainerManager.java:1035)
>
>                 at com.datatorrent.stram.StreamingContainerManager.
> monitorHeartbeat(StreamingContainerManager.java:798)
>
>                 at com.datatorrent.stram.StreamingAppMasterService.
> execute(StreamingAppMasterService.java:1025)
>
>                 at com.datatorrent.stram.StreamingAppMasterService.run(
> StreamingAppMasterService.java:647)
>
>                 at com.datatorrent.stram.StreamingAppMaster.main(
> StreamingAppMaster.java:104)
>
>
>
> *From: *Pramod Immaneni <pr...@datatorrent.com>
> *Reply-To: *"users@apex.apache.org" <us...@apex.apache.org>
> *Date: *Tuesday, November 29, 2016 at 8:57 AM
> *To: *"users@apex.apache.org" <us...@apex.apache.org>
> *Subject: *Re: Connection refused exception
>
>
>
> Brandon,
>
>
>
> This is not related to kafkaInputOperator talking to Kafka. Do you see any
> other exceptions in the logs around this exception before or after?
>
>
>
> On Tue, Nov 29, 2016 at 6:54 AM, Feldkamp, Brandon (CONT) <
> Brandon.Feldkamp@capitalone.com> 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.
>

Re: Connection refused exception

Posted by "Feldkamp, Brandon (CONT)" <Br...@capitalone.com>.
This pops up a little while later. I’ll have to check to see if I can see anything before!

016-11-24 21:51:02,443 [main] ERROR stram.StreamingAppMaster main - Exiting Application Master
java.lang.NullPointerException
                at com.datatorrent.contrib.kafka.AbstractKafkaInputOperator.isPartitionRequired(AbstractKafkaInputOperator.java:804)
                at com.datatorrent.contrib.kafka.AbstractKafkaInputOperator.processStats(AbstractKafkaInputOperator.java:715)
                at com.datatorrent.stram.plan.physical.PhysicalPlan$StatsListenerProxy.processStats(PhysicalPlan.java:206)
                at com.datatorrent.stram.plan.physical.PhysicalPlan.onStatusUpdate(PhysicalPlan.java:1797)
                at com.datatorrent.stram.StreamingContainerManager.processEvents(StreamingContainerManager.java:1035)
                at com.datatorrent.stram.StreamingContainerManager.monitorHeartbeat(StreamingContainerManager.java:798)
                at com.datatorrent.stram.StreamingAppMasterService.execute(StreamingAppMasterService.java:1025)
                at com.datatorrent.stram.StreamingAppMasterService.run(StreamingAppMasterService.java:647)
                at com.datatorrent.stram.StreamingAppMaster.main(StreamingAppMaster.java:104)

From: Pramod Immaneni <pr...@datatorrent.com>
Reply-To: "users@apex.apache.org" <us...@apex.apache.org>
Date: Tuesday, November 29, 2016 at 8:57 AM
To: "users@apex.apache.org" <us...@apex.apache.org>
Subject: Re: Connection refused exception

Brandon,

This is not related to kafkaInputOperator talking to Kafka. Do you see any other exceptions in the logs around this exception before or after?

On Tue, Nov 29, 2016 at 6:54 AM, Feldkamp, Brandon (CONT) <Br...@capitalone.com>> 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.

Re: Connection refused exception

Posted by Pramod Immaneni <pr...@datatorrent.com>.
Brandon,

This is not related to kafkaInputOperator talking to Kafka. Do you see any
other exceptions in the logs around this exception before or after?

On Tue, Nov 29, 2016 at 6:54 AM, Feldkamp, Brandon (CONT) <
Brandon.Feldkamp@capitalone.com> 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.
>