apache/nifi Docker and postgresql Driver

Asked

Viewed 216 times

3

I pulled apache/nifi on the Docker hub. I start the container, but I can’t configure the connection with postgres, It triggers an exception that cannot load the Database Driver.

I copied the file . postgresql driver jar into the container, put it in several directories and still can’t hit.

Someone’s had that problem before?

  • How and where do you copy the driver to the container? How is the configuration of controller service? May include the stack trace of error?

  • Bruno, I raised the container with 'Docker run --name nifi -p 9090:9090 -d -e NIFI_WEB_HTTP_PORT='9090' -network benchdocker_default --link inttegra apache/nifi:Latest'

  • As for the file path, here I do not use this file://, to stack trace when trying to enable the service must be saying that it did not find the file, that it is not valid, etc. As an example, here I use so: /opt/nifi/nifi-1.6.0/custom-libs/postgresql-42.2.2.jar. When to include the stack trace I can tell you for sure, can be user permission too.

  • Thanks Bruno, it was some typo maybe, today already worked.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.