<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: NiFi: Cannot use '@GrabConfig(systemClassLoader=true)' in groovy script (ExecuteScript processor) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-use-GrabConfig-systemClassLoader-true-in-groovy/m-p/203618#M76945</link>
    <description>&lt;P&gt;Wow, that was fast! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm currently playing around with an older version of NIFI (1.2.0). I'll upgrade to the latest available and get back at you with results. Thank you very much!&lt;/P&gt;&lt;P&gt;Nicholas&lt;/P&gt;</description>
    <pubDate>Fri, 06 Apr 2018 22:30:48 GMT</pubDate>
    <dc:creator>n_mckinnon</dc:creator>
    <dc:date>2018-04-06T22:30:48Z</dc:date>
    <item>
      <title>NiFi: Cannot use '@GrabConfig(systemClassLoader=true)' in groovy script (ExecuteScript processor)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-use-GrabConfig-systemClassLoader-true-in-groovy/m-p/203616#M76943</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I would like to use 'mysql:mysql-connector-java:5.1.39' in a groovy script.&lt;BR /&gt;The annotation '@GrabConfig(systemClassLoader=true)' is normally required when using this library, but it seems that it is not supported from within scripts that are run via the ExecuteScript processor (error message is 'no suitable classloader found for grab').&lt;BR /&gt;I've also tried including the JAR by manually downloading it and setting the 'Module Directory' property of the flowfile, with no success.&lt;BR /&gt;Is there a workaround that would allow me to use this mysql connector from within a script?&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Nicholas&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 22:12:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-use-GrabConfig-systemClassLoader-true-in-groovy/m-p/203616#M76943</guid>
      <dc:creator>n_mckinnon</dc:creator>
      <dc:date>2018-04-06T22:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: Cannot use '@GrabConfig(systemClassLoader=true)' in groovy script (ExecuteScript processor)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-use-GrabConfig-systemClassLoader-true-in-groovy/m-p/203617#M76944</link>
      <description>&lt;P&gt;What version of NiFi are you using? You should definitely be able to use it when it is specified in the Module Directory property. Alternatively, if you just need a Connection from the driver, you could create a DBCPConnectionPool that uses that JAR, then access that controller service to get a Connection. See my &lt;A href="http://funnifi.blogspot.com/2016/04/sql-in-nifi-with-executescript.html" target="_blank"&gt;blog post&lt;/A&gt; and the documentation for &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-groovyx-nar/1.5.0/org.apache.nifi.processors.groovyx.ExecuteGroovyScript/index.html" target="_blank"&gt;ExecuteGroovyScript&lt;/A&gt; (which makes this a lot easier than the plain ExecuteScript).&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 22:26:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-use-GrabConfig-systemClassLoader-true-in-groovy/m-p/203617#M76944</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2018-04-06T22:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: Cannot use '@GrabConfig(systemClassLoader=true)' in groovy script (ExecuteScript processor)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-use-GrabConfig-systemClassLoader-true-in-groovy/m-p/203618#M76945</link>
      <description>&lt;P&gt;Wow, that was fast! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm currently playing around with an older version of NIFI (1.2.0). I'll upgrade to the latest available and get back at you with results. Thank you very much!&lt;/P&gt;&lt;P&gt;Nicholas&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 22:30:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-use-GrabConfig-systemClassLoader-true-in-groovy/m-p/203618#M76945</guid>
      <dc:creator>n_mckinnon</dc:creator>
      <dc:date>2018-04-06T22:30:48Z</dc:date>
    </item>
  </channel>
</rss>

