Disconnect nifi node cluster via API

2018-02-22 Thread Jorge Machado
Hi guys, is there an api to disconnect a node from the cluster ? This would be great to securely automate a rolling restart. Jorge

Re: Disconnect nifi node cluster via API

2018-02-22 Thread Charlie Meyer
On https://nifi.apache.org/docs/nifi-docs/rest-api/index.html take a look at DELETE /controller/cluster/nodes/{id} That might have what you need. -Charlie On Feb 22, 2018 02:19, "Jorge Machado" wrote: Hi guys, is there an api to disconnect a node from the cluster ? This would

Re: Disconnect nifi node cluster via API

2018-02-22 Thread Matt Gilman
Jorge, A node must be disconnected before it can be removed. If you're looking to invoke the REST endpoints, I would suggest looking at your browsers Dev Tools to see the requests in action. Alternatively, you could use the NodeManagerTool [1] that is bundled in the toolkit [2]. Matt [1]

Get YYYY from java.sql.Timestamp (jython engine, ExecuteScript)

2018-02-22 Thread James McMahon
Hello. I have a java.sql.Timestamp object in a python script being executed by the python engine of ExecuteScript. As has been explained to me, the underpinnings of this appears to be jython. I need to get , MM, and DD from this java.sql.Timestamp object, ,myDT. I've done research and

Re: Disconnect nifi node cluster via API

2018-02-22 Thread Jorge Machado
Hi Matt thanks for the reply, that’s is what I was looking into it ! Jorge Machado mfg > On 22 Feb 2018, at 13:55, Matt Gilman wrote: > > Jorge, > > A node must be disconnected before it can be removed. If you're looking to > invoke the REST endpoints, I

Smarter org.apache.nifi.nar.NarUnpacker to get proper versions

2018-02-22 Thread Jorge Machado
While writhing custom processors we get to a point where we have like 2 versions of the nar file in the canvas. Let’s say I have two processors: Development processor1 type: a version 0.0.5 Production Processor type: a version 0.0.2 Now I want to upgrade all processors without needing to go

Re: Get YYYY from java.sql.Timestamp (jython engine, ExecuteScript)

2018-02-22 Thread James McMahon
Excellent - thank you Matt, I will work this in immediately. As always I appreciate the insights and advice. Cheers, Jim On Thu, Feb 22, 2018 at 2:46 PM, Matt Burgess wrote: > Jim, > > Instead of "import java.util Calendar" try "from java.util import > Calendar". You have

Re: Get YYYY from java.sql.Timestamp (jython engine, ExecuteScript)

2018-02-22 Thread Matt Burgess
Jim, Instead of "import java.util Calendar" try "from java.util import Calendar". You have the right approach (using calendar) to get the year, but always be aware of any timezone issues (are the input timestamps UTC? If not you might need to make an adjustment to the calendar for the timezone).

Re: [Data Flow] File content not read completely

2018-02-22 Thread Valencia Serrao
Hi Mark, Surely, PutFile is not the component to merge the content. I'd plan to use some other component and you have given me good pointers. Thank you! Regards, Valencia From: Mark Payne To: Valencia Serrao , "users@nifi.apache.org"

How to use List File/Fetch File processor in a cluster mode.

2018-02-22 Thread mohit.jain
Hi all, I created a template to ingest data from any NiFi local directory using ListFile/FetchFile processor. When running in a cluster mode it asks for the directory in both the nodes. What is the best way to use the combination of both? Regards, Mohit Jain