Re: NIFI 1.4.0 - PutMongo - How to use composite key for "Update Query key" parameter ?

2017-11-16 Thread Matt Burgess
I wrote up an Improvement Jira to add the property to Validate Field Names to AvroSchemaRegistry: https://issues.apache.org/jira/browse/NIFI-4612 -Matt On Thu, Nov 16, 2017 at 9:15 AM, Matt Burgess wrote: > Mike, > > That's a very good point, I guess that would have to be

DBCP Error Cannot get a connection, pool error Timeout waiting for idle object

2017-11-16 Thread Eric Chaves
Hi guys, I've made a lot of changes on my script processor and now I'm properly getting an instance of DBCPService however when I try to use the connection I got the error org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object. I know the

Re: NIFI 1.4.0 - PutMongo - How to use composite key for "Update Query key" parameter ?

2017-11-16 Thread Matt Burgess
Mike, That's a very good point, I guess that would have to be emulated somehow. I wonder how Linkedin and Coursera (who use a Scala binding for Pegasus called Courier) handle all that? Anyway as it turns out Schema.Parser() has a method called setValidate(boolean) [1] which can enable/disable

Re: DBCP Error Cannot get a connection, pool error Timeout waiting for idle object

2017-11-16 Thread Eric Chaves
Ok, so after a few more research I think I got it working. The tricky was the fact that I wasn't closing the connection hence exhausting the pool very quickly. I didn't notice this before because most code I saw didn't explicitly close the connection but once I did it my scripted processor worked