[
https://issues.apache.org/jira/browse/NIFI-4260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16682966#comment-16682966
]
ASF GitHub Bot commented on NIFI-4260:
--------------------------------------
GitHub user AaronLeon opened a pull request:
https://github.com/apache/nifi/pull/3166
NIFI-4260 Add avro-ipc dependency to hadoop-libraries to support Flum…
…e avro source
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
### For all changes:
- [x ] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
- [x ] Does your PR title start with NIFI-XXXX where XXXX is the JIRA
number you are trying to resolve? Pay particular attention to the hyphen "-"
character.
- [ x] Has your PR been rebased against the latest commit within the target
branch (typically master)?
- [ x] Is your initial contribution a single, squashed commit?
### For code changes:
- [x ] Have you ensured that the full suite of tests is executed via mvn
-Pcontrib-check clean install at the root nifi folder?
- [ x] Have you written or updated unit tests to verify your changes?
- [x ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ x] If applicable, have you updated the LICENSE file, including the main
LICENSE file under nifi-assembly?
- [ x] If applicable, have you updated the NOTICE file, including the main
NOTICE file found under nifi-assembly?
- [x ] If adding new Properties, have you added .displayName in addition to
.name (programmatic access) for each of the new properties?
### For documentation related changes:
- [ x] Have you ensured that format looks appropriate for the output in
which it is rendered?
### Note:
Please ensure that once the PR is submitted, you check travis-ci for build
issues and submit an update to your PR as soon as possible.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/AaronLeon/nifi nifi-4260
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/3166.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 #3166
----
commit c513089b3cb6aaa6332f15e554307327c782fd69
Author: Aaron Leon <aaronleon@...>
Date: 2018-11-11T01:50:06Z
NIFI-4260 Add avro-ipc dependency to hadoop-libraries to support Flume avro
source
----
> ExecuteFlumeSink not working with Sink Type "avro".
> ---------------------------------------------------
>
> Key: NIFI-4260
> URL: https://issues.apache.org/jira/browse/NIFI-4260
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.2.0, 1.3.0
> Reporter: Sebastian Schlitte
> Priority: Major
>
> After upgrading NiFi from 1.1.2 to 1.2.0, ExecuteFlumeSink with sink type
> "avro" stops transmitting data and throws the error quoted below. The problem
> persists after upgrading to 1.3.0.
> Replacing avro-ipc-1.7.4.jar with avro-ipc-1.8.1.jar in
> nifi-flume-nar-1.3.0.nar solves the issue.
> {{2017-08-02 10:28:51,142 ERROR [Timer-Driven Process Thread-6]
> o.a.n.processors.flume.ExecuteFlumeSink
> ExecuteFlumeSink[id=98da368f-015d-1000-ffff-ffff9
> 6768472] ExecuteFlumeSink[id=98da368f-015d-1000-ffff-ffff96768472] failed to
> process due to org.apache.nifi.processor.exception.ProcessException: Flume
> event delivery failed; rolling back session: {}
> org.apache.nifi.processor.exception.ProcessException: Flume event delivery
> failed
> at
> org.apache.nifi.processors.flume.ExecuteFlumeSink.onTrigger(ExecuteFlumeSink.java:145)
> at
> org.apache.nifi.processors.flume.AbstractFlumeProcessor.onTrigger(AbstractFlumeProcessor.java:148)
> at
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1118)
> at
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:144)
> at
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
> at
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.flume.EventDeliveryException: Failed to send events
> at
> org.apache.flume.sink.AbstractRpcSink.process(AbstractRpcSink.java:392)
> at
> org.apache.nifi.processors.flume.ExecuteFlumeSink.onTrigger(ExecuteFlumeSink.java:143)
> ... 12 common frames omitted
> Caused by: org.apache.flume.EventDeliveryException: NettyAvroRpcClient {
> host: target.linux.dummy, port: 14100 }: Failed to send batch
> at
> org.apache.flume.api.NettyAvroRpcClient.appendBatch(NettyAvroRpcClient.java:315)
> at
> org.apache.flume.sink.AbstractRpcSink.process(AbstractRpcSink.java:376)
> ... 13 common frames omitted
> Caused by: org.apache.flume.EventDeliveryException: NettyAvroRpcClient {
> host: target.linux.dummy, port: 14100 }: RPC request exception
> at
> org.apache.flume.api.NettyAvroRpcClient.appendBatch(NettyAvroRpcClient.java:365)
> at
> org.apache.flume.api.NettyAvroRpcClient.appendBatch(NettyAvroRpcClient.java:303)
> ... 14 common frames omitted
> Caused by: java.util.concurrent.ExecutionException:
> java.lang.AbstractMethodError:
> org.apache.avro.specific.SpecificFixed.getSchema()Lorg/apache/avro/S
> chema;
> at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> at java.util.concurrent.FutureTask.get(FutureTask.java:206)
> at
> org.apache.flume.api.NettyAvroRpcClient.appendBatch(NettyAvroRpcClient.java:357)
> ... 15 common frames omitted
> Caused by: java.lang.AbstractMethodError:
> org.apache.avro.specific.SpecificFixed.getSchema()Lorg/apache/avro/Schema;
> at
> org.apache.avro.specific.SpecificFixed.<init>(SpecificFixed.java:36)
> at org.apache.avro.ipc.MD5.<init>(MD5.java:16)
> at org.apache.avro.ipc.Requestor.writeHandshake(Requestor.java:200)
> at org.apache.avro.ipc.Requestor.access$300(Requestor.java:52)
> at org.apache.avro.ipc.Requestor$Request.getBytes(Requestor.java:478)
> at org.apache.avro.ipc.Requestor.request(Requestor.java:147)
> at org.apache.avro.ipc.Requestor.request(Requestor.java:129)
> at
> org.apache.avro.ipc.specific.SpecificRequestor.invoke(SpecificRequestor.java:84)
> at com.sun.proxy.$Proxy124.appendBatch(Unknown Source)
> at
> org.apache.flume.api.NettyAvroRpcClient$2.call(NettyAvroRpcClient.java:348)
> at
> org.apache.flume.api.NettyAvroRpcClient$2.call(NettyAvroRpcClient.java:344)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ... 3 common frames omitted}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)