[WARN][plugins] plugin jdbc- river,调用自定义 onModule 方法失败
[WARN ][plugins] plugin jdbc- river, failed to invoke custom onModule method
我已经安装了 Elasticsearch 1.7.1 版本。它工作正常。我也安装了 JDBC 驱动程序。检查下面我的插件文件夹
E:\Xampp\htdocs\my-elastic\elasticsearch-1.7.1\plugins\river-jdbc
的目录
09-09-2015 19:19 66,891 elasticsearch-river-jdbc-2.3.1.jar
27-07-2015 15:55 959,984 mysql-connector-java-5.1.33.jar
所以我的连接器文件在插件文件夹中。当我启动 elasticsearch 时,它会显示警告错误,如下所示。
[2015-09-10 14:29:48,728][WARN ][plugins ] [Rogue] plugin jdbc-
river, failed to invoke custom onModule method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.elasticsearch.plugins.PluginsService.processModule(PluginsService
.java:200)
at org.elasticsearch.plugins.PluginsModule.processModule(PluginsModule.j
ava:61)
at org.elasticsearch.common.inject.Modules.processModules(Modules.java:6
4)
at org.elasticsearch.common.inject.ModulesBuilder.createInjector(Modules
Builder.java:58)
at org.elasticsearch.node.internal.InternalNode.<init>(InternalNode.java
:210)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:77)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:245)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
Caused by: java.lang.VerifyError: class org.xbib.elasticsearch.rest.action.RestJ
DBCRiverInduceAction overrides final method handleRequest.(Lorg/elasticsearch/re
st/RestRequest;Lorg/elasticsearch/rest/RestChannel;)V
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access0(Unknown Source)
at java.net.URLClassLoader.run(Unknown Source)
at java.net.URLClassLoader.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.xbib.elasticsearch.plugin.river.jdbc.JDBCRiverPlugin.onModule(JDB
CRiverPlugin.java:53)
... 13 more
我该如何解决这个问题。请帮助解决问题。
提前致谢
根据 JDBC plugin's documentation,你应该使用 ES 1.7 的版本是 1.7.0.1。
所以再次尝试使用 1.7.0.1 包安装您的插件
http://xbib.org/repository/org/xbib/elasticsearch/importer/elasticsearch-jdbc/1.7.0.1/elasticsearch-jdbc-1.7.0.1-dist.zip
然后关注这些installations steps
更新
实际上,我没听懂你在尝试安装 river 插件。自 rivers have been deprecated, the JDBC importer does not provide a river plugin anymore since version 1.5. If you absolutely want to use the river plugin, you need at most ES 1.5 (i.e. it won't work with ES 1.6+) and the JDBC plugin v1.5.
如果您决定沿着这条路走下去,您可以使用
安装 JDBC river 插件
./bin/plugin --install jdbc --url http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-river-jdbc/1.5.0.4/elasticsearch-river-jdbc-1.5.0.4.zip
如果您决定继续使用 ES 1.7,那么您可以 运行 JDBC 导入器作为一个独立的工具,方法是 运行 在 bin
文件夹
我已经安装了 Elasticsearch 1.7.1 版本。它工作正常。我也安装了 JDBC 驱动程序。检查下面我的插件文件夹
E:\Xampp\htdocs\my-elastic\elasticsearch-1.7.1\plugins\river-jdbc
09-09-2015 19:19 66,891 elasticsearch-river-jdbc-2.3.1.jar
27-07-2015 15:55 959,984 mysql-connector-java-5.1.33.jar
所以我的连接器文件在插件文件夹中。当我启动 elasticsearch 时,它会显示警告错误,如下所示。
[2015-09-10 14:29:48,728][WARN ][plugins ] [Rogue] plugin jdbc-
river, failed to invoke custom onModule method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.elasticsearch.plugins.PluginsService.processModule(PluginsService
.java:200)
at org.elasticsearch.plugins.PluginsModule.processModule(PluginsModule.j
ava:61)
at org.elasticsearch.common.inject.Modules.processModules(Modules.java:6
4)
at org.elasticsearch.common.inject.ModulesBuilder.createInjector(Modules
Builder.java:58)
at org.elasticsearch.node.internal.InternalNode.<init>(InternalNode.java
:210)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:77)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:245)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
Caused by: java.lang.VerifyError: class org.xbib.elasticsearch.rest.action.RestJ
DBCRiverInduceAction overrides final method handleRequest.(Lorg/elasticsearch/re
st/RestRequest;Lorg/elasticsearch/rest/RestChannel;)V
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access0(Unknown Source)
at java.net.URLClassLoader.run(Unknown Source)
at java.net.URLClassLoader.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.xbib.elasticsearch.plugin.river.jdbc.JDBCRiverPlugin.onModule(JDB
CRiverPlugin.java:53)
... 13 more
我该如何解决这个问题。请帮助解决问题。
提前致谢
根据 JDBC plugin's documentation,你应该使用 ES 1.7 的版本是 1.7.0.1。
所以再次尝试使用 1.7.0.1 包安装您的插件 http://xbib.org/repository/org/xbib/elasticsearch/importer/elasticsearch-jdbc/1.7.0.1/elasticsearch-jdbc-1.7.0.1-dist.zip
然后关注这些installations steps
更新
实际上,我没听懂你在尝试安装 river 插件。自 rivers have been deprecated, the JDBC importer does not provide a river plugin anymore since version 1.5. If you absolutely want to use the river plugin, you need at most ES 1.5 (i.e. it won't work with ES 1.6+) and the JDBC plugin v1.5.
如果您决定沿着这条路走下去,您可以使用
安装 JDBC river 插件./bin/plugin --install jdbc --url http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-river-jdbc/1.5.0.4/elasticsearch-river-jdbc-1.5.0.4.zip
如果您决定继续使用 ES 1.7,那么您可以 运行 JDBC 导入器作为一个独立的工具,方法是 运行 在 bin
文件夹