Found multiple policies exception

2017-11-08 Thread kumar r
Hi, I am using NiFi-1.3.0 secured with Kerberos. When i set a policy for a user, i am getting Found multiple policies for '/controller' with 'write'. After checking log file, below exception occurs org.apache.nifi.web.ResourceNotFoundException: Unable to find user with id

Output from PostHTTP

2017-11-08 Thread James McMahon
How can we tap into the workflow to see the output of the PostHTTP processor? What are options folks have used to do that? Thanks in advance. -Jim

Re: RE: [EXT] Re: Polling Processors impact on Latency

2017-11-08 Thread Chirag Dewan
That's a great start Andy and Peter. Thank you for such precise answers.  I will start tweaking with the parameters you mentioned and try and reach an optimum latency-resource configuration.  Thanks a lot for your help.  Chirag On Tuesday 7 November 2017, 8:40:58 PM IST, Andy Christianson

Re: Reading flowfile in a stream callback

2017-11-08 Thread James McMahon
Thank you Andy, thank you again Joe. I'll rethink my approach based on your recommendations. -Jim On Fri, Nov 3, 2017 at 1:31 PM, Andy LoPresto wrote: > James, > > I am not a Python expert, so I’m glad other people could weigh in. As far > as routing on content type, I

Re: Output from PostHTTP

2017-11-08 Thread Mike Thomsen
Don't know, but you might want to try out InvokeHttp. I know it lets you tap into the output if you tell it to always output the HTTP response. On Wed, Nov 8, 2017 at 8:28 AM, James McMahon wrote: > How can we tap into the workflow to see the output of the PostHTTP >

Re: Found multiple policies exception

2017-11-08 Thread Kevin Doran
Hi Kumar, Access Policies in NiFi 1.3.0 are defined with (resource, action) pairs, where "resource" is basically the path part of the resource URI (e.g., /controller, /policies), and "action" is either 'read' or 'write'. For each policy defined (resource, action) must be unique. So if

Replace Text

2017-11-08 Thread Austin Duncan
So avro schemas dont allow spaces. Is there a way for me to replace underscores with spaces efficiently? Right now I am using a bunch of replace text processors to replace the strings that contain underscores with strings with spaces. Is there a better way of doing this? It works now because my

Re: Replace Text

2017-11-08 Thread Austin Duncan
I am using executeSQL thanks thats perfect. On Wed, Nov 8, 2017 at 9:32 AM, Matt Burgess wrote: > Austin, > > If your data is not coming from something like ExecuteSQL (which Bryan > mentioned) but you are defining a schema for it, there are a couple of > options. First,

Re: Output from PostHTTP

2017-11-08 Thread Matt Burgess
Jim, The content of the flow file is the body of the outgoing POST, so you could query provenance for the PostHttp processor, find the associated flow file(s), and (if the content is still available in the content repository) retrieve the content. Also the resolved URL for the POST (after

Re: Incorrect PublishKafka_0_10 documentation?

2017-11-08 Thread Bryan Bende
James, Sorry it was confusing to get this working. What you described is correct, the "Kerberos Service Name" should be the serviceName you would put in the JAAS file which is typically "kafka", and then the "Kerberos Principal' and "Kerberos Keytab" would be the prinicpal and keytab from the

Re: Output from PostHTTP

2017-11-08 Thread James McMahon
The service I am calling expects the content to be in an http post attribute called "file". Using the guidance from you above Matt (thanks very much for that), I have been able to post in attribute "file" some random text, "@/home/nifi/test/dummyfilename.txt". I see that as output from a ListenTTP

Re: Output from PostHTTP

2017-11-08 Thread James McMahon
But isn't the Http *response *what comes back to us? I like your thinking, but it is the outgoing post i need to review. The response won't help me with that. Am I missing the point? On Wed, Nov 8, 2017 at 8:52 AM, Mike Thomsen wrote: > Don't know, but you might want to

Re: Output from PostHTTP

2017-11-08 Thread Matt Burgess
That's an interesting service, must expect smallish files :) You can get the entire content into an attribute using ExtractText, match the whole thing and put it in an attribute called "file", then set the Attributes To Send property in InvokeHttp to include "file" and anything else (except

InvokeHttp does not support Basic Authentication username/password as expressions

2017-11-08 Thread Putta Challa
Hi, We have a requirement to invoke 800 remote urls with login info (different for each url), since InvokeHttp Basic Authentication Username/Password does not support expression language I tried “Authorization” property with value “Basic ” but it does not work. DEBUG shows the following

Re: NiFi ExecuteSQL error => can not be represented as java.sql.Timestamp

2017-11-08 Thread Koji Kawamura
Hi Mohit, Thanks for sharing the update, glad to know that you found a solution! (The exception message still looks strange to me though..) Koji On Wed, Nov 8, 2017 at 4:29 PM, wrote: > Hi Koji, > > I was able to fix this issue using following with my JDBC