TransportClient on Google app engine

I was trying to see what I would run into when I would run the
TransportClient on Google app engine (to connect to Elasticsearch as a
service somewhere).

I un into a restricted class error almost emediately so it's not really
going to work unfortunately:

Error injecting constructor, java.lang.NoClassDefFoundError: sun.misc.Unsafe is a restricted class. Please see the Google App Engine developer's guide for more details.
at org.elasticsearch.threadpool.ThreadPool.(Unknown Source)
while locating org.elasticsearch.threadpool.ThreadPool
Caused by: java.lang.NoClassDefFoundError: sun.misc.Unsafe is a restricted class. Please see the Google App Engine developer's guide for more details.

Has somebody done any research as to how you could run Elasticsearch e.g.
on Compute Engine and connect to it from google appengine?

--

You will have a very hard time to get a TransportClient working on GAE due
to the sandbox restrictions outlined
in https://developers.google.com/appengine/docs/java/runtime#The_Sandbox

The most promising approach would be a complete rewrite of a Java client,
simplifying the TransportClient, by utilizing the HTTP URL methods of the
GAE SDK instead of Netty and the related thread pooling, and mimicking a
single-threaded HTTP REST client.

Jörg

--

I got Elastic Search working on Google App Engine using the python API. It
was not easy, but now that it's setup it works great.

On Thursday, December 6, 2012 7:14:10 PM UTC-5, Jörg Prante wrote:

You will have a very hard time to get a TransportClient working on GAE due
to the sandbox restrictions outlined in
Java on Google App Engine  |  App Engine Documentation  |  Google Cloud

The most promising approach would be a complete rewrite of a Java client,
simplifying the TransportClient, by utilizing the HTTP URL methods of the
GAE SDK instead of Netty and the related thread pooling, and mimicking a
single-threaded HTTP REST client.

Jörg

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3cf35e58-d35f-470f-85b7-52036f6ed03a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.