<?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: How to use one of nifi-standard-services like DBCPService in custom processor? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-one-of-nifi-standard-services-like-DBCPService-in/m-p/179080#M73035</link>
    <description>&lt;P&gt;i also tried to add standard-processor nar as dependency but build failed. looks like only one NAR as dependency is allowed. now i understand what you meant by adding parent jar by defining it's NAR as dependency in custom NAR.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2018 04:01:54 GMT</pubDate>
    <dc:creator>vinaysharmahk</dc:creator>
    <dc:date>2018-01-04T04:01:54Z</dc:date>
    <item>
      <title>How to use one of nifi-standard-services like DBCPService in custom processor?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-one-of-nifi-standard-services-like-DBCPService-in/m-p/179077#M73032</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Has anyone tried using nifi-standard-services like DBCPService in custom processor?&lt;/P&gt;&lt;P&gt;My custom processor works fine if i write my own code to connect to DB or keep a internal DBCP pool whereas it fails if i try to reuse DBCPService which is part of nifi-nar-bundles/&lt;A href="https://github.com/apache/nifi/tree/44a3ac9eff6d0e4bda193d9169989915dd716d51/nifi-nar-bundles/nifi-standard-services"&gt;nifi-standard-services&lt;/A&gt;. If i keep dependency in my processor as provided then processor is unable to resolve service at runtime. if i dont keep dependency as provided then service is bundled with my processor and fails to start.&lt;/P&gt;&lt;P&gt;Same is the case if i try using JdbcCommon class which is part of  nifi-standard-processors utils.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 13:32:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-one-of-nifi-standard-services-like-DBCPService-in/m-p/179077#M73032</guid>
      <dc:creator>vinaysharmahk</dc:creator>
      <dc:date>2018-01-03T13:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use one of nifi-standard-services like DBCPService in custom processor?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-one-of-nifi-standard-services-like-DBCPService-in/m-p/179078#M73033</link>
      <description>&lt;P&gt;In order to keep the dependency as provided and use DBCPService in your processor(s), you can set the parent NAR for your nifi-custom-nar module to "nifi-standard-services-api-nar", by adding the following as a dependency to your nifi-custom-nar's pom.xml:&lt;/P&gt;&lt;PRE&gt;&amp;lt;dependency&amp;gt;
  &amp;lt;groupId&amp;gt;org.apache.nifi&amp;lt;/groupId&amp;gt;
  &amp;lt;artifactId&amp;gt;nifi-standard-services-api-nar&amp;lt;/artifactId&amp;gt;
  &amp;lt;type&amp;gt;nar&amp;lt;/type&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/PRE&gt;&lt;P&gt;Using JbdcCommon is a different issue, as it is not part of an API but rather the nifi-standard-processors JAR. This &lt;A target="_blank" href="http://mail-archives.apache.org/mod_mbox/nifi-dev/201712.mbox/%3CCALo_M1-t4OGM3f_7XX%3DCyUeMV2Zo4-%3D_9Uz5B%2BChp0%3DuYcPrvw%40mail.gmail.com%3E"&gt;NiFi dev mailing list thread&lt;/A&gt; explains some workarounds, such as using nifi-standard-nar as your NAR parent, or copying JdbcCommon to your project (the latter was done for HiveJbdcCommon for that reason plus custom changes specific to Hive).&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 00:11:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-one-of-nifi-standard-services-like-DBCPService-in/m-p/179078#M73033</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2018-01-04T00:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use one of nifi-standard-services like DBCPService in custom processor?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-one-of-nifi-standard-services-like-DBCPService-in/m-p/179079#M73034</link>
      <description>&lt;P&gt;Thanks. it worked. i added services nar as dependency in my processors NAR and for JdbcCommon i copied it to my Processor. &lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 03:51:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-one-of-nifi-standard-services-like-DBCPService-in/m-p/179079#M73034</guid>
      <dc:creator>vinaysharmahk</dc:creator>
      <dc:date>2018-01-04T03:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use one of nifi-standard-services like DBCPService in custom processor?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-one-of-nifi-standard-services-like-DBCPService-in/m-p/179080#M73035</link>
      <description>&lt;P&gt;i also tried to add standard-processor nar as dependency but build failed. looks like only one NAR as dependency is allowed. now i understand what you meant by adding parent jar by defining it's NAR as dependency in custom NAR.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 04:01:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-one-of-nifi-standard-services-like-DBCPService-in/m-p/179080#M73035</guid>
      <dc:creator>vinaysharmahk</dc:creator>
      <dc:date>2018-01-04T04:01:54Z</dc:date>
    </item>
  </channel>
</rss>

