Issue with open cypher package on spark
See original GitHub issueHello, I am trying to explore on DataFrameInputExample using “org.opencypher.morpheus.examples.DataFrameInputExample” and I am running into an issue at below step. I was using “morpheus-spark-cypher” jar file extract in my spark session
val result = graph.cypher("MATCH (n:Person) RETURN n.name")
Appreciate if i can get some help to resolve this and move forward. Error message is below.
Error Message:
scala> val result = graph.cypher("MATCH (n:Person) RETURN n.name")
scala.ScalaReflectionException: object org.opencypher.morpheus.impl.table.SparkTable not found.
at scala.reflect.internal.Mirrors$RootsBase.staticModule(Mirrors.scala:190)
at scala.reflect.internal.Mirrors$RootsBase.staticModule(Mirrors.scala:29)
at org.opencypher.morpheus.api.MorpheusSession$$typecreator1$1.apply(MorpheusSession.scala:55)
at scala.reflect.api.TypeTags$WeakTypeTagImpl.tpe$lzycompute(TypeTags.scala:237)
at scala.reflect.api.TypeTags$WeakTypeTagImpl.tpe(TypeTags.scala:237)
at org.opencypher.okapi.relational.impl.operators.RelationalOperator$$typecreator1$1.apply(RelationalOperator.scala:48)
at scala.reflect.api.TypeTags$WeakTypeTagImpl.tpe$lzycompute(TypeTags.scala:237)
at scala.reflect.api.TypeTags$WeakTypeTagImpl.tpe(TypeTags.scala:237)
at org.opencypher.okapi.trees.AbstractTreeNode.ct(AbstractTreeNode.scala:60)
at org.opencypher.okapi.trees.AbstractTreeNode.<init>(AbstractTreeNode.scala:69)
at org.opencypher.okapi.relational.impl.operators.RelationalOperator.<init>(RelationalOperator.scala:48)
at org.opencypher.okapi.relational.impl.operators.Start.<init>(RelationalOperator.scala:162)
at org.opencypher.okapi.relational.impl.planning.RelationalPlanner$.process(RelationalPlanner.scala:88)
at org.opencypher.okapi.relational.impl.planning.RelationalPlanner$.process(RelationalPlanner.scala:105)
at org.opencypher.okapi.relational.impl.planning.RelationalPlanner$.process(RelationalPlanner.scala:75)
at org.opencypher.okapi.relational.impl.planning.RelationalPlanner$.process(RelationalPlanner.scala:66)
at org.opencypher.okapi.relational.api.graph.RelationalCypherSession.$anonfun$planRelational$2(RelationalCypherSession.scala:251)
at org.opencypher.okapi.relational.api.graph.RelationalCypherSession.time(RelationalCypherSession.scala:114)
at org.opencypher.okapi.relational.api.graph.RelationalCypherSession.planRelational(RelationalCypherSession.scala:251)
at org.opencypher.okapi.relational.api.graph.RelationalCypherSession.planCypherQuery(RelationalCypherSession.scala:210)
at org.opencypher.okapi.relational.api.graph.RelationalCypherSession.processIR$1(RelationalCypherSession.scala:177)
at org.opencypher.okapi.relational.api.graph.RelationalCypherSession.cypherOnGraph(RelationalCypherSession.scala:198)
at org.opencypher.okapi.relational.api.graph.RelationalCypherGraph.cypher(RelationalCypherGraph.scala:106)
at org.opencypher.okapi.relational.api.graph.RelationalCypherGraph.cypher$(RelationalCypherGraph.scala:101)
at org.opencypher.okapi.relational.impl.graph.ScanGraph.cypher(ScanGraph.scala:43)
... 91 elided
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Problem in return graph query #671 - opencypher/morpheus
Hi, I'm trying to return graph in a simple query as below: val myGraph = graph.cypher( s"""MATCH (n:Disease {name:"acne"})<-[r]-(m:Disease) ...
Read more >Graph data analysis with Cypher and Spark SQL on Cloud ...
I'm using the stop_id, trip_id, and concatenating the two for the contains relationship. With the data frames ready, we can construct the node ......
Read more >Cypher Query Language - Developer Guides - Neo4j
Cypher is Neo4j's graph query language that lets you retrieve data from the graph. It is like SQL for graphs, and was inspired...
Read more >Geohash NEO4j Graph with Spark - Stack Overflow
So is there a way to make a connected ,oriented and merged geohash graph with spark ? This is my code : package...
Read more >Using Neo4j with PySpark on Databricks | by Lukas Böhres
Now, add the Neo4j Connector for Apache Spark by clicking the Install New button, select Maven and clicking Search Packages.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello @Mats-SX
Issue got fixed. Looks like this issue is with Spark version 3.0, It works fine with spark 2.4.2. Probably it needs rebuild with some additional libraries. Appreciate your response.
Hello @MarcianoAvihay , Thank you so much. Would you be able to push the updated version of Jar in your GitRepo please?