使用 man ascii 来查看 ASCII 表。

elasticsearch-jdbc找不到oracle驱动包

Elasticsearch | 作者 feiyu | 发布于2016年08月10日 | 阅读数:3736

我下载了ojdbc驱动包放到lib目录下,但是在执行脚本时报错:
while opening read connection: jdbc:oracle:thin:@192.168.161.206:1521/ora10 No suitable driver found for jdbc:oracle:thin:@192.168.161.206:1521/ora10
java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@192.168.161.206:1521/ora10
at java.sql.DriverManager.getConnection(DriverManager.java:689) ~[?:1.8.0_101]
at java.sql.DriverManager.getConnection(DriverManager.java:208) ~[?:1.8.0_101]
at org.xbib.elasticsearch.jdbc.strategy.standard.StandardSource.getConnectionForReading(StandardSource.java:485) [elasticsearch-jdbc-2.3.3.0.jar:?]
at org.xbib.elasticsearch.jdbc.strategy.standard.StandardSource.execute(StandardSource.java:670) [elasticsearch-jdbc-2.3.3.0.jar:?]
at org.xbib.elasticsearch.jdbc.strategy.standard.StandardSource.fetch(StandardSource.java:597) [elasticsearch-jdbc-2.3.3.0.jar:?]
at org.xbib.elasticsearch.jdbc.strategy.standard.StandardContext.fetch(StandardContext.java:191) [elasticsearch-jdbc-2.3.3.0.jar:?]
at org.xbib.elasticsearch.jdbc.strategy.standard.StandardContext.execute(StandardContext.java:166) [elasticsearch-jdbc-2.3.3.0.jar:?]
at org.xbib.tools.JDBCImporter.process(JDBCImporter.java:199) [elasticsearch-jdbc-2.3.3.0.jar:?]
at org.xbib.tools.JDBCImporter.newRequest(JDBCImporter.java:185) [elasticsearch-jdbc-2.3.3.0.jar:?]
at org.xbib.tools.JDBCImporter.newRequest(JDBCImporter.java:51) [elasticsearch-jdbc-2.3.3.0.jar:?]
at org.xbib.pipeline.AbstractPipeline.call(AbstractPipeline.java:50) [elasticsearch-jdbc-2.3.3.0.jar:?]
at org.xbib.pipeline.AbstractPipeline.call(AbstractPipeline.java:16) [elasticsearch-jdbc-2.3.3.0.jar:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_101]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
已邀请:

要回复问题请先登录注册