Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EC4CF200C29 for ; Tue, 28 Feb 2017 11:25:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EAE08160B7C; Tue, 28 Feb 2017 10:25:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 418EA160B6A for ; Tue, 28 Feb 2017 11:25:04 +0100 (CET) Received: (qmail 29701 invoked by uid 500); 28 Feb 2017 10:25:03 -0000 Mailing-List: contact dev-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list dev@nifi.apache.org Received: (qmail 29689 invoked by uid 99); 28 Feb 2017 10:25:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2017 10:25:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id B463EC094B for ; Tue, 28 Feb 2017 10:25:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 9rDH1_xD3Y-W for ; Tue, 28 Feb 2017 10:25:00 +0000 (UTC) Received: from mail-ua0-f180.google.com (mail-ua0-f180.google.com [209.85.217.180]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 0E4905F1EE for ; Tue, 28 Feb 2017 10:25:00 +0000 (UTC) Received: by mail-ua0-f180.google.com with SMTP id 72so8279215uaf.3 for ; Tue, 28 Feb 2017 02:25:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=EjqnHcKxOK6veHuVMZ0daGddcDq24KH2vUNfLmMYhow=; b=NgyfK5pSQGPnX4+4W14Kk6SqvrWjKq8jh5HJAzAjZ+wzBiVTJiO+HhWeXr5FtABQ/S FKIOBG9wEeTvVrUx4gn0+U+8/6he0DYU5O0LMFyu5w0K7bdJO1C782NFm9PqNt6dXpvB 6TNRXDpyuJX0FYxf/VSJbIittpYX3in9fD1n1N0UF5uU0ZlzQErrJQd3wKZnJrVRA12W WrMn3W8Tm+c1lnXxu9CEF+SbGdb1ih6/CSD+2oECV9fKnXL/XAzTqVoj6R+Jb87IChD9 qSUh+VkYz45XcaqAcPrDqTHCBKfO9DwUnuhqJHnzekf+8FHucSXgx8QVsYWBFik5On5O I3Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=EjqnHcKxOK6veHuVMZ0daGddcDq24KH2vUNfLmMYhow=; b=VInatAMEtX3/gC4DvQWneiAFUeMiN2iOXQD5G2/vpKkfvZ67saetYcgq4Yh/NCurrL 12u5e1h0NZyVYcp9obf+JLFTn2CPPh5ZnHrpvgo3o2wyEth4wC92eNQCrPldx+GvkQ91 8guXdyjbJa1KOiN0AJgvmrQ16I5a5xaIj9wSbKOufTJ1B+kfON4FNjdJ6qgh3BPpRgd5 urkmjsAFHLoZgAf3xaETETXtfb9xP5TzEKgXTduaPWoX3tczrkBqJfgR7urK1D44sYdB 4GKmnRdGinM56wdT/CO+OvA54Uvbg23abj41d8gFBHCMaknVEGu20WD/0yc+8ZbIpjrZ WTsQ== X-Gm-Message-State: AMke39lVN5j5Lfa8kni7Rr1tLH6QrobKIOdBjnDN10z8tegsSVEtfwQm/ouBDh5wuKYyZuWwzcaIAwCe9fhcpw== X-Received: by 10.31.86.196 with SMTP id k187mr638374vkb.4.1488277492454; Tue, 28 Feb 2017 02:24:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.16.68 with HTTP; Tue, 28 Feb 2017 02:24:51 -0800 (PST) In-Reply-To: References: From: Andrew Psaltis Date: Tue, 28 Feb 2017 15:54:51 +0530 Message-ID: Subject: Re: Need help with Custom Processor To: dev@nifi.apache.org Content-Type: multipart/alternative; boundary=001a114e569a43de540549949bf7 archived-at: Tue, 28 Feb 2017 10:25:05 -0000 --001a114e569a43de540549949bf7 Content-Type: text/plain; charset=UTF-8 Hi Pushkar, By chance is the "A" dependency marked with a scope in "B"'s pom, such as test, compile, or provided? If so then you would want to include "A" in your pom as a dependency. As long as "A" is not marked with a scope that excludes it from "B"'s final packaging or it is not excluded by one of the maven packaging plugins then it should pick up the dependency and include it in your NAR when you package your processor. If "A" is indeed marked with a scope that prevents it from being included in the final NAR, you would either want to modify B's pom or explicitly add it as a dependency to your pom file. Thanks, Andrew On Tue, Feb 28, 2017 at 2:56 PM, Pushkara R wrote: > Hi Andrew, > > The particular class that isn't being found is part of an artifact (let's > call it A) which is a dependency of another artifact B that my processors > depend on. A is in B's pom file and B is in my processors' pom file. Yet I > am getting the class not found issue. > > I am currently working by adding A's jar in the lib folder as I am only > doing a few benchmarks on NiFi. But please do let me know how I could fix > this problem. > > Regards > Pushkar > > On Tue, Feb 28, 2017 at 12:40 PM, Andrew Psaltis > > wrote: > > > Hi Pushkar, > > The preferred approach is to add the external dependency to the pom file > > for your processor. After doing that when you build your nar bundle, the > > resulting nar file will contain all of the 3rd party dependencies > required > > by your processor. Can you double check that you are indeed including it > as > > a maven dependency? > > > > Thanks, > > Andrew > > > > > > On Tue, Feb 28, 2017 at 12:31 PM, Pushkara R > > wrote: > > > > > Hi, > > > > > > I'm writing a new processor for NiFi which has a dependency on an > > external > > > library. When I build the NAR and add it to the lib folder and restart > > > NiFi, the external library classes that my processor depends on fail > > > getting loaded with a "ClassNotFound" exception. > > > > > > How do I go about fixing this issue? Do I add the jar for the external > > > library separately in the lib folder of NiFi? Or is there something > else > > to > > > it? > > > > > > Thanks > > > Pushkar > > > > > > > > > > > -- > > Thanks, > > Andrew > > > > Subscribe to my book: Streaming Data > > > > twiiter: @itmdata > > > -- Thanks, Andrew Subscribe to my book: Streaming Data twiiter: @itmdata --001a114e569a43de540549949bf7--