nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy LoPresto <>
Subject Re: Issue with Groovy script
Date Thu, 04 May 2017 19:04:31 GMT

When you say you’ve “included the http-builder jar as a dependency” do you mean you
provided the location of the directory containing that JAR as the Module Path in the ExecuteScript

Andy LoPresto
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On May 4, 2017, at 1:58 PM, Mike Harding <> wrote:
> Hi all,
> I'm trying to run a simple groovy script in ExecuteScript processor to make a HTTP GET
request (I understand their are processors get this but I'm just exploring Groovy at the minute).
> import
> flowFile = session.get()
> def http = new HTTPBuilder(' <>')
> def html = http.get(path : '/search', query : [q:'waffles'])
> log.warn(html)
> session.transfer(flowFile, REL_SUCCESS)
> Ive included the http-builder jar as a dependency but I'm getting the error:
> <image.png>
> I'm not new to NiFi but new to using Groovy. I've tried import org.apache.http.* but
that doesn't help. I'm assuming that the missing class library is a default library in Groovy?
> Any help much appreciated,
> Mike

View raw message