# Thift Java API and Maven

**URL:** <https://discuss.elastic.co/t/thift-java-api-and-maven/5112>\
**Category:** Elasticsearch\
**Created:** [August 10, 2011, 1:41pm UTC](https://discuss.elastic.co/t/thift-java-api-and-maven/5112 "2011-08-10T13:41:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ed\_Brown\_VSTI](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@Ed\_Brown\_VSTI](https://discuss.elastic.co/u/Ed_Brown_VSTI)\
**Post date:** [August 10, 2011, 1:41pm UTC](https://discuss.elastic.co/t/thift-java-api-and-maven/5112/1 "2011-08-10T13:41:52Z")

</div>

Hello.  
I'm experimenting with ElasticSearch and want to experiment with the  
Java API and the Thift connection.

I've installed the Thrift plugin and when I start ElasticSearch, I see  
that it starts the Thrift transport. When I included the Thrift  
dependency in the Maven POM, Maven complains with: "Missing artifact  
org.elasticsearch:es-libthrift:jar:0.6.1:compile"

The Maven dependency used follows:

 org.elasticsearch elasticsearch-transport-thrift 0.17.1 jar

Your help is appreciated.  
Thanks.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [August 10, 2011, 2:03pm UTC](https://discuss.elastic.co/t/thift-java-api-and-maven/5112/2 "2011-08-10T14:03:27Z")

</div>

What are you trying to do? If oyu want to connect to elasticsearch using hte  
Java API, you don't need thrift, you can connect using the "native"  
connection by constructing a client. If you want to use thrift, you need to  
build your own thrift bindings and use thrift lib yourself. Note, the thrift  
API is a simple wrapper around the REST API, its similar in nature to  
connecting using HTTP.

On Wed, Aug 10, 2011 at 4:41 PM, Ed Brown VSTI [edbrownvsti@gmail.com](mailto:edbrownvsti@gmail.com)wrote:

> Hello.  
> I'm experimenting with Elasticsearch and want to experiment with the  
> Java API and the Thift connection.
> 
> I've installed the Thrift plugin and when I start Elasticsearch, I see  
> that it starts the Thrift transport. When I included the Thrift  
> dependency in the Maven POM, Maven complains with: "Missing artifact  
> org.elasticsearch:es-libthrift:jar:0.6.1:compile"
> 
> The Maven dependency used follows:
> 
> org.elasticsearch elasticsearch-transport-thrift 0.17.1 jar
> 
> Your help is appreciated.  
> Thanks.

---

<div class="post-metadata">

**Author:** ![Ed\_Brown\_VSTI](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@Ed\_Brown\_VSTI](https://discuss.elastic.co/u/Ed_Brown_VSTI)\
**Post date:** [August 10, 2011, 5:56pm UTC](https://discuss.elastic.co/t/thift-java-api-and-maven/5112/3 "2011-08-10T17:56:54Z")

</div>

I'm trying to determine the most performant method of doing indexing  
and thought I understood using the Thrift transport was faster.

On Aug 10, 10:03 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> What are you trying to do? If oyu want to connect to elasticsearch using hte  
> Java API, you don't need thrift, you can connect using the "native"  
> connection by constructing a client. If you want to use thrift, you need to  
> build your own thrift bindings and use thrift lib yourself. Note, the thrift  
> API is a simple wrapper around the REST API, its similar in nature to  
> connecting using HTTP.
> 
> On Wed, Aug 10, 2011 at 4:41 PM, Ed Brown VSTI [edbrownv...@gmail.com](mailto:edbrownv...@gmail.com)wrote:
> 
> > Hello.  
> > I'm experimenting with Elasticsearch and want to experiment with the  
> > Java API and the Thift connection.
> 
> > I've installed the Thrift plugin and when I start Elasticsearch, I see  
> > that it starts the Thrift transport. When I included the Thrift  
> > dependency in the Maven POM, Maven complains with: "Missing artifact  
> > org.elasticsearch:es-libthrift:jar:0.6.1:compile"
> 
> > The Maven dependency used follows:
> 
> > org.elasticsearch elasticsearch-transport-thrift 0.17.1 jar
> 
> > Your help is appreciated.  
> > Thanks.- Hide quoted text -
> 
> - Show quoted text -

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [August 10, 2011, 6:16pm UTC](https://discuss.elastic.co/t/thift-java-api-and-maven/5112/4 "2011-08-10T18:16:23Z")

</div>

If you use Java, then the "pure" Java API is the fastest. HTTP as a  
transport is actually not that slow, its just that some clients perform  
badly with it.

On Wed, Aug 10, 2011 at 8:56 PM, Ed Brown VSTI [edbrownvsti@gmail.com](mailto:edbrownvsti@gmail.com)wrote:

> I'm trying to determine the most performant method of doing indexing  
> and thought I understood using the Thrift transport was faster.
> 
> On Aug 10, 10:03 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> 
> > What are you trying to do? If oyu want to connect to elasticsearch using  
> > hte  
> > Java API, you don't need thrift, you can connect using the "native"  
> > connection by constructing a client. If you want to use thrift, you need  
> > to  
> > build your own thrift bindings and use thrift lib yourself. Note, the  
> > thrift  
> > API is a simple wrapper around the REST API, its similar in nature to  
> > connecting using HTTP.
> > 
> > On Wed, Aug 10, 2011 at 4:41 PM, Ed Brown VSTI \<[edbrownv...@gmail.com](mailto:edbrownv...@gmail.com)  
> > wrote:
> > 
> > > Hello.  
> > > I'm experimenting with Elasticsearch and want to experiment with the  
> > > Java API and the Thift connection.
> > 
> > > I've installed the Thrift plugin and when I start Elasticsearch, I see  
> > > that it starts the Thrift transport. When I included the Thrift  
> > > dependency in the Maven POM, Maven complains with: "Missing artifact  
> > > org.elasticsearch:es-libthrift:jar:0.6.1:compile"
> > 
> > > The Maven dependency used follows:
> > 
> > > org.elasticsearch elasticsearch-transport-thrift 0.17.1 jar
> > 
> > > Your help is appreciated.  
> > > Thanks.- Hide quoted text -
> > 
> > - Show quoted text -

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [August 10, 2011, 6:16pm UTC](https://discuss.elastic.co/t/thift-java-api-and-maven/5112/5 "2011-08-10T18:16:41Z")

</div>

One more thing, the Java API uses an internal communication transport, not  
HTTP.

On Wed, Aug 10, 2011 at 9:16 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> If you use Java, then the "pure" Java API is the fastest. HTTP as a  
> transport is actually not that slow, its just that some clients perform  
> badly with it.
> 
> On Wed, Aug 10, 2011 at 8:56 PM, Ed Brown VSTI [edbrownvsti@gmail.com](mailto:edbrownvsti@gmail.com)wrote:
> 
> > I'm trying to determine the most performant method of doing indexing  
> > and thought I understood using the Thrift transport was faster.
> > 
> > On Aug 10, 10:03 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > 
> > > What are you trying to do? If oyu want to connect to elasticsearch using  
> > > hte  
> > > Java API, you don't need thrift, you can connect using the "native"  
> > > connection by constructing a client. If you want to use thrift, you need  
> > > to  
> > > build your own thrift bindings and use thrift lib yourself. Note, the  
> > > thrift  
> > > API is a simple wrapper around the REST API, its similar in nature to  
> > > connecting using HTTP.
> > > 
> > > On Wed, Aug 10, 2011 at 4:41 PM, Ed Brown VSTI \<[edbrownv...@gmail.com](mailto:edbrownv...@gmail.com)  
> > > wrote:
> > > 
> > > > Hello.  
> > > > I'm experimenting with Elasticsearch and want to experiment with the  
> > > > Java API and the Thift connection.
> > > 
> > > > I've installed the Thrift plugin and when I start Elasticsearch, I see  
> > > > that it starts the Thrift transport. When I included the Thrift  
> > > > dependency in the Maven POM, Maven complains with: "Missing artifact  
> > > > org.elasticsearch:es-libthrift:jar:0.6.1:compile"
> > > 
> > > > The Maven dependency used follows:
> > > 
> > > > org.elasticsearch elasticsearch-transport-thrift 0.17.1 jar
> > > 
> > > > Your help is appreciated.  
> > > > Thanks.- Hide quoted text -
> > > 
> > > - Show quoted text -

---

<div class="post-metadata">

**Author:** ![Ed\_Brown\_VSTI](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@Ed\_Brown\_VSTI](https://discuss.elastic.co/u/Ed_Brown_VSTI)\
**Post date:** [August 10, 2011, 6:51pm UTC](https://discuss.elastic.co/t/thift-java-api-and-maven/5112/6 "2011-08-10T18:51:53Z")

</div>

Thank you very much for your responses.

From what I can tell right now, this is a good product.

On Aug 10, 2:16 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> One more thing, the Java API uses an internal communication transport, not  
> HTTP.
> 
> On Wed, Aug 10, 2011 at 9:16 PM, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> 
> > If you use Java, then the "pure" Java API is the fastest. HTTP as a  
> > transport is actually not that slow, its just that some clients perform  
> > badly with it.
> 
> > On Wed, Aug 10, 2011 at 8:56 PM, Ed Brown VSTI [edbrownv...@gmail.com](mailto:edbrownv...@gmail.com)wrote:
> 
> > > I'm trying to determine the most performant method of doing indexing  
> > > and thought I understood using the Thrift transport was faster.
> 
> > > On Aug 10, 10:03 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > > 
> > > > What are you trying to do? If oyu want to connect to elasticsearch using  
> > > > hte  
> > > > Java API, you don't need thrift, you can connect using the "native"  
> > > > connection by constructing a client. If you want to use thrift, you need  
> > > > to  
> > > > build your own thrift bindings and use thrift lib yourself. Note, the  
> > > > thrift  
> > > > API is a simple wrapper around the REST API, its similar in nature to  
> > > > connecting using HTTP.
> 
> > > > On Wed, Aug 10, 2011 at 4:41 PM, Ed Brown VSTI \<[edbrownv...@gmail.com](mailto:edbrownv...@gmail.com)  
> > > > wrote:
> 
> > > > > Hello.  
> > > > > I'm experimenting with Elasticsearch and want to experiment with the  
> > > > > Java API and the Thift connection.
> 
> > > > > I've installed the Thrift plugin and when I start Elasticsearch, I see  
> > > > > that it starts the Thrift transport. When I included the Thrift  
> > > > > dependency in the Maven POM, Maven complains with: "Missing artifact  
> > > > > org.elasticsearch:es-libthrift:jar:0.6.1:compile"
> 
> > > > > The Maven dependency used follows:
> 
> > > > > org.elasticsearch elasticsearch-transport-thrift 0.17.1 jar
> 
> > > > > Your help is appreciated.  
> > > > > Thanks.- Hide quoted text -
> 
> > > > - Show quoted text -- Hide quoted text -
> 
> - Show quoted text -

---

<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:** [July 6, 2017, 3:57am UTC](https://discuss.elastic.co/t/thift-java-api-and-maven/5112/7 "2017-07-06T03:57:34Z")

</div>


