You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Andrew Grande (JIRA)" <ji...@apache.org> on 2015/11/25 21:28:10 UTC

[jira] [Commented] (NIFI-1059) NiFi cluster node commands timeout. Must manually kill process.

    [ https://issues.apache.org/jira/browse/NIFI-1059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15027539#comment-15027539 ] 

Andrew Grande commented on NIFI-1059:
-------------------------------------

Hit this problem too when manually migrating NCM to a different node. Missed one of the host params that NCM returns to nodes (it had the old host) and cluster nodes went into this state. NiFi stop or restart timed out and didn't kill the target JVM.

> NiFi cluster node commands timeout.  Must manually kill process.
> ----------------------------------------------------------------
>
>                 Key: NIFI-1059
>                 URL: https://issues.apache.org/jira/browse/NIFI-1059
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 0.3.0
>            Reporter: Matthew Clarke
>            Priority: Minor
>
> I had a NiFi cluster Node deliberately configured to use a unsigned/untrusted keystore.  When I tried tried to join it to my cluster, i got the expected javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated errors.  The problem I did not expect is that I could no longer issue commands to the cluster Node nifi.sh (stop, restart, or dump).
> STOP Command:
> ERROR [main] org.apache.nifi.bootstrap.Command Failed to send shutdown command to port 43821 due to java.net.SocketTimeoutException: Read timed out
> java.net.SocketTimeoutException: Read timed out
> 	at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_85]
> 	at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_85]
> 	at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_85]
> 	at java.net.SocketInputStream.read(SocketInputStream.java:210) ~[na:1.7.0_85]
> 	at org.apache.nifi.bootstrap.RunNiFi.stop(RunNiFi.java:647) [nifi-bootstrap-1.0.0.0-7.jar:1.0.0.0-7]
> 	at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:206) [nifi-bootstrap-1.0.0.0-7.jar:1.0.0.0-7]
> DUMP Command:
> Exception in thread "main" java.net.SocketTimeoutException: Read timed out
> 	at java.net.SocketInputStream.socketRead0(Native Method)
> 	at java.net.SocketInputStream.read(SocketInputStream.java:152)
> 	at java.net.SocketInputStream.read(SocketInputStream.java:122)
> 	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
> 	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
> 	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
> 	at java.io.InputStreamReader.read(InputStreamReader.java:184)
> 	at java.io.BufferedReader.fill(BufferedReader.java:154)
> 	at java.io.BufferedReader.readLine(BufferedReader.java:317)
> 	at java.io.BufferedReader.readLine(BufferedReader.java:382)
> 	at org.apache.nifi.bootstrap.RunNiFi.dump(RunNiFi.java:583)
> 	at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:216)
> I was forced to manually kill the NiFi process to stop it.
> After installing the good keystore, the Node started and joined the cluster as expected. I was able to successfully issue stop, restart, and dump commands at this time as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)