无法在elasticsearch中创建phoenix jdbc river

7xllpg7q  于 2021-06-09  发布在  Hbase
关注(0)|答案(1)|浏览(437)

程序:hbase 0.98、elasticsearch 1.4.2和phoenix 4.2.2
尝试为elasticsearch创建jdbc河时

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

接收终端错误

[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.

你能帮我找出问题所在和解决方法吗?

efzxgjgh

efzxgjgh1#

请更换 jdbc:phoenix:localhostjdbc:phoenix:localhost:/hbase-unsecure

相关问题