GithubHelp home page GithubHelp logo

whiver / nifi-protobuf-processor Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 20.0 108 KB

An Apache NiFi processor to encode and decode data using Google Protocol Buffer schemas.

License: MIT License

Java 100.00%
apache-nifi nifi nifi-processors protobuf-schema protocol-buffers

nifi-protobuf-processor's People

Contributors

whiver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nifi-protobuf-processor's Issues

ERROR [Timer-Driven Process Thread-1] c.g.w.nifi.processor.ProtobufDecoder ProtobufDecoder[id=299c2a4f-016a-1000-ffff-ffffab7ba612] No schema path given, please fill in the protobuf.schemaPath property, either at processor or flowfile level

I am getting the below error:
ERROR [Timer-Driven Process Thread-1] c.g.w.nifi.processor.ProtobufDecoder ProtobufDecoder[id=299c2a4f-016a-1000-ffff-ffffab7ba612] No schema path given, please fill in the protobuf.schemaPath property, either at processor or flowfile level

Please check the screen shot. I am using apache nifi 1.9.1
nifi-proto

protobuf-decoder

I am using the .proto mode. During the decoding process, my hard disk will generate a 5M protocjarxxx file. I don't want it to generate this file. What should I do?

Unable to find the message in protobuf.messageType, Unable to decode data .

I am trying out a simple flow in Nifi which converts a JSON data into Protobuf type.

Here is the flow which I tried:

Generate flow file(contains json message) --> Protobuf Encoder --> Putfile

These are the configurations of ProtobufEncoder:
image

As shown in the above picture, I am passing a compiled schema file in the schema path property and I set the compile schema property to false.
But the flow files are routing to error queue saying,

Unable to find the message in protobuf.messageType, Unable to decode data.

Please suggest me the changes need to be done at configurations. Appreciate your help!!

Unable to read schema file: Unsupported platform: protoc-3.4.0-linux-x86_64.exe

Hi,
My protobuf processor works fine for 6 month and brutally after i purged tmp folder, i face an issue:

2020-01-29 11:00:01,361 ERROR [Timer-Driven Process Thread-10] c.g.w.nifi.processor.ProtobufDecoder ProtobufDecoder[id=a2ae63e8-1934-3e98-bb0c-55cbe70dfe24] Unable to read schema file: Unsupported platform: protoc-3.4.0-linux-x86_64.exe: com.github.whiver.nifi.exception.SchemaLoadingException: Unable to read schema file: Unsupported platform: protoc-3.4.0-linux-x86_64.exe
com.github.whiver.nifi.exception.SchemaLoadingException: Unable to read schema file: Unsupported platform: protoc-3.4.0-linux-x86_64.exe
at com.github.whiver.nifi.parser.SchemaParser.parseSchema(SchemaParser.java:73)
at com.github.whiver.nifi.service.ProtobufService.decodeProtobuf(ProtobufService.java:86)
at com.github.whiver.nifi.processor.ProtobufDecoder.lambda$0(ProtobufDecoder.java:80)
at org.apache.nifi.controller.repository.StandardProcessSession.write(StandardProcessSession.java:2887)
at com.github.whiver.nifi.processor.ProtobufDecoder.onTrigger(ProtobufDecoder.java:75)
at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1162)
at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:209)
at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
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:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.FileNotFoundException: Unsupported platform: protoc-3.4.0-linux-x86_64.exe
at com.github.os72.protocjar.Protoc.extractProtoc(Protoc.java:221)
at com.github.os72.protocjar.Protoc.extractProtoc(Protoc.java:182)
at com.github.os72.protocjar.Protoc.runProtoc(Protoc.java:71)
at com.github.whiver.nifi.parser.SchemaParser.compileProto(SchemaParser.java:46)
at com.github.whiver.nifi.parser.SchemaParser.parseSchema(SchemaParser.java:58)
... 16 common frames omitted

So as understood, a protocjar.webcache folder in /tmp should be not removed, isn't it ?

Not showing up as processor

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.