[ https://issues.apache.org/jira/browse/NIFI-1059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15027752#comment-15027752 ]
Andrew Grande commented on NIFI-1059: ------------------------------------- [~markap14] - the patch solves the problem, but needs some final brushing up on the log formatting - it's a little off: {noformat} ./nifi.sh stop Java home: /usr/jdk64/jdk1.8.0_40 NiFi home: /home/nifi/nifi-0.4.0-SNAPSHOT Bootstrap Config File: /home/nifi/nifi-0.4.0-SNAPSHOT/conf/bootstrap.conf 2015-11-25 14:56:25,461 ERROR [main] org.apache.nifi.bootstrap.Command Failed to send shutdown command to port 53619 due to java.net.SocketTimeoutException: Read timed out. Will kill the NiFi Process with PID java.net.SocketTimeoutException: Read timed out. {noformat} To reproduce the initial condition in a cluster I simply went ahead and edited nifi.properties for one of the nodes and pointed it to an invalid manager port - it nicely exposes the error now when trying to stop the node. The JVM is properly terminated now, so fixing the error message text should close the issue. > 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 > Assignee: Mark Payne > Priority: Minor > Fix For: 0.4.0 > > Attachments: > 0001-NIFI-1059-If-we-get-an-IOException-when-telling-NiFi.patch > > > 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)