# Need an example of BulkProcessor with the 5.6 version of high-level client

**URL:** <https://discuss.elastic.co/t/need-an-example-of-bulkprocessor-with-the-5-6-version-of-high-level-client/123763>\
**Category:** Elasticsearch\
**Created:** [March 13, 2018, 3:22pm UTC](https://discuss.elastic.co/t/need-an-example-of-bulkprocessor-with-the-5-6-version-of-high-level-client/123763 "2018-03-13T15:22:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![juanaramis](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@juanaramis](https://discuss.elastic.co/u/juanaramis)\
**Post date:** [March 13, 2018, 3:22pm UTC](https://discuss.elastic.co/t/need-an-example-of-bulkprocessor-with-the-5-6-version-of-high-level-client/123763/1 "2018-03-13T15:22:51Z")

</div>

Hi guys,

Need an example of BulkProcessor with the 5.6 version of high-level REST client.  
It looks like it has a BUG when calling:

BulkProcessor bulkProcessor = BulkProcessor.builder( **rHLClient::bulkAsync** , listener,threadPool).build();

compilation error:  
"Client is not a functional interface"

Any help will be well appreciated. I have to use 5.6 version

Thank you in advance

J.

---

<div class="post-metadata">

**Author:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [March 16, 2018, 9:20am UTC](https://discuss.elastic.co/t/need-an-example-of-bulkprocessor-with-the-5-6-version-of-high-level-client/123763/2 "2018-03-16T09:20:14Z")

</div>

Hi,  
I don't see anything wrong with your code, our docs snippets are even tested so they must compile otherwise the docs don't get published.

Which version of java are you using?

Cheers  
Luca

---

<div class="post-metadata">

**Author:** ![juanaramis](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@juanaramis](https://discuss.elastic.co/u/juanaramis)\
**Post date:** [March 16, 2018, 8:14pm UTC](https://discuss.elastic.co/t/need-an-example-of-bulkprocessor-with-the-5-6-version-of-high-level-client/123763/3 "2018-03-16T20:14:57Z")

</div>

Thank you Luca,

The problem was associated with to a BUG but this one is not coming from elastic

Here's the link:  
[https://bugs.eclipse.org/bugs/show\_bug.cgi?id=514884](https://bugs.eclipse.org/bugs/show_bug.cgi?id=514884)

J.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 13, 2018, 8:15pm UTC](https://discuss.elastic.co/t/need-an-example-of-bulkprocessor-with-the-5-6-version-of-high-level-client/123763/4 "2018-04-13T20:15:03Z")

</div>

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