-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not initialize class org.opencypher. morpheus.impl.MorpheusFunctions #948
Comments
Looking at this further, it seems to be a problem with some dependency not being loaded. I'm running the program from the Spark Scala shell as folllows:
The output indicates that Morpheus is getting installed and I can use classes like MorpheusNodeTable without any problem. However, doing "result.records" throws this initialization error:
I am able to do |
Hi ... i suggest not using the maven package, and instead using the FatJar latest release from this repository / building this repo ( i initially started with the fat jar and had no issues , and later switched to building myself - for adding spark 3 and solving some issues / bugs iv'e encountered) |
Okay, found the problem. The problem is with line 53 of the MorpheusFunctions initalizer: Start the shell with
to workaround this problem. Another way to set this flag is to do:
|
The following code, based on https://github.com/opencypher/morpheus/blob/0.4.2/morpheus-examples/src/main/scala/org/opencypher/morpheus/examples/CypherSQLRoundtripExample.scala :
gives me this error:
error: value asMorpheus is not a member of result.Records
The text was updated successfully, but these errors were encountered: