The way events are instantiated is not the same between 2.6.x and 2.7.x. The easiest solution is to simplify unit tests to have tests both compatible with 2.6 and 2.7 lines. I can submit a PR for that. The other option would be to upgrade the version of Hadoop libraries used in NiFi. However, Inotify mechanism is not considered production-ready at the moment, so I guess an upgrade of version is not that necessary.
2016-06-20 10:35 GMT+02:00 Andre <andre-li...@fucs.org>: > Pierre, > > Yeah... the wonders of interoperation! :-) > > The classes came straight of of Hadoop 2.7 so compiling nifi with pure ASL > Hadoop 2.7.0 triggers the same issue. > > Cheers > > On Mon, Jun 20, 2016 at 5:51 PM, Pierre Villard < > pierre.villard...@gmail.com > > wrote: > > > Thanks Andre for reporting this! > > I'll try to have a look today but my MapR knowledge is limited... > However, > > since it seems to be a problem in test classes only, it should be > possible > > to find a workaround quite easily. > > > > Pierre > > > > 2016-06-18 17:43 GMT+02:00 Andre <andre-li...@fucs.org>: > > > > > And if I my poor JAVA hasn't failed me again this seems to be the > commit > > > that introduced the upstream change > > > > > > > > > > > > https://github.com/apache/hadoop/commit/6e13fc62e1f284f22fd0089f06ce281198bc7c2a > > > > > > https://issues.apache.org/jira/browse/HDFS-7513 > > > > > > On Sun, Jun 19, 2016 at 1:36 AM, Andre <andre-li...@fucs.org> wrote: > > > > > > > Pierre, > > > > > > > > My build is currently hitting a wall when trying to > > > > compile nifi-hdfs-processors. > > > > > > > > Seems the reason for this is the commit 2ce7857. > > > > > > > > Both > > > > > > > > $ mvn clean install -Dhadoop.version=2.7.0 > > > > > > > > and > > > > > > > > $ mvn clean install -DskipTests -Pmapr > -Dhadoop.version=2.7.0-mapr-1506 > > > > > > > > result in: > > > > > > > > [ERROR] COMPILATION ERROR : > > > > [INFO] ------------------------------------------------------------- > > > > [ERROR] > > > > > > > > > > /home/amiranda/development/nifi/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/test/java/org/apache/nifi/processors/hadoop/inotify/TestGetHDFSEvents.java:[198,38] > > > > error: incompatible types: String cannot be converted to Builder > > > > [ERROR] > > > > > > > > > > /home/amiranda/development/nifi/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/test/java/org/apache/nifi/processors/hadoop/inotify/TestGetHDFSEvents.java:[199,38] > > > > error: incompatible types: String cannot be converted to Builder > > > > [ERROR] > > > > > > > > > > /home/amiranda/development/nifi/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/test/java/org/apache/nifi/processors/hadoop/inotify/TestGetHDFSEvents.java:[200,38] > > > > error: incompatible types: String cannot be converted to Builder > > > > [ERROR] > > > > > > > > > > /home/amiranda/development/nifi/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/test/java/org/apache/nifi/processors/hadoop/inotify/util/EventTestUtils.java:[51,37] > > > > error: incompatible types: String cannot be converted to Builder > > > > [ERROR] > > > > > > > > > > /home/amiranda/development/nifi/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/test/java/org/apache/nifi/processors/hadoop/inotify/util/EventTestUtils.java:[55,15] > > > > error: constructor RenameEvent in class RenameEvent cannot be applied > > to > > > > given types; > > > > [ERROR] required: Builder > > > > found: String,String,long > > > > reason: actual and formal argument lists differ in length > > > > > > > > > > /home/amiranda/development/nifi/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/test/java/org/apache/nifi/processors/hadoop/inotify/util/EventTestUtils.java:[75,15] > > > > error: constructor UnlinkEvent in class UnlinkEvent cannot be applied > > to > > > > given types; > > > > [INFO] 6 errors > > > > > > > > > > > > > > > > > >