以下是我的配置 -
input {
jdbc {
jdbc_driver_class => "org.apache.derby.jdbc.EmbeddedDriver"
jdbc_connection_string => "jdbc:derby://localhost:3306/test"
jdbc_user => "root"
jdbc_password => "password"
statement => "select * from user"
}
}
filter {
#csv {
#columns => ["cdatetime", "address", "district", "beat", "grid", "crimedescr", "ucr_ncic_code",
# "latitude","longitude"]
#separator => ","
}
#}
output {
elasticsearch { host => localhost protocol => http index => test user => pavan password => password }
stdout { codec => rubydebug }
}
当我运行配置文件时,我收到以下错误 -
The error reported is:
org.apache.derby.jdbc.EmbeddedDriver not loaded
谁能帮我解决它?我当前的 Java 版本是 -
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
任何有关 JDBC 输入配置的参考链接将不胜感激。