我已经成功安装了elasticsearch,我尝试了快速入门指南为jdbc安装elasticsearch河流插件,但是当我尝试开始获取sql表时,我一直遇到这个错误,有人能说清楚出错?感谢。
CreationException [Guice创建错误:\ n \ n1]注入构造函数时出错,java.util.ServiceConfigurationError:org.xbib.elasticsearch.river.jdbc.RiverMouth:Provider org.xbib.elasticsearch.river.jdbc.strategy.simple .SimpleRiverMouth无法实例化:java.lang.NoClassDefFoundError:org / elasticsearch / ElasticsearchTimeoutException \ n在org.xbib.elasticsearch.river.jdbc.JDBCRiver。(未知来源)\ n,同时找到org.xbib.elasticsearch.river.jdbc .JDBCRiver \ n,同时定位org.elasticsearch.river.River \ n \ n1错误];嵌套:ServiceConfigurationError [org.xbib.elasticsearch.river.jdbc.RiverMouth:Provider org.xbib.elasticsearch.river.jdbc.strategy.simple.SimpleRiverMouth无法实例化:java.lang.NoClassDefFoundError:org / elasticsearch / ElasticsearchTimeoutException];嵌套:NoClassDefFoundError [org / elasticsearch / ElasticsearchTimeoutException];嵌套:ClassNotFoundException [org.elasticsearch.ElasticsearchTimeoutException];
我怀疑它是类路径问题,但是再次弹性搜索正确启动。这是执行路径:
/usr/bin/java -Xms256m -Xmx1g -Xss256k -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.pidfile=/var/run/elasticsearch/elasticsearch.pid -Des.path.home=/usr/share/elasticsearch -cp :/usr/share/elasticsearch/lib/elasticsearch-0.90.10.jar:/usr/share/elasticsearch/lib/*:/usr/share/elasticsearch/lib/sigar/* -Des.default.path.home=/usr/share/elasticsearch -Des.default.path.logs=/var/log/elasticsearch -Des.default.path.data=/var/lib/elasticsearch -Des.default.path.work=/tmp/elasticsearch -Des.default.path.conf=/etc/elasticsearch org.elasticsearch.bootstrap.ElasticSearch
=============================================== =========================
答案 0 :(得分:2)
您正在混合版本。 您提到的插件意味着在1.0.0.RC1 elasticsearch节点中运行。