[BUG] You can use BulkProcessor with high-level client in 5.6 version

Hi team,

Thanks in advance

I try to create a BulkProcessor like

with the high-level client in the version 5.6 but I get this compilation error at this point:
RestHighLevelClient rHLClient
BulkProcessor bulkProcessor = BulkProcessor.builder(rHLClient::bulkAsync, listener,threadPool).build();

"Client is not a functional interface"

If there is a better way to use that, please advise. I've been blocked on it.



Not sure.

It looks correct to me.
May be share a sample project?

At least on 6.2, I don't have this issue.

Strange that there is a mention of Client which you don't have in your code.

Thanks David,

I have to use 5.6 version. Do you know what kind of problem can produce this error?
In my search I found this:

Can you share an example with the 5.6 version?

Thanks in advance,


I think this is a BUG
Please, any help with this will be welcome


As I said:

Hi David, thanks

I'm using internal repositories and specific gradle configuration. I saw a code you shared but it was under 6.x version.

thanks in advance


I can't help if I can't reproduce the problem I'm afraid.

Thank you David

As I said: It was a bug, but not from elastic for sure



Thank you for your answers and patience


Ha great!

I was confused by:

thanks in advance

And I thought you were waiting for something from my side.

Happy it's "solved" now.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.