2014-12-20 3 views
0

프로그램에서 피닉스 JDBC 강을 (를) 만들 수 없습니다 : HBase를 0.98, Elasticsearch 1.4.2, 피닉스 4.2.2는 Elasticsearch

수신 단말기

에 오류가 Elasticsearch

curl -XPUT 'localhost:9200/_river/phoenix_jdbc_river/_meta' -d '{ 
    "type" : "jdbc", 
    "jdbc" : { 
     "url" : "jdbc:phoenix:localhost", 
     "user" : "", 
     "password" : "", 
     "sql" : "select * from test.orders" 
    } 
}' 

위한 JDBC 강을 작성하려고 할 때

[ERROR][river.jdbc.RiverPipeline ] java.sql.SQLFeatureNotSupportedException 
java.io.IOException: java.sql.SQLFeatureNotSupportedException 
    at org.xbib.elasticsearch.river.jdbc.strategy.simple.SimpleRiverSource.fetch(SimpleRiverSource.java:341) 
    at org.xbib.elasticsearch.river.jdbc.strategy.simple.SimpleRiverFlow.fetch(SimpleRiverFlow.java:220) 
    at org.xbib.elasticsearch.river.jdbc.strategy.simple.SimpleRiverFlow.execute(SimpleRiverFlow.java:149) 
    at org.xbib.elasticsearch.plugin.jdbc.RiverPipeline.request(RiverPipeline.java:88) 
    at org.xbib.elasticsearch.plugin.jdbc.RiverPipeline.call(RiverPipeline.java:66) 
    at org.xbib.elasticsearch.plugin.jdbc.RiverPipeline.call(RiverPipeline.java:30) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:262) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
    at java.lang.Thread.run(Thread.java:745) 
Caused by: java.sql.SQLFeatureNotSupportedException 
    at org.apache.phoenix.jdbc.PhoenixStatement.setQueryTimeout(PhoenixStatement.java:1239) 
    at org.xbib.elasticsearch.river.jdbc.strategy.simple.SimpleRiverSource.execute(SimpleRiverSource.java:380) 
    at org.xbib.elasticsearch.river.jdbc.strategy.simple.SimpleRiverSource.fetch(SimpleRiverSource.java:320) 
    ... 9 more. 

문제의 해결 방법은 무엇입니까?

답변

1

jdbc:phoenix:localhostjdbc:phoenix:localhost:/hbase-unsecure

으로 대체하십시오.