Hey guys,
I am trying to install jetty plugin but I am having some problems :(
I follow the steps and everything seems ok:
...
DONE
Installed elasticsearch-jetty-0.90.0 into /usr/share/elasticsearch/plugins/jetty-0.90.0
Now I restart and test the server.
$ sudo service elasticsearch restart
HTTP/1.1 200 OK
Content-Type: text/plain; charset=UTF-8
Content-Length: 0
=== LOGS ===
[2014-01-17 11:05:01,689][INFO ][node ] [Hydro-Man] stopping ...
[2014-01-17 11:05:01,824][INFO ][node ] [Hydro-Man] stopped
[2014-01-17 11:05:01,825][INFO ][node ] [Hydro-Man] closing ...
[2014-01-17 11:05:01,829][INFO ][node ] [Hydro-Man] closed
[2014-01-17 11:05:03,626][INFO ][node ] [Day, Wilbur] version[0.90.10], pid[19080], build[0a5781f/2014-01-10T10:18:37Z]
[2014-01-17 11:05:03,626][INFO ][node ] [Day, Wilbur] initializing ...
[2014-01-17 11:05:03,645][INFO ][plugins ] [Day, Wilbur] loaded [jetty], sites [HQ, head, paramedic]
[2014-01-17 11:05:06,392][INFO ][node ] [Day, Wilbur] initialized
[2014-01-17 11:05:06,392][INFO ][node ] [Day, Wilbur] starting ...
[2014-01-17 11:05:06,504][INFO ][transport ] [Day, Wilbur] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/
192.168.1.2:9300]}
[2014-01-17 11:05:09,547][INFO ][cluster.service ] [Day, Wilbur] new_master [Day, Wilbur][U5Epm7q6RV6eBRk3yuCN7g][inet[/192.168.1.2:9300]], reason: zen-disco-join (elected_as_master)
[2014-01-17 11:05:09,580][INFO ][discovery ] [Day, Wilbur] elasticsearch/U5Epm7q6RV6eBRk3yuCN7g
[2014-01-17 11:05:09,608][INFO ][http ] [Day, Wilbur] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/
192.168.1.2:9200]}
[2014-01-17 11:05:09,609][INFO ][node ] [Day, Wilbur] started
[2014-01-17 11:05:10,506][INFO ][gateway ] [Day, Wilbur] recovered [11] indices into cluster_state
=== LOGS ===
Then I followed the next step and added the following line to yml.
http.type: com.sonian.elasticsearch.http.jetty.JettyHttpServerTransportModule
Restart the server and test it.
curl: (7) couldn't connect to host
Take a look at the log file I found the following error, but I was not able to figure out the problem.
org.elasticsearch.ElasticSearchIllegalStateException: Can't create an index [t1], node is closed
at org.elasticsearch.indices.InternalIndicesService.createIndex(InternalIndicesService.java:255)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewIndices(IndicesClusterStateService.java:306)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:178)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:416)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:135)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Do I have to install or download any jetty jar?
What am I doing wrong?
Next is my edited log file (removed the repetitive part). If the whole file is needed, just let me know.
Thanks in advance,
Pablo Musa
[2014-01-17 11:06:41,159][INFO ][node ] [Day, Wilbur] stopping ...
[2014-01-17 11:06:41,253][INFO ][node ] [Day, Wilbur] stopped
[2014-01-17 11:06:41,253][INFO ][node ] [Day, Wilbur] closing ...
[2014-01-17 11:06:41,258][INFO ][node ] [Day, Wilbur] closed
[2014-01-17 11:06:43,024][INFO ][node ] [Taskmaster] version[0.90.10], pid[19193], build[0a5781f/2014-01-10T10:18:37Z]
[2014-01-17 11:06:43,025][INFO ][node ] [Taskmaster] initializing ...
[2014-01-17 11:06:43,043][INFO ][plugins ] [Taskmaster] loaded [jetty], sites [HQ, head, paramedic]
[2014-01-17 11:06:45,766][INFO ][node ] [Taskmaster] initialized
[2014-01-17 11:06:45,766][INFO ][node ] [Taskmaster] starting ...
[2014-01-17 11:06:45,875][INFO ][transport ] [Taskmaster] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/
192.168.1.2:9300]}
[2014-01-17 11:06:48,923][INFO ][cluster.service ] [Taskmaster] new_master [Taskmaster][JfGr6YfqRBKZXlrLexmYgg][inet[/192.168.1.2:9300]], reason: zen-disco-join (elected_as_master)
[2014-01-17 11:06:48,963][INFO ][discovery ] [Taskmaster] elasticsearch/JfGr6YfqRBKZXlrLexmYgg
[2014-01-17 11:06:49,211][INFO ][node ] [Taskmaster] stopping ...
[2014-01-17 11:06:49,486][WARN ][cluster.service ] [Taskmaster] failed to apply updated cluster state:
version [2], source [local-gateway-elected-state]
nodes:
[Taskmaster][JfGr6YfqRBKZXlrLexmYgg][inet[/192.168.1.2:9300]], local, master
routing_table:
**** here all my index are printed in the form:
-- index [t3]
----shard_id [t3][4]
--------[t3][4], node[null], [P], s[UNASSIGNED]
--------[t3][4], node[null], [R], s[UNASSIGNED]
----shard_id [t3][0]
--------[t3][0], node[null], [P], s[UNASSIGNED]
--------[t3][0], node[null], [R], s[UNASSIGNED]
----shard_id [t3][3]
--------[t3][3], node[JfGr6YfqRBKZXlrLexmYgg], [P], s[INITIALIZING]
--------[t3][3], node[null], [R], s[UNASSIGNED]
----shard_id [t3][1]
--------[t3][1], node[null], [P], s[UNASSIGNED]
--------[t3][1], node[null], [R], s[UNASSIGNED]
----shard_id [t3][2]
--------[t3][2], node[null], [P], s[UNASSIGNED]
--------[t3][2], node[null], [R], s[UNASSIGNED]
...
routing_nodes:
-----node_id[JfGr6YfqRBKZXlrLexmYgg][V]
--------[t3][3], node[JfGr6YfqRBKZXlrLexmYgg], [P], s[INITIALIZING]
--------[t1][4], node[JfGr6YfqRBKZXlrLexmYgg], [P], s[INITIALIZING]
--------[ttl_test][1], node[JfGr6YfqRBKZXlrLexmYgg], [P], s[INITIALIZING]
--------[t5][3], node[JfGr6YfqRBKZXlrLexmYgg], [P], s[INITIALIZING]
---- unassigned
--------[t3][4], node[null], [P], s[UNASSIGNED]
--------[t3][4], node[null], [R], s[UNASSIGNED]
--------[t3][0], node[null], [P], s[UNASSIGNED]
--------[t3][0], node[null], [R], s[UNASSIGNED]
--------[t3][3], node[null], [R], s[UNASSIGNED]
--------[t3][1], node[null], [P], s[UNASSIGNED]
--------[t3][1], node[null], [R], s[UNASSIGNED]
--------[t3][2], node[null], [P], s[UNASSIGNED]
--------[t3][2], node[null], [R], s[UNASSIGNED]
--------[t2][2], node[null], [P], s[UNASSIGNED]
--------[t2][2], node[null], [R], s[UNASSIGNED]
--------[t2][0], node[null], [P], s[UNASSIGNED]
--------[t2][0], node[null], [R], s[UNASSIGNED]
--------[t2][3], node[null], [P], s[UNASSIGNED]
--------[t2][3], node[null], [R], s[UNASSIGNED]
--------[t2][1], node[null], [P], s[UNASSIGNED]
--------[t2][1], node[null], [R], s[UNASSIGNED]
--------[t2][4], node[null], [P], s[UNASSIGNED]
--------[t2][4], node[null], [R], s[UNASSIGNED]
--------[t1][2], node[null], [P], s[UNASSIGNED]
...
--------[t9][1], node[null], [R], s[UNASSIGNED]
--------[t9][2], node[null], [P], s[UNASSIGNED]
--------[t9][2], node[null], [R], s[UNASSIGNED]
org.elasticsearch.ElasticSearchIllegalStateException: Can't create an index [t1], node is closed
at org.elasticsearch.indices.InternalIndicesService.createIndex(InternalIndicesService.java:255)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewIndices(IndicesClusterStateService.java:306)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:178)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:416)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:135)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
[2014-01-17 11:06:49,506][INFO ][node ] [Taskmaster] stopped
[2014-01-17 11:06:49,506][INFO ][node ] [Taskmaster] closing ...
[2014-01-17 11:06:49,512][INFO ][node ] [Taskmaster] closed