# Using Thrift with Pyes

**URL:** <https://discuss.elastic.co/t/using-thrift-with-pyes/7727>\
**Category:** Elasticsearch\
**Created:** [May 16, 2012, 7:49pm UTC](https://discuss.elastic.co/t/using-thrift-with-pyes/7727 "2012-05-16T19:49:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kay\_Sackey](https://avatars.discourse-cdn.com/v4/letter/k/8baadc/32.png) [@Kay\_Sackey](https://discuss.elastic.co/u/Kay_Sackey)\
**Post date:** [May 16, 2012, 7:49pm UTC](https://discuss.elastic.co/t/using-thrift-with-pyes/7727/1 "2012-05-16T19:49:47Z")

</div>

I've installed and used elastic search on my site for the past few  
months.

It's been a dream, connecting through Pyes to do my work, but now that  
we've entered production we're seeing the limits of the HTTP  
connection.

How can we use Thrift with Pyes?

I installed the thrift-transport plugin:

> **[elastic/elasticsearch-transport-thrift](https://github.com/elastic/elasticsearch-transport-thrift)**
>
> elasticsearch-transport-thrift - Thrift Transport for elasticsearch (STOPPED)

  
Then set Pyes to connect on port 9500, but it just returns that no  
server connection can be made.

Any guidance would be really appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![Radu\_Gheorghe1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe1/32/2688_2.png) [@Radu\_Gheorghe1](https://discuss.elastic.co/u/Radu_Gheorghe1)\
**Post date:** [May 17, 2012, 4:16am UTC](https://discuss.elastic.co/t/using-thrift-with-pyes/7727/2 "2012-05-17T04:16:47Z")

</div>

Hi Kay,

You need to install transport-thrift first:

> **[GitHub - elastic/elasticsearch-transport-thrift: Thrift Transport for...](https://github.com/elastic/elasticsearch-transport-thrift)**
>
> Thrift Transport for elasticsearch (STOPPED). Contribute to elastic/elasticsearch-transport-thrift development by creating an account on GitHub.

On 16 mai, 22:49, Kay Sackey [ad...@9cloud.us](mailto:ad...@9cloud.us) wrote:

> I've installed and used Elasticsearch on my site for the past few  
> months.
> 
> It's been a dream, connecting through Pyes to do my work, but now that  
> we've entered production we're seeing the limits of the HTTP  
> connection.
> 
> How can we use Thrift with Pyes?
> 
> I installed the thrift-transport plugin:[GitHub - elastic/elasticsearch-transport-thrift: Thrift Transport for elasticsearch (STOPPED)](https://github.com/elasticsearch/elasticsearch-transport-thrift)  
> Then set Pyes to connect on port 9500, but it just returns that no  
> server connection can be made.
> 
> Any guidance would be really appreciated.
> 
> Thanks.

---

<div class="post-metadata">

**Author:** ![Kay\_Sackey](https://avatars.discourse-cdn.com/v4/letter/k/8baadc/32.png) [@Kay\_Sackey](https://discuss.elastic.co/u/Kay_Sackey)\
**Post date:** [May 18, 2012, 11:07am UTC](https://discuss.elastic.co/t/using-thrift-with-pyes/7727/3 "2012-05-18T11:07:13Z")

</div>

I had done that.

[root@glass elasticsearch]# bin/plugin -install  
elasticsearch/elasticsearch-transport-thrift/1.2.0  
-\> Installing elasticsearch/elasticsearch-transport-thrift/1.2.0...  
Trying  
[https://github.com/downloads/elasticsearch/elasticsearch-transport-thrift/elasticsearch-transport-thrift-1.2.0.zip](https://github.com/downloads/elasticsearch/elasticsearch-transport-thrift/elasticsearch-transport-thrift-1.2.0.zip)...  
Downloading ...........DONE  
Installed transport-thrift

Then started elasticsearch

[root@glass elasticsearch]# sudo  
/usr/local/src/elasticsearch/bin/elasticsearch -Xmx2g -Xms2g

Then I configured elasticsearch.yml with these:

thrift.port: 9500  
thrift.frame: -1

Now starting it up I get an error message:

Exception in thread "pool-10-thread-1" java.lang.NoSuchMethodError:  
org.elasticsearch.rest.RestController.dispatchRequest(Lorg/elasticsearch/rest/RestRequest;Lorg/elasticsearch/rest/RestChannel;)V  
at org.elasticsearch.thrift.ThriftRestImpl.execute(ThriftRestImpl.java:55)  
at org.elasticsearch.thrift.Rest$Processor$execute.getResult(Rest.java:158)  
at org.elasticsearch.thrift.Rest$Processor$execute.getResult(Rest.java:147)  
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)  
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)  
at  
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
at java.lang.Thread.run(Thread.java:636)

Is there some bit of configuration that I'm missing?

On Thursday, May 17, 2012 12:16:47 AM UTC-4, Radu Gheorghe wrote:

> Hi Kay,
> 
> You need to install transport-thrift first:  
> [GitHub - elastic/elasticsearch-transport-thrift: Thrift Transport for elasticsearch (STOPPED)](https://github.com/elasticsearch/elasticsearch-transport-thrift)
> 
> On 16 mai, 22:49, Kay Sackey [ad...@9cloud.us](mailto:ad...@9cloud.us) wrote:
> 
> > I've installed and used Elasticsearch on my site for the past few  
> > months.
> > 
> > It's been a dream, connecting through Pyes to do my work, but now that  
> > we've entered production we're seeing the limits of the HTTP  
> > connection.
> > 
> > How can we use Thrift with Pyes?
> > 
> > I installed the thrift-transport plugin:  
> > [GitHub - elastic/elasticsearch-transport-thrift: Thrift Transport for elasticsearch (STOPPED)](https://github.com/elasticsearch/elasticsearch-transport-thrift)  
> > Then set Pyes to connect on port 9500, but it just returns that no  
> > server connection can be made.
> > 
> > Any guidance would be really appreciated.
> > 
> > Thanks.

---

<div class="post-metadata">

**Author:** ![Radu\_Gheorghe1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe1/32/2688_2.png) [@Radu\_Gheorghe1](https://discuss.elastic.co/u/Radu_Gheorghe1)\
**Post date:** [May 20, 2012, 12:42pm UTC](https://discuss.elastic.co/t/using-thrift-with-pyes/7727/4 "2012-05-20T12:42:13Z")

</div>

I normally just install the plugin and restart elasticsearch. If you  
comment out the configuration options, does the problem still occur?

If so, which version of ES are you using?

If you can start Elasticsearch with the plugin installed and you get  
the same error from pyes, can you see ES listening on 9500 by running  
`netstat -pant` ?

On 18 mai, 14:07, Kay Sackey [ad...@9cloud.us](mailto:ad...@9cloud.us) wrote:

> I had done that.
> 
> [root@glass elasticsearch]# bin/plugin -install  
> elasticsearch/elasticsearch-transport-thrift/1.2.0  
> -\> Installing elasticsearch/elasticsearch-transport-thrift/1.2.0...  
> Tryinghttps://github.com/downloads/elasticsearch/elasticsearch-transport-th......  
> Downloading ...........DONE  
> Installed transport-thrift
> 
> Then started elasticsearch
> 
> [root@glass elasticsearch]# sudo  
> /usr/local/src/elasticsearch/bin/elasticsearch -Xmx2g -Xms2g
> 
> Then I configured elasticsearch.yml with these:
> 
> thrift.port: 9500  
> thrift.frame: -1
> 
> Now starting it up I get an error message:
> 
> Exception in thread "pool-10-thread-1" java.lang.NoSuchMethodError:  
> org.elasticsearch.rest.RestController.dispatchRequest(Lorg/elasticsearch/rest/RestRequest;Lorg/elasticsearch/rest/RestChannel;)V  
> at org.elasticsearch.thrift.ThriftRestImpl.execute(ThriftRestImpl.java:55)  
> at org.elasticsearch.thrift.Rest$Processor$execute.getResult(Rest.java:158)  
> at org.elasticsearch.thrift.Rest$Processor$execute.getResult(Rest.java:147)  
> at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)  
> at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)  
> at  
> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
> at java.lang.Thread.run(Thread.java:636)
> 
> Is there some bit of configuration that I'm missing?
> 
> On Thursday, May 17, 2012 12:16:47 AM UTC-4, Radu Gheorghe wrote:
> 
> > Hi Kay,
> 
> > You need to install transport-thrift first:  
> > [GitHub - elastic/elasticsearch-transport-thrift: Thrift Transport for elasticsearch (STOPPED)](https://github.com/elasticsearch/elasticsearch-transport-thrift)
> 
> > On 16 mai, 22:49, Kay Sackey [ad...@9cloud.us](mailto:ad...@9cloud.us) wrote:
> > 
> > > I've installed and used Elasticsearch on my site for the past few  
> > > months.
> 
> > > It's been a dream, connecting through Pyes to do my work, but now that  
> > > we've entered production we're seeing the limits of the HTTP  
> > > connection.
> 
> > > How can we use Thrift with Pyes?
> 
> > > I installed the thrift-transport plugin:  
> > > [GitHub - elastic/elasticsearch-transport-thrift: Thrift Transport for elasticsearch (STOPPED)](https://github.com/elasticsearch/elasticsearch-transport-thrift)  
> > > Then set Pyes to connect on port 9500, but it just returns that no  
> > > server connection can be made.
> 
> > > Any guidance would be really 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:** [May 20, 2012, 10:07pm UTC](https://discuss.elastic.co/t/using-thrift-with-pyes/7727/5 "2012-05-20T22:07:24Z")

</div>

Maybe pyes uses the 0.6.1 thrift? Try and use an older thrift plugin  
version: 1.1.0 which uses it.

On Fri, May 18, 2012 at 1:07 PM, Kay Sackey [admin@9cloud.us](mailto:admin@9cloud.us) wrote:

> I had done that.
> 
> [root@glass elasticsearch]# bin/plugin -install  
> elasticsearch/elasticsearch-transport-thrift/1.2.0  
> -\> Installing elasticsearch/elasticsearch-transport-thrift/1.2.0...  
> Trying  
> [https://github.com/downloads/elasticsearch/elasticsearch-transport-thrift/elasticsearch-transport-thrift-1.2.0.zip](https://github.com/downloads/elasticsearch/elasticsearch-transport-thrift/elasticsearch-transport-thrift-1.2.0.zip).  
> ..  
> Downloading ...........DONE  
> Installed transport-thrift
> 
> Then started elasticsearch
> 
> [root@glass elasticsearch]# sudo  
> /usr/local/src/elasticsearch/bin/elasticsearch -Xmx2g -Xms2g
> 
> Then I configured elasticsearch.yml with these:
> 
> thrift.port: 9500  
> thrift.frame: -1
> 
> Now starting it up I get an error message:
> 
> Exception in thread "pool-10-thread-1" java.lang.NoSuchMethodError:  
> org.elasticsearch.rest.RestController.dispatchRequest(Lorg/elasticsearch/rest/RestRequest;Lorg/elasticsearch/rest/RestChannel;)V  
> at  
> org.elasticsearch.thrift.ThriftRestImpl.execute(ThriftRestImpl.java:55)  
> at org.elasticsearch.thrift.Rest$Processor$execute.getResult(Rest.java:158)  
> at  
> org.elasticsearch.thrift.Rest$Processor$execute.getResult(Rest.java:147)  
> at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)  
> at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)  
> at  
> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
> at java.lang.Thread.run(Thread.java:636)
> 
> Is there some bit of configuration that I'm missing?
> 
> On Thursday, May 17, 2012 12:16:47 AM UTC-4, Radu Gheorghe wrote:
> 
> > Hi Kay,
> > 
> > You need to install transport-thrift first:  
> > [https://github.com/\*\*elasticsearch/elasticsearch-\*\*transport-thrift](https://github.com/ **elasticsearch/elasticsearch-** transport-thrift)[https://github.com/elasticsearch/elasticsearch-transport-thrift](https://github.com/elasticsearch/elasticsearch-transport-thrift)
> > 
> > On 16 mai, 22:49, Kay Sackey [ad...@9cloud.us](mailto:ad...@9cloud.us) wrote:
> > 
> > > I've installed and used Elasticsearch on my site for the past few  
> > > months.
> > > 
> > > It's been a dream, connecting through Pyes to do my work, but now that  
> > > we've entered production we're seeing the limits of the HTTP  
> > > connection.
> > > 
> > > How can we use Thrift with Pyes?
> > > 
> > > I installed the thrift-transport plugin:[https://github.com/](https://github.com/)\*\*  
> > > elasticsearch/elasticsearch-\*\*transport-thrift[https://github.com/elasticsearch/elasticsearch-transport-thrift](https://github.com/elasticsearch/elasticsearch-transport-thrift)  
> > > Then set Pyes to connect on port 9500, but it just returns that no  
> > > server connection can be made.
> > > 
> > > Any guidance would be really appreciated.
> > > 
> > > Thanks.

---

<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:27am UTC](https://discuss.elastic.co/t/using-thrift-with-pyes/7727/6 "2017-07-06T03:27:56Z")

</div>


