Closed matbox closed 10 years ago
Same problem, when I restart ES after installing the plugin, I have the error "failed to load plugin"
failed to load plugin from [jar:file:/usr/share/elasticsearch-1.1.0/plugins/langdetect/elasticsearch-langdetect-1.0.0.RC1.1.jar!/es-plugin.properties]
org.elasticsearch.ElasticsearchException: Failed to load plugin class [org.xbib.elasticsearch.plugin.langdetect.LangdetectPlugin]
at org.elasticsearch.plugins.PluginsService.loadPlugin(PluginsService.java:512)
at org.elasticsearch.plugins.PluginsService.loadPluginsFromClasspath(PluginsService.java:393)
at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:102)
at org.elasticsearch.node.internal.InternalNode.<init>(InternalNode.java:143)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:68)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:201)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
Caused by: java.lang.UnsupportedClassVersionError: org/xbib/elasticsearch/plugin/langdetect/LangdetectPlugin : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.elasticsearch.plugins.PluginsService.loadPlugin(PluginsService.java:495)
... 7 more
You must use Java 7.
Also, there is an update to ES 1.2.1 released, with plugin version 1.2.1.0
I can't get it to work with newer versions than the RC?