下面是我的配置 -
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输入配置的参考链接都将受到赞赏。