Unable to create a JDBC sink
- Dominant language
- Java
- Stars
- 15.3k
- Forks
- 3.8k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 160
Description
Hi
Iam unable to create jdbc sink connector . Followed the below document
[https://pulsar.apache.org/docs/en/io-quickstart/#create-a-jdbc-sink]
While running this command in terminal , i got an error with no such file or directory for connectors folder .
Error :
root@11c5b3431963:/pulsar# bin/pulsar-admin sinks create --archive ./connectors/pulsar-io-jdbc-postgres-2.8.1.nar --inputs pulsar-topic --name jdbc-postgres-sink --sink-config-file ./connectors/pulsar-postgres-jdbc-sink.yaml --parallelism 1
./connectors/pulsar-postgres-jdbc-sink.yaml (No such file or directory)
Submit a Pulsar IO sink connector to run in a Pulsar cluster
Usage: create [options]
Options:
-a, --archive
But pulsar-postgres-jdbc-sink.yaml is there in connectors folder which in inside pulsar folder . Not sure why iam getting this error .
Please help on the same . Thanks !!!
Contributor guide
Research direction
Start with the JDBC sink quickstart linked in the issue and inspect the `pulsar-admin sinks create` command, especially the `./connectors` archive and sink-config paths. Verify the container's working directory and whether both referenced files exist at those relative locations; done means the command can create the sink without the reported file-not-found error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, postgresql
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100