whiver / nifi-protobuf-processor

An Apache NiFi processor to encode and decode data using Google Protocol Buffer schemas.
MIT License
36 stars 20 forks source link

Not showing up as processor #1

Closed BrainMonkey closed 6 years ago

BrainMonkey commented 6 years ago

Wasn't sure of best way to contact you. I build the nar and move to the lib directory of nifi. Using . 1.4.0 but it does not show up.

whiver commented 6 years ago

Hello, Yes I know in fact the plugin is still under heavy development and is still not really mature. I don't know when you tried to build the plugin, though now it should build and work on master. I should release a first preview in the next days btw. Tell me if it still does not work.

whiver commented 6 years ago

I just tried to install the plugin in a fresh NiFi and it seems to work:

image

BrainMonkey commented 6 years ago

Tried with current build. It says its unpacking correctly but still not showing up in processor list.

whiver commented 6 years ago

Just to be sure, I give you my working version of the compiled nar, tell me if it works for you.

nifi-protobuf-processor-0.1.0-SNAPSHOT.zip

BrainMonkey commented 6 years ago

I repulled and rebuilt same, same error I tried on two different instances. The .nar you attached worked fine though

whiver commented 6 years ago

Glad to hear it works now. Did you build using the mvn nifi-nar:nar command?

BrainMonkey commented 6 years ago

Yes I did, directly from the project and it built a new nar named the same as the one you attached

whiver commented 6 years ago

Did you get any error when you built the nar?

BrainMonkey commented 6 years ago

Was all successful . One thing looking at the nifi-app.logs.

Your had this additional line

fr.whiver.nifi:nifi-protobuf-processor:0.1.0-SNAPSHOT || ./work/nar/extensions/nifi-protobuf-processor-0.1.0-SNAPSHOT.nar-unpacked

after unpacking. Mine did not.

whiver commented 6 years ago

Okay my mistake, I just tried to clone the repo and rebuild the project and of course, before packaging the processors into a .nar file, you have to build it! So it's quite logical that yours does not work since there is nothing but third-party libraries inside.

To build and package everything you should type:

mvn compile
mvn nifi-nar:nar

or simply mvn package, though it will also build the Docker image. Sorry for the mistake!