Re: How can I change the content-type of a flow file in a script processor?

2017-12-08 Thread Russell Bateman
Eric, Just a reminder not to forget that this modifies the flowfile and you must gather/carry that modification in a practical sense. Therefore, your code will be     flowfile = session.putAttribute( flowfile, "content-type", "application/json" ); and thence you'll use the updated

Help with SSL Context Service for https post requests

2017-12-08 Thread Eric Chaves
Hi, I'd like to make an HTTPS request to an internet public service but I'm failing to to setup the SSL Context Service. I tried to export my system certs to be used as truststore. openssl pkcs12 -export -nokeys -in /etc/ssl/certs/ca-certificates.crt -out ./assets/truststore.p12 Can someone

Re: How can I change the content-type of a flow file in a script processor?

2017-12-08 Thread Eric Chaves
Thanks guys. 2017-12-08 13:27 GMT-02:00 Russell Bateman : > Eric, > > Just a reminder not to forget that this modifies the flowfile and you must > gather/carry that modification in a practical sense. Therefore, your code > will be > > flowfile = session.putAttribute(

Re: Help with SSL Context Service for https post requests

2017-12-08 Thread Andy LoPresto
Hi Eric, The truststore is a collection of trusted public key certificates. As you noted, the /etc/ssl/ directory contains pre-loaded CA certificates to be used for this. You can also use the JVM cacerts file, which is already in JKS format. If this isn’t sufficient, can you provide an error

ConvertJSONToSQL empty VALUES fields

2017-12-08 Thread Alberto Bengoa
Hey Folks, I'm having some problems with ConvertJSONToSQL processor. I'm ingesting a JSON like this: { "_Time_Stamp" : 1512146156211, "_Operation" : 4, "cdn_fabrica" : 7501, "char_1" : "Value 1", "char_2" : null } On the SQL relationship I got a query like this: UPDATE

Re: ConvertJSONToSQL empty VALUES fields

2017-12-08 Thread Matt Burgess
Alberto, This came up the other day as well, the generated SQL is a Prepared Statement, which allows the code to use the same statement but then just set different values based on "parameters". In this case the values for the parameters are stored in "positional" flow file attributes for the

Re: Help with SSL Context Service for https post requests

2017-12-08 Thread Eric Chaves
sure! I'm listing the log folder from inside the docker container. logback.xml is attached. nifi@5d3b7bd36ffd:/opt/nifi/nifi-1.4.0$ ls -al logs total 162720 drwxr-xr-x 2 nifi nifi 4096 Dec 8 01:03 . drwxr-xr-x 15 nifi nifi 4096 Dec 8 22:02 .. -rw-r--r-- 1 nifi nifi 0 Nov 30

Re: Help with SSL Context Service for https post requests

2017-12-08 Thread Eric Chaves
Hi Andy, The log from bulletin board is: PostHTTP[id=3253a78a-0160-1000-b7cf-6d7878f13efa] Unable to communicate with destination https://mandrillapp.com/api/1.0/messages/send.json to determine whether or not it can accept flowfiles/gzip; routing

ListS3 Processor Error

2017-12-08 Thread Aruna Sankaralingam
I am trying to get a pdf file from S3 and load to Elastic Search. The ListS3 processor is giving me this error. Could someone please let me know where I am going wrong? 20:52:25 UTC ERROR 37d7226e-0160-1000-6049-d4c489cd32f3 ListS3[id=37d7226e-0160-1000-6049-d4c489cd32f3]

RE: ListS3 Processor Error

2017-12-08 Thread Aruna Sankaralingam
Nifi version 1.4 From: Joe Witt [mailto:joe.w...@gmail.com] Sent: Friday, December 08, 2017 3:59 PM To: users@nifi.apache.org Subject: Re: ListS3 Processor Error What version of NiFi? Looks like either a classpath/classloader issue OR the amazon client library cannot parse the response it is

Re: ListS3 Processor Error

2017-12-08 Thread Joe Witt
What version of NiFi? Looks like either a classpath/classloader issue OR the amazon client library cannot parse the response it is getting back... The logs/nifi-app.log should have the full stack trace. If not you can turn on debug logging for that processor and perhaps then it will. Thanks

Re: ListS3 Processor Error

2017-12-08 Thread Joe Witt
Here is an example I found for another processor https://mail-archives.apache.org/mod_mbox/nifi-dev/201509.mbox/%3CCAFddr26AEVqnoQ=mWr7DSNDFVrr9NuYy9GCcXg=4fyycqab...@mail.gmail.com%3E Thanks On Fri, Dec 8, 2017 at 4:02 PM, Aruna Sankaralingam < aruna.sankaralin...@cormac-corp.com> wrote: >