I am using spring-xd-1.0.0.M6.
I try to configure mysql DB as a sink for the Spring-xd
I follow -http://theblasfrompas.blogspot.in/2014/01/springxd-filetail-input-ingestion-jdbc.html
I put my jdbc.properties file - in the
1) spring-xd-1.0.0.M6/xd/modules/sink/jdbc/config
location
2) I put mysql connector jar in the
spring-xd-1.0.0.M6/xd/lib
I create a file - input.txt and put it in the folder - /<some path>/temp/input.txt
The file contains
{"id":"1","name":"pas"}
{"id":"2","name":"lucia"}
{"id":"3","name":"lucas"}
{"id":"4","name":"siena"}
jdbc file contains following informations.
driverClass=com.mysql.jdbc.Driver
url=jdbc:mysql://127.0.0.1:3306/spring_xd
username=root
password=root
Now in the XD shell I execute following
stream create --name filetest --definition "tail --name='/<some path>/temp/input.txt' | jdbc --columns='id,name'" --deploy
My my-sql DB table name is - file_test and it has 2 columns id and name - same as mentioned in the Example Link
But I get
Command failed org.springframework.xd.rest.client.impl.SpringXDException: Error with option(s) for module jdbc of type sink:
columns: option named 'columns' is not supported
If I specify the tableName param, also I get ..
tableName: option named 'tableName' is not supported
I also refer - https://github.com/spring-projects/spring-xd/pull/621
But clue less .... with latest Spring-xd build