Comments (2)
Seems to be related to the schema Postgres is using which is weird I'm using the same schema as the getting started example for Pulsar IO.
org.postgresql.util.PSQLException: ERROR: null value in column "id" of relation "pulsar_postgres_jdbc_sink" violates not-null constraint
Detail: Failing row contains (null, null).
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2676) ~[postgresql-42.5.1.jar:42.5.1]
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2366) ~[postgresql-42.5.1.jar:42.5.1]
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:356) ~[postgresql-42.5.1.jar:42.5.1]
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:496) ~[postgresql-42.5.1.jar:42.5.1]
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:413) ~[postgresql-42.5.1.jar:42.5.1]
at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:190) ~[postgresql-42.5.1.jar:42.5.1]
at org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:177) ~[postgresql-42.5.1.jar:42.5.1]
at org.apache.pulsar.io.jdbc.JdbcAbstractSink.flush(JdbcAbstractSink.java:289) ~[pulsar-io-jdbc-core-3.2.2.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:840) ~[?:?]
from pulsar.
Looks I was trying to persist {"id" 1, "name" "abcdefg"}
as opposed to just {"name" "abcdefg"}
as expected by the sink connector.
from pulsar.
Related Issues (20)
- [pulsar] pulsar standalone to have embedded zookeeper HOT 1
- Add topic name to emitted error messages
- [Bug] pulsar standalaone won't start : NotEnoughBookiesException: Not enough non-faulty bookies available HOT 1
- [improve] Parse the XFF header to get real client IP when behind reverse proxy HOT 1
- [Bug] ClassNotFoundException error occurred when using Function development in the kubernetes cluster HOT 1
- Topic creation not working properly HOT 21
- Consumer able to receive message which is not matching the regex pattern HOT 9
- [Bug] Broker is not blocking the dispatch even after reaching max unack-message limit per subscription
- [Bug] Cannot build on Apple Arm HOT 1
- Cleanup synchronous call in resources component HOT 1
- [Bug] broker healthcheck ran into loop after decommissioned a cluster of bookies HOT 3
- [Bug] Broker could take 30+ seconds to close with extensible load manager
- [Bug] Reader stuck after call hasMessageAvailable when enable replicateSubscriptionState
- [Bug] /metrics gzip compression sporadically fails with error 500 caused by java.nio.BufferOverflowException
- [Tests][Bug] There are multiple memory leaks that cause Pulsar CI to fail with OOME HOT 2
- [Bug] parseMessageMetadata error when broker entry metadata enable with high loading HOT 67
- [Bug] Pulsar concurrent containers has concurrency issues HOT 1
- [Bug] ReadonlyManagedLedger initialization does not fill in the properties
- [Bug] "Topic does not have schema to check" on topic-level geo replication
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulsar.