elasticsearch - elastic search shutting down throws TransportNodesShutdownAction$1$2 not found -
i'm using elastic search 1.1.0.
while trying shutdown elastic search i'm getting noclassdeffounderror. code used shutdown , stack trace given below.
maven:
<dependency> <groupid>org.elasticsearch</groupid> <artifactid>elasticsearch</artifactid> <version>1.1.0</version> </dependency>
code: node.client().admin().cluster().preparenodesshutdown().execute().get();
2015-08-05 21:45:11,113 [thread-15] info org.elasticsearch.action.admin.cluster.node.shutdown internalinfo - [captain ultra] [cluster_shutdown]: done shutting down nodes except master, proceeding master info: illegal access: web application instance has been stopped already. not load org.elasticsearch.action.admin.cluster.node.shutdown.transportnodesshutdownaction$1$2. eventual following stack trace caused error thrown debugging purposes attempt terminate thread caused illegal access, , has no functional impact. java.lang.illegalstateexception @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1600) @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1559) @ org.elasticsearch.action.admin.cluster.node.shutdown.transportnodesshutdownaction$1.run(transportnodesshutdownaction.java:153) @ java.lang.thread.run(unknown source) exception in thread "thread-15" java.lang.noclassdeffounderror: org/elasticsearch/action/admin/cluster/node/shutdown/transportnodesshutdownaction$1$2 @ org.elasticsearch.action.admin.cluster.node.shutdown.transportnodesshutdownaction$1.run(transportnodesshutdownaction.java:153) @ java.lang.thread.run(unknown source) caused by: java.lang.classnotfoundexception: org.elasticsearch.action.admin.cluster.node.shutdown.transportnodesshutdownaction$1$2 @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1714) @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1559) ... 2 more
this issue not allowing elastic search shutdown gracefully. tomcat waiting period(timeout) , killing threads forcefully. how fix issue?
same issue coming 1.0.0 also.
finally got solution. elastic search trying shutdown in separate thread. time elastic search tries access transportnodesshutdownaction, tomcat unload elastic jar class loader. adding sleep statement or adding elastic , dependent jar tomcat/lib solve problem.
Comments
Post a Comment