Problem installing jetty plugin

540 views
Skip to first unread message

Pablo Musa

unread,
Jan 17, 2014, 8:22:30 AM1/17/14
to elasticse...@googlegroups.com
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

Pablo Musa

unread,
Jan 17, 2014, 8:44:44 AM1/17/14
to elasticse...@googlegroups.com
Enabled debug and got the following error restarting the cluster:

[2014-01-17 11:36:55,214][DEBUG][org.eclipse.jetty.xml.XmlParser] [Batwing] parse: file:/usr/share/elasticsearch/plugins/jetty-0.90.0/config/jetty.xml
[2014-01-17 11:36:55,217][DEBUG][org.eclipse.jetty.xml.XmlParser] [Batwing] parsing: sid=file:/usr/share/elasticsearch/plugins/jetty-0.90.0/config/jetty.xml,pid=null
[2014-01-17 11:36:55,227][DEBUG][org.eclipse.jetty.xml.XmlParser] [Batwing] resolveEntity(-//Jetty//Configure//EN, http://www.eclipse.org/jetty/configure.dtd)
[2014-01-17 11:36:55,228][DEBUG][org.eclipse.jetty.xml.XmlParser] [Batwing] Redirected entity http://www.eclipse.org/jetty/configure.dtd --> jar:file:/usr/share/elasticsearch/plugins/jetty-0.90.0/jetty-xml-8.1.4.v20120524.jar!/org/eclipse/jetty/xml/configure_7_6.dtd
[2014-01-17 11:36:55,253][INFO ][gateway                  ] [Batwing] recovered [0] indices into cluster_state
[2014-01-17 11:36:55,253][DEBUG][cluster.service          ] [Batwing] processing [local-gateway-elected-state]: done applying updated cluster_state (version: 2)
[2014-01-17 11:36:55,338][DEBUG][org.eclipse.jetty.xml.XmlConfiguration] [Batwing] XML new class com.sonian.elasticsearch.http.jetty.handler.JettyHttpServerTransportHandler
[2014-01-17 11:36:55,340][DEBUG][bootstrap                ] [Batwing] Exception
java.lang.IncompatibleClassChangeError: Implementing class
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:788)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:447)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)
        at java.lang.Class.getConstructors(Class.java:1507)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:751)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1082)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:997)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.set(XmlConfiguration.java:416)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:378)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:338)
        at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:291)
        at com.sonian.elasticsearch.http.jetty.JettyHttpServerTransport$1.onPortNumber(JettyHttpServerTransport.java:125)
        at org.elasticsearch.common.transport.PortsRange.iterate(PortsRange.java:69)
        at com.sonian.elasticsearch.http.jetty.JettyHttpServerTransport.doStart(JettyHttpServerTransport.java:100)
        at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:85)
        at org.elasticsearch.http.HttpServer.doStart(HttpServer.java:89)
        at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:85)
        at org.elasticsearch.node.internal.InternalNode.start(InternalNode.java:223)
        at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:120)
        at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:204)
        at org.elasticsearch.bootstrap.ElasticSearch.main(ElasticSearch.java:32)

Pablo Musa

unread,
Jan 17, 2014, 9:36:09 AM1/17/14
to elasticse...@googlegroups.com
I think the problem is that I am using elasticsearch 0.90.10 and something
have changed in the API. Does anyone knows what it might be?

Thanks

imotov

unread,
Jan 17, 2014, 9:51:44 AM1/17/14
to elasticse...@googlegroups.com
Yes, because of this change the jetty plugin needs to be updated. I will try to get to it soon.

Pablo Musa

unread,
Jan 17, 2014, 10:01:39 AM1/17/14
to elasticse...@googlegroups.com
Do you want help?

I can try to fix it.

imotov

unread,
Jan 17, 2014, 10:33:50 AM1/17/14
to elasticse...@googlegroups.com
Sure. If you have time.

karan malhotra

unread,
Jan 18, 2014, 8:17:50 PM1/18/14
to elasticse...@googlegroups.com
Hi guys any luck with updating Jetty? I am also using elasticsearch 0.90.10 and running into the same issue..Elasticsearch is failing to start with 

IncompatibleClassChangeError

Pablo Musa

unread,
Jan 20, 2014, 4:10:52 PM1/20/14
to elasticse...@googlegroups.com
I have a jar that will work for now.
But we are still reviewing code implementation to improve performance.

Let me know if you want the jar, and then I will send it to you in the
meanwhile.

Abs,
Pablo


2014/1/18 karan malhotra <karanma...@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "elasticsearch-jetty" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elasticsearch-jetty/m-5XETJEuKo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elasticsearch-j...@googlegroups.com.
To post to this group, send email to elasticse...@googlegroups.com.
Visit this group at http://groups.google.com/group/elasticsearch-jetty.
For more options, visit https://groups.google.com/groups/opt_out.

Aybars Cengaver

unread,
Jan 21, 2014, 2:40:31 PM1/21/14
to elasticse...@googlegroups.com
Hey pablo, please send to me jelly fixed jar ? emreyilmaz[et]yandex.com

Shobhit Jain

unread,
Jan 22, 2014, 2:30:06 AM1/22/14
to elasticse...@googlegroups.com
Hey pablo .Can you also send the jar file to me. I am facing the same issue shobhit[@]mygola.com


On Tuesday, January 21, 2014 2:40:52 AM UTC+5:30, Pablo Musa wrote:
I have a jar that will work for now.
But we are still reviewing code implementation to improve performance.

Let me know if you want the jar, and then I will send it to you in the
meanwhile.

Abs,
Pablo


2014/1/18 karan malhotra <karanma...@gmail.com>
Hi guys any luck with updating Jetty? I am also using elasticsearch 0.90.10 and running into the same issue..Elasticsearch is failing to start with 

IncompatibleClassChangeError


On Friday, 17 January 2014 10:33:50 UTC-5, imotov wrote:
Sure. If you have time.

On Friday, January 17, 2014 10:01:39 AM UTC-5, Pablo Musa wrote:
Do you want help?

I can try to fix it.

On Friday, January 17, 2014 12:51:44 PM UTC-2, imotov wrote:
Yes, because of this change the jetty plugin needs to be updated. I will try to get to it soon.

On Friday, January 17, 2014 9:36:09 AM UTC-5, Pablo Musa wrote:
I think the problem is that I am using elasticsearch 0.90.10 and something
have changed in the API. Does anyone knows what it might be?

Thanks

--
You received this message because you are subscribed to a topic in the Google Groups "elasticsearch-jetty" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elasticsearch-jetty/m-5XETJEuKo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elasticsearch-jetty+unsub...@googlegroups.com.

Hector Santiago

unread,
Feb 14, 2014, 10:04:16 AM2/14/14
to elasticse...@googlegroups.com

Pablo, can you send me the jetty fixed jar, im getting problems to get it work. my email is hsan...@ecosur.mx

kamal ramesh

unread,
Feb 18, 2014, 6:57:26 PM2/18/14
to elasticse...@googlegroups.com
Guys, if any body has the fixed jar can you attach it to this thread. It might be useful for others who are stuck in a similar state.

Else if possible,can any body send it to me , 

thx
Reply all
Reply to author
Forward
0 new messages