Note that there are some explanatory texts on larger screens.

plurals
  1. POElasticSearch Play-1.2 Module not working in Client Mode
    primarykey
    data
    text
    <p>I am using the Elasticsearch Play module in a play application and have only had half success. I am able to configure and use it in local/embedded mode. I am however not able to run in client mode.</p> <p>I set up the elasticsearch service on the same box on which my play application is hosted. I added the following to my app config:</p> <p><strong>#ELASTIC SEARCH MODULE</strong></p> <pre><code>elasticsearch.local=false elasticsearch.client=localhost:9200 </code></pre> <p>I am running in DEV mode. I have also tried connecting to a remote host with no success. In both cases, when I make the first request to the application, it starts loading various modules and just hangs when it tries to connect to the elasticsearch service. Here's a snippet from my logs:</p> <pre><code>[TIME: 2013-08-09 19:59:09] [LOG LEVEL: DEBUG] MorphiaPlugin-1.2.12&gt; reading configuration&lt;BR&gt; [TIME: 2013-08-09 19:59:15] [LOG LEVEL: INFO] Connected to memcached &lt;BR&gt; [TIME: 2013-08-09 19:59:15] [LOG LEVEL: INFO] Connecting Play! to Elastic Search in Client Mode&lt;BR&gt; **[TIME: 2013-08-09 19:59:15] [LOG LEVEL: INFO] Transport Client - Host: localhost Port: 9200** </code></pre> <p><strong>Edit</strong> Connecting to port 9300 works. However elasticsearch throws a <strong>java.io.StreamCorruptedException</strong> as soon as I attempt to connect. here is a snippet of the stack trace:</p> <pre><code>[2013-08-14 09:44:29,405][WARN ][transport.netty] [Kl'rt] exception caught on transport layer [[id: 0x30ec6e1f, /192.168.10.126:45148 =&gt; /192.168.10.126:9300]], closing connection java.io.StreamCorruptedException: invalid internal transport message format at org.elasticsearch.transport.netty.SizeHeaderFrameDecoder.decode(SizeHeaderFrameDecoder.java:27) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:425) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload