I havaing trouble with running logstash on redhat 7.6
Im using logstash 6.4.3 with Jdbc plugin
I have created startup file like
[Unit]
Description=logstash
[Service]
Type=simple
User=logstash
Group=logstash
# Load env vars from /etc/default/ and /etc/sysconfig/ if they exist.
# Prefixing the path with '-' makes it try to load, but if the file doesn't
# exist, it continues onward.
EnvironmentFile=-/etc/default/logstash
EnvironmentFile=-/etc/sysconfig/logstash
ExecStart=/usr/share/logstash/bin/logstash "--path.settings" "/etc/logstash" -f /usr/share/logstash/jdb-plugin.conf
Restart=always
WorkingDirectory=/
Nice=19
LimitNOFILE=16384
[Install]
WantedBy=multi-user.target
and my jdbc-plugin.conf is looking like
jdbc_driver_library => "/usr/share/logstash/postgresql.jar"
jdbc_driver_class => "org.postgresql.Driver"
I have downloaded postgresql.jar file
wget https://jdbc.postgresql.org/download/postgresql-42.2.5.jar -P /usr/share/logstash/ -O postgresql.jar
But after starting logstash Im getting
[2019-04-05T07:05:00,139][ERROR][logstash.inputs.jdbc ] Failed to load /usr/share/logstash/postgresql.jar {:exception=>#<TypeError: failed to coerce jdk.internal.loader.ClassLoaders$AppClassLoader to java.net.URLClassLoader>}
I have changed permissions to postgresql.jar to 777 and made it executaable but still Im getting such error