When I tried to insert some in local mysql using jdbc_streaming filter, it is showing following error. But no error is shown for select statements.
Ruby-0-Thread-12@[main]>worker6: :1] jdbcstreaming - Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::JavaSql::SQLException: Can not issue data manipulation statements with executeQuery().>}.
Following is the realted part of my configuration file
jdbc_streaming {
jdbc_driver_library => "${MYSQL_DRIVER_PATH}"
jdbc_driver_class => "${JDBC_DRIVER}"
jdbc_connection_string => "${JDBC_CONNECTION_STRING}"
jdbc_user => "${DB_USERNAME}"
jdbc_password => "${DB_PASSWORD}"
statement => "INSERT INTO rcyc_audit(job_id, process_name, description) VALUES(job_id, process_name, description);"
parameters => { "jobId" => "jobId"
"process" => "process"
"description" => "@metadata[RegionStarted]"
}
target => "audit_id"
}