Hi uyilmaz,

Have you already worked with the embedded agent (
https://flume.apache.org/FlumeDeveloperGuide.html#embedded-agent ) ?
That should be a good start for `start()` and similar abilities.
Also, you should be able to connect a remote debugger (
https://stackoverflow.com/questions/975271/remote-debugging-a-java-application
) to your standalone process.

Please let me know if you have any questions.


Donat

On Fri, 18 Sep 2020 at 14:49, uyilmaz <uyil...@vivaldi.net.invalid> wrote:
>
> Hi all,
>
> I have a question about debugging a custom solr sink we wrote.
>
> We can write a custom sink implementation, package it to a JAR, put it inside 
> flume/lib folder, and refer to it in agent configuration to use with Flume.
>
> But how can we just run Flume from the IDE and debug the custom sink in real 
> time? We have a hard-to-trace bug in our custom sink implementation and doing 
> trial and error, changing sink code, packaging and re-running it inside flume 
> is too cumbersome.
>
> It's possible to just call sink.start(), sink.configure() and sink.process() 
> from the java code to test the custom sink, but in order to trace this bug, 
> it should be inside flume context because I won't be calling the method as 
> exactly as flume does or handle exceptions as exactly as flume does.
>
> Regards
>
> --
> uyilmaz <uyil...@vivaldi.net>

Reply via email to