-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to run pulsar postgres jdbc sink #13151
Comments
is there any error in the log ? |
This is what I could find in logs: 10:01:31.534 [function-timer-thread-91-1] ERROR org.apache.pulsar.functions.runtime.process.ProcessRuntime - Health check failed for jdbc-postgres-sink-0 |
@SapnaGirdhani1 I think you can refer to this document for debugging https://pulsar.apache.org/docs/en/io-debug/#debug-in-localrun-mode |
The issue had no activity for 30 days, mark with Stale label. |
The issue had no activity for 30 days, mark with Stale label. |
Cannot reproduce on master:
|
Describe the bug
I am using Docker to create pulsar_postgres_jdbc_sink but it is not running. Status shows running as false.
To Reproduce
I followed this document : https://pulsar.apache.org/docs/en/io-quickstart/#create-a-jdbc-sink to create jdbc sink
I used below command to create a sink :
$ bin/pulsar-admin sinks create
--archive ./connectors/pulsar-io-jdbc-postgres-2.8.1.nar
--inputs my-topic
--name jdbc-postgres-sink
--sink-config-file ./connectors/pulsar-postgres-jdbc-sink.yaml
--parallelism 1
This is my yaml (pulsar-postgres-jdbc-sink.yaml) file content :
tenant: "public"
namespace: "default"
name: "jdbc-postgres-sink"
topicName: "persistent://public/default/my-topic"
sinkType: "jdbc-postgres"
configs:
userName: "postgres"
password: "password"
jdbcUrl: "jdbc:postgresql://localhost:5432/pulsar_postgres_jdbc_sink"
tableName: "pulsar_postgres_jdbc_sink"
After creation of sink , I didn't see any data inside PostgreSQL database and the sink running status is "false" (screenshot attached)
Expected behavior
pulsar_postgres_jdbc_sink should be running
Screenshots
Desktop (please complete the following information):
Additional context
I've discussed this issue on official pulsar slack channel and got to know that others are also facing same challenge, even on Macbook too. It is observed that one can not run postgresql and pulsar and docker and chrome without running out of memory. Please help on the same. Thanks!
The text was updated successfully, but these errors were encountered: