Can someone help me and even provide me with the required nar file? Initially I wanted to reach the graph database via JDBC, but of course the corresponding Execute SQL processor doesn't understand Cypher.
I'm trying the same setup and can successfully query Neo4j using Cypher in the ExecuteGraphQuery when returning one node. However, when I query for multiple nodes I get an empty array back. For example, following this tutorial: First Steps with Cypher - graphgists
Running this query:
CREATE (you:Person {name:"You"})
RETURN you
Result:
[{"name":"You"}]
But a Cypher query with multiple nodes, gives an empty JSON array:
Query:
MATCH (you:Person {name:"You"})
CREATE (you)-[like:LIKE]->(neo:Database {name:"Neo4j" })
RETURN you,like,neo
Result: [{"you":{},"like":{},"neo":{}}]
Does anyone know how to solve this? we're using the graph bundle from 1.10
What database version of Neo4j are you using? I have found an issue with particular versions of the Neo4j database not working properly with my NiFi implementation.
That's good. Have you confirmed that the Neo4JCypherClientService controller service is Enabled?
I apologize for asking such basic questions. It is just that I have had this controller service sitting in an "Enabling" state without me realizing it.
Did anyone manage to ingest the FlowFile content? No matter if Parquet or json format.
I could well imagine that this could work with Load JSON. I can save the FlowFile content as an attribute if needed and reuse it directly in the Cypher statement.
I just want to save the intermediate step (save data locally and write it to Neo4j)
@tom1 can you run the query that I provided. I would like to see what the results are without the "you" filter. Also, can you provide a screenshot of the results in the LogAttribute processor on the success branch?
Thanks @yyyguy and @martin_ebert for information above. I have Apache Nifi 1.12 working against Neo4j 3.5.15.
However, when using Apache Nifi 1.12.0 I have problems connecting to the Neo4J version 4.0.4. The Neo4JCypherClientService throws a "org.neo4j.driver.v1.exceptions.ServiceUnavailableException. Connection to the database terminated"
You mentioned that you did have problems connecting with different versions of Neo4j. I was wondering if you had a chance to look at this and if there was a fix on the way.
Hi Kevin,
you talk about NiFi 1.11.x. 1.12 is not released yet. Anyways. I noticed the exact same error message. The neo4j nar files are not 4.0 compatible.