[
https://issues.apache.org/jira/browse/NIFI-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15218209#comment-15218209
]
ASF GitHub Bot commented on NIFI-1697:
--------------------------------------
GitHub user bbende opened a pull request:
https://github.com/apache/nifi/pull/312
NIFI-1697 Ensuring FlowController appropriately wraps code with NarClosable
From debugging this issue it was noticed that the problem only occurred
while a PutHDFS processor was enabled (running/stopepd), but if it was disabled
the problem went away. This led to realizing that when the processor is running
or stopped, validation is being called and was not being wrapped with
NarCloseable to ensure the validation uses the same classpath as the component
uses when executing.
This PR ensures that the FlowController wraps validation with NarCloseable,
and also when calling OnPrimaryNodeStateChanged which needed to be wrapped as
well.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bbende/nifi NIFI-1697
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/312.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #312
----
commit 605c6c88b53076034560d5faf3399c7e2b3e98fd
Author: Bryan Bende <[email protected]>
Date: 2016-03-30T15:46:52Z
NIFI-1697 Ensuring FlowController appropriately wraps code with NarCloseable
----
> AmbariReportingTask not working when using PutHDFS
> --------------------------------------------------
>
> Key: NIFI-1697
> URL: https://issues.apache.org/jira/browse/NIFI-1697
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Bryan Bende
> Assignee: Bryan Bende
> Priority: Critical
>
> Create a simple flow with a PutHDFS processor running, then add an
> AmbariReportingTask and start it. Produces an error like the following:
> {code}
> Error running task AmbariReportingTask due to java.lang.LinkageError:
> ClassCastException: attempting to
> castjar:file:/opt/nifi/nifi-0.6.0/./work/nar/extensions/nifi-hadoop-libraries-nar-0.6.0.nar-unpacked/META-INF/bundled-dependencies/jsr311-api-1.1.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class
> to
> jar:file:/opt/nifi/nifi-0.6.0/./work/nar/extensions/nifi-ambari-nar-0.6.0.nar-unpacked/META-INF/bundled-dependencies/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)