Steps :
We have created a Kafka topic called pgsqlcountry
which has all the streaming data from postgreSQL DB.
we created a stream called country
for processing the topic into a table.
stream was created successfully.
-
ksql> describe country;
Field | Type
------------------------------
ROWTIME | BIGINT
ROWKEY | VARCHAR(STRING)
ID | BIGINT
COUNTRY | VARCHAR(STRING)
CREATED_AT | BIGINT
UPDATED_AT | BIGINT
-
we run the SQL command "select * from country"
we get error as below
-
ksql> select * from country;
null | null | null | null | null | null
Exception in thread "ksql_query_1-8f1f36a7-e83c-476d-8561-98fe9ed8866b-StreamThread-2" java.lang.NullPointerException
Please find my stacktrace in this screenshot
When I had java.lang.NullPointerException
, I had incompatible versions of the ksqldb images.
There appears to be the cp
prefix images, eg
Don't mix and match with these images (try to stick with one group or the other):
You can run some other commands (eg SHOW PROPERTIES;
) and see if this also gives the same error of java.lang.NullPointerException
. If it does, it probably is the image.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.