Using Thrift with Pyes

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:


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.

Hi Kay,

You need to install transport-thrift first:

On 16 mai, 22:49, Kay Sackey 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)
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.

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...
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)

On 16 mai, 22:49, Kay Sackey 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)
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.

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 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)

On 16 mai, 22:49, Kay Sackey 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)
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.

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 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.
..
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-thrifthttps://github.com/elasticsearch/elasticsearch-transport-thrift

On 16 mai, 22:49, Kay Sackey 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/**
elasticsearch/elasticsearch-**transport-thrifthttps://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.