Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error executing SQL statement from file #203

Closed
Chadwiki opened this issue Mar 17, 2014 · 1 comment
Closed

error executing SQL statement from file #203

Chadwiki opened this issue Mar 17, 2014 · 1 comment

Comments

@Chadwiki
Copy link

I have upgraded to ES 1.0.1 and river-jdbc 1.0.0.1, from ES 0.90.1 river-jdbc 2.3.1.2 (running on windows)
I have been unable to get the old configuration working.

First, I see that the old statements that I pulled from /bin/analyticsmonthly.sql are not executing. Is there a change in providing SQL file?

Column 1 : [2014-03-17 12:19:52,932][DEBUG][org.xbib.elasticsearch.river.jdbc.strategy.simple.SimpleRiverSource] executing SQL without params: statement=analyticsmonthly.sql parameter=[] callable=false Column 1 : [2014-03-17 12:19:52,923][DEBUG][org.xbib.elasticsearch.river.jdbc.RiverState] load state={"name":"jdbc","started":"2014-03-17T19:13:48.633Z","timestamp":"2014-03-17T19:13:48.648Z","counter":1,"active":true,"custom":{"riverName":"jdbc_river_analyticsmonthly","settings":{"type":"jdbc","jdbc":{"max_bulk_requests":30,"bulk_size":100,"index":"analytics","poll":"1h","poolsize":2,"sql":["analyticsmonthly.sql"],"strategy":"simple","driver":"com.microsoft.sqlserver.jdbc.SQLServerDriver","autocommit":true,"type":"analyticsmonthly","bulk_flush_interval":"10s","password":"data","user":"data_services","url":"jdbc:sqlserver://qa.company.org:2080;databaseName=QA_Analytics;"}},"locale":"en_","job":null,"schedule":null,"interval":"-1","sql":["statement=analyticsmonthly.sql parameter=[] callable=false"],"autocommit":true,"fetchsize":10,"maxrows":0,"retries":3,"maxretrywait":"30s","columnCreatedAt":"created_at","columnUpdatedAt":"updated_at","columnDeletedAt":null,"columnEscape":true}}

This previously worked on the old version:
curl -XPUT 'http://elastictoad:9200/_river/jdbc_river_analyticsmonthly/_meta'
{
"type" : "jdbc",
"jdbc" : {
"driver":"com.microsoft.sqlserver.jdbc.SQLServerDriver",
"url":"jdbc:sqlserver://qa.company.org:2080;databaseName=QA_Analytics;",
"user" : "data_services",
"password" : "password",
"sql" : "analyticsmonthly.sql",
"index" : "analytics",
"type" : "analyticsmonthly",
"poolsize" : 2,
"bulk_size" : 100,
"max_bulk_requests" : 30,
"bulk_flush_interval" : "10s",
"poll" : "1h",
"strategy" : "simple",
"autocommit" : true
}
}'

@jprante
Copy link
Owner

jprante commented Mar 17, 2014

Thanks, this is still open, I have to fix the statements from file.

jprante added a commit that referenced this issue Mar 31, 2014
@jprante jprante closed this as completed Oct 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants