neo4j-streams: Unrecognized Kafka Sink settings
Guidelines
I tried to install the neo4j-streams 4.1.0 to publish data from a Kafka topic to Neo4j database. I copied the .jar file to the /plugins repository and I modified the neo4j conf file to add the appropriate parameters. When I restart the neo4j database I have the following WARN :
2021-11-08 16:34:20.967+0000 WARN Unrecognized setting. No declared setting with name: streams.sink.topic.cypher.TEST-TOPIC
2021-11-08 16:34:20.968+0000 WARN Unrecognized setting. No declared setting with name: kafka.ssl.truststore.location
2021-11-08 16:34:20.968+0000 WARN Unrecognized setting. No declared setting with name: streams.sink.enabled
2021-11-08 16:34:20.968+0000 WARN Unrecognized setting. No declared setting with name: kafka.bootstrap.servers
2021-11-08 16:34:20.968+0000 WARN Unrecognized setting. No declared setting with name: neo4j.database
2021-11-08 16:34:20.968+0000 WARN Unrecognized setting. No declared setting with name: kafka.ssl.keystore.location
2021-11-08 16:34:20.968+0000 WARN Unrecognized setting. No declared setting with name: kafka.group.id
2021-11-08 16:34:20.968+0000 WARN Unrecognized setting. No declared setting with name: kafka.security.protocol
2021-11-08 16:34:20.968+0000 WARN Unrecognized setting. No declared setting with name: kafka.ssl.keystore.password
It seems that the paramters related to neo4j streams connector are not recognized by the neo4j database.
I tried to push the following file to the noe4j database :
[{
"id": 42,
"properties": {
"title": "Answer to anyting",
"description": "It depends."
},
{
"id": 43,
"properties": {
"title": "Answer to anyting",
"description": "It depends."
}
}],
I used this cypher tempalte :
streams.sink.topic.cypher.TEST-TOPIC=MERGE (n:Label {id: event.id}) ON CREATE SET n += event.properties
I use the SSL security protocol to connect to Kafka.
Versions
- OS: RedHat 8.2 (Ootpa)
- Neo4j: 4.2.3
- Neo4j-Streams: 4.1.0
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 32 (16 by maintainers)
@mroiter-larus
It’s working fine on my laptop, thanks a lor for your help. I still have an SSL exception on the other server, but I’ll look for it.
@aissaelouafi
I’m sorry, I just assumed that you already had your configuration in the
streams.conf
file. From Neo4j Streams 4.0.7 all the Neo4j Streams and Kafka settings has to be moved fromneo4j.conf
tostreams.conf
(You have to create this file manually). This is reported in the official Neo4j Streams documentation here.About your questions:
ByteArrayDeserializer
andKafkaAvroDeserializer
. (Please see here)kafka-console-producer
with the following:Then i send events one by one in json format as they were string, for example:
But if you want to send events from file you can collect the json string events such as the one above, and placing them one per line. I would suggest not to use
--broker-list
because it is deprecated (use--bootstrap-server
option instead) 3. If you want to write/read data into/from a non-default Neo4j database you have to manually create it first.Hope this helps.
Cheers,
Mauro