Re: Flow.xml.gz are Empty
UPDATE: Here's the complete stack trace for from the slave node's app.log java.lang.Exception: Unable to load flow due to: java.io.IOException: org.apache.nifi.cluster.ConnectionException: Failed to connect node to cluster because local or cluster flow is malformed. at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:784) ~[nifi-jetty-1.1.1.0-12.jar:1.1.1.0-12] at org.apache.nifi.NiFi.(NiFi.java:137) [nifi-runtime-1.1.1.0-12.jar:1.1.1.0-12] at org.apache.nifi.NiFi.main(NiFi.java:227) [nifi-runtime-1.1.1.0-12.jar:1.1.1.0-12] Caused by: java.io.IOException: org.apache.nifi.cluster.ConnectionException: Failed to connect node to cluster because local or cluster flow is malformed. at org.apache.nifi.controller.StandardFlowService.load(StandardFlowService.java:453) ~[nifi-framework-core-1.1.1.0-12.jar:1.1.1.0-12] at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:775) ~[nifi-jetty-1.1.1.0-12.jar:1.1.1.0-12] ... 2 common frames omitted Caused by: org.apache.nifi.cluster.ConnectionException: Failed to connect node to cluster because local or cluster flow is malformed. at org.apache.nifi.controller.StandardFlowService.loadFromConnectionResponse(StandardFlowService.java:734) ~[nifi-framework-core-1.1.1.0-12.jar:1.1.1.0-12] at org.apache.nifi.controller.StandardFlowService.load(StandardFlowService.java:433) ~[nifi-framework-core-1.1.1.0-12.jar:1.1.1.0-12] ... 3 common frames omitted Caused by: org.apache.nifi.controller.FlowSerializationException: org.xml.sax.SAXParseException; lineNumber: 3384; columnNumber: 23; Character reference " at org.apache.nifi.controller.StandardFlowSynchronizer.parseFlowBytes(StandardFlowSynchronizer.java:356) ~[nifi-framework-core-1.1.1.0-12.jar:1.1.1.0-12] at org.apache.nifi.controller.StandardFlowSynchronizer.sync(StandardFlowSynchronizer.java:232) ~[nifi-framework-core-1.1.1.0-12.jar:1.1.1.0-12] at org.apache.nifi.controller.FlowController.synchronize(FlowController.java:1203) ~[nifi-framework-core-1.1.1.0-12.jar:1.1.1.0-12] at org.apache.nifi.persistence.StandardXMLFlowConfigurationDAO.load(StandardXMLFlowConfigurationDAO.java:72) ~[nifi-framework-core-1.1.1.0-12.jar:1.1.1.0-12] at org.apache.nifi.controller.StandardFlowService.loadFromBytes(StandardFlowService.java:608) ~[nifi-framework-core-1.1.1.0-12.jar:1.1.1.0-12] at org.apache.nifi.controller.StandardFlowService.loadFromConnectionResponse(StandardFlowService.java:709) ~[nifi-framework-core-1.1.1.0-12.jar:1.1.1.0-12] ... 4 common frames omitted Caused by: org.xml.sax.SAXParseException: Character reference " at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257) ~[na:1.8.0_51] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:348) ~[na:1.8.0_51] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121) ~[na:1.8.0_51] at org.apache.nifi.controller.StandardFlowSynchronizer.parseFlowBytes(StandardFlowSynchronizer.java:354) ~[nifi-framework-core-1.1.1.0-12.jar:1.1.1.0-12] ... 9 common frames omitted -- View this message in context: http://apache-nifi-developer-list.39713.n7.nabble.com/Nodes-Flow-xml-gz-Are-Empty-When-Recreated-tp8503p8512.html Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.
Re: Flow.xml.gz are Empty
I went through the nifi.properties for my ncm and two nodes and made sure that the "nifi.sensitive.props.key" values are all the same. However, I do not know how to make sure my ports are clear between the nodes. Could you help me or direct me to to some resources? >Make that your 'nifi.sensitive.props.key" is the same between all the >nodes. If it is not, you will get a partial load of the file, basically up >until the point something gets loaded that needs to be decrypted. >Make sure that your ports a clear between all the nodes. There are 3 ports t>hat you need to open for clustering. Sounds simple, but lots of time, p>eople get 2 out of 3 on one of the boxes. -- View this message in context: http://apache-nifi-developer-list.39713.n7.nabble.com/Nodes-Flow-xml-gz-Are-Empty-When-Recreated-tp8503p8506.html Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.
Re: Flow.xml.gz are Empty
You can check a couple of things. Make that your 'nifi.sensitive.props.key" is the same between all the nodes. If it is not, you will get a partial load of the file, basically up until the point something gets loaded that needs to be decrypted. Make sure that your ports a clear between all the nodes. There are 3 ports that you need to open for clustering. Sounds simple, but lots of time, people get 2 out of 3 on one of the boxes. On Thu, Mar 24, 2016 at 8:17 AM, dale.chang13 wrote: > Good morning guys, > > I've been having trouble connecting two slave nodes to the ncm. > In the logs, on the line before "/unable to load flow due to... > ConnectionException... local or cluster flow is malformed/," > I see /[Fatal Error] :3384:23: Character reference "/ > > Prior to this, I deleted flow.xml.gz from the nodes because the nodes build > their flow.xml.gz from the NCM's flow.tar, yet I still have the malformed > flow issue. > > Any ideas? I can always give more information. > > > > -- > View this message in context: > http://apache-nifi-developer-list.39713.n7.nabble.com/Flow-xml-gz-are-Empty-tp8503.html > Sent from the Apache NiFi Developer List mailing list archive at > Nabble.com. > -- Corey Flowers Vice President, Onyx Point, Inc (410) 541-6699 cflow...@onyxpoint.com -- This account not approved for unencrypted proprietary information --
Flow.xml.gz are Empty
Good morning guys, I've been having trouble connecting two slave nodes to the ncm. In the logs, on the line before "/unable to load flow due to... ConnectionException... local or cluster flow is malformed/," I see /[Fatal Error] :3384:23: Character reference "/ Prior to this, I deleted flow.xml.gz from the nodes because the nodes build their flow.xml.gz from the NCM's flow.tar, yet I still have the malformed flow issue. Any ideas? I can always give more information. -- View this message in context: http://apache-nifi-developer-list.39713.n7.nabble.com/Flow-xml-gz-are-Empty-tp8503.html Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.