Questions tagged [elasticsearch-jdbc-river]

The Java Database Connection (JDBC) river allows to fetch data from JDBC sources for indexing into Elasticsearch.

It is implemented as an Elasticsearch plugin.

The relational data is internally transformed into structured JSON objects for the schema-less indexing model in Elasticsearch.

Creating a JDBC river is easy. Install the plugin. Download a JDBC driver jar from your vendor's site (here MySQL) and put the jar into the folder of the plugin $ES_HOME/plugins/river-jdbc. Then issue this simple command:

curl -XPUT 'localhost:9200/_river/my_jdbc_river/_meta' -d '{
    "type" : "jdbc",
    "jdbc" : {
        "url" : "jdbc:mysql://localhost:3306/test",
        "user" : "",
        "password" : "",
        "sql" : "select * from orders",
        "index" : "my_jdbc_index",
        "type" : "my_jdbc_type"
    }
}'

Reference :-

Elasticsearch Jdbc River Quick Start

Elasticsearch JBDC River Parameters

124 questions
0
votes
1 answer

In JDBC River how to stop housekeeping not to delete records?

When JDBC River does the polling, housekeeping jobs removes chunk of records. Somebody know solutions for it. I want to stop records deletion. For more reference :- https://github.com/jprante/elasticsearch-river-jdbc/issues/61
Roopendra
  • 7,674
  • 16
  • 65
  • 92
0
votes
1 answer

Elasticsearch 0.90 with MSSQL River

Hi i want to write a river for my MSSQL 2008 R2 Server. I have copied the MSSQL Driver and the jdbc jar into the bin/plugins/jdbc directory. I have tested the MSSQL driver in Solr and it works fine. So the connection string is correct. When i'm…
0
votes
1 answer

Elasticsearch jdbc river import slow

I'm trying to import a sqlserver database to ES with jdbc river but the import process is very slow. In the logs I see that the process is doing the import 1 by 1: new bulk [58] of [1 items], 1 outstanding bulk requests bulk [58] success [1 items]…
David Sedeño
  • 495
  • 1
  • 6
  • 19
0
votes
1 answer

Weird float number from sqlserver jdbc river in ElasticSearch

I have a SQLServer Database and when I import a float type, it's import an incorrect values: DB value: 9.0 ES value: 90.0 DB Value: 16.00 ES value: 16000000000000004 I have setup a mapping for the value to float type and set the scale:2 parameter in…
David Sedeño
  • 495
  • 1
  • 6
  • 19
1 2 3
8
9