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?
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.
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.