Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

Custom Processor extending from PutSFTP results in NoClassDefFoundError

avatar
New Contributor

Hello everyone,

I try to create a custom PutSFTP processor to add different failure Relationships to further improve my error handling and go different routes if an error occurs.

Im using NiFi-2.3.0 and a Java 21 shaded JAR for my custom processors

my issue is that i get java.lang.NoClassDefFoundError: org/apache/nifi/processors/standard/PutSFTP message when loading my custom processor in Nifi. 

I already tried:

  • adding the standard processors to my shaded jar but that only made things worse and some standard processors stopped working
  • adding nifi-file-transfer dependency to shaded jar but then the default PutSFTP stopped working
  • use extends PutFileTransfer<SFTPTransfer> instead of PutSFTP but again NoClassDefFound only this time for PutFileTransfer

Is there a way to add the missing Class without breaking anything else?

I really want to avoid rebuilding the whole PutSFTP to a custom PutSFTP when i only need to change small parts of it.

 

2 REPLIES 2

avatar
Community Manager

@LSchneider,  Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts  @MattWho @Shelton, and @SAMSAL, who may be able to assist you further.

Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.



Regards,

Vidya Sargur,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar
New Contributor

Hello everyone,

Unfortunatly im still looking for a solution to this issue. I would appreciate any information that might solve this issue

Thank you in advance for your support.

Best regards