Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

MarvelFactory.load () No such property: graph for class: Script2 #63

Closed
getxperched opened this issue Feb 23, 2017 · 9 comments
Closed

Comments

@getxperched
Copy link

I am attempting to follow the steps in Installing and Running the DynamoDB Storage Backend for Titan [@ http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.TitanDB.DownloadingAndRunning.html]

At Step 2: I initially ran into trouble using an AWS Amazon Linux instance because it did not have JDK 1.8 loaded. I resolved this issue by cloning and installing Oracle Java Standard Edition 1.8.121: $ javac -version is now javac 1.8.0_121.

This allows me to proceed to Step 10: first 100 lines of the Marvel Universe Social Graph. At Step 10, I attempted :> com.amazon.titan.example.MarvelGraphFactory.load(graph, 100, false) from the gremlin> shell.

I cannot complete Step 10: Gremlin error reads: No such property: graph for class: Script2

Any idea why this is happening?

Thank you, David

@getxperched
Copy link
Author

Any help would be very welcome.

@2ECC71
Copy link

2ECC71 commented Mar 1, 2017

I have the same problem. Help would be much appreciated.
Im on macOS 10.12.3

Stack trace:

gremlin> com.amazon.titan.example.MarvelGraphFactory.load(graph, 100, false) No such property: graph for class: groovysh_evaluate Display stack trace? [yN] y groovy.lang.MissingPropertyException: No such property: graph for class: groovysh_evaluate at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:51) at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:304) at groovysh_evaluate.run(groovysh_evaluate:3) at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215) at org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:69) at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:185) at org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:119) at org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:94) at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$work(InteractiveShellRunner.groovy) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:130) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:150) at org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:123) at org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:58) at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$run(InteractiveShellRunner.groovy) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:130) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:150) at org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:82) at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215) at org.apache.tinkerpop.gremlin.console.Console.<init>(Console.groovy:144) at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215) at org.apache.tinkerpop.gremlin.console.Console.main(Console.groovy:303)

@lukeorland
Copy link

I've experienced this issue a number of times with a local DynamoDB instance, where it randomly gets into this state. Upon deleting and recreating the local DynamoDB instance's data storage, Titan starts working correctly again.

Did anyone experience this problem using the production AWS DynamoDB service?

@2ECC71
Copy link

2ECC71 commented Mar 3, 2017

Deleting and reinstalling does not work for me.
The error gets thrown already at step 7: (I first noticed it in step 10)
bin/gremlin-server.sh ${PWD}/conf/gremlin-server/gremlin-server-local.yaml

"
0 [main] INFO org.apache.tinkerpop.gremlin.server.GremlinServer -
,,,/
(o o)
-----oOOo-(3)-oOOo-----

222 [main] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - Configuring Gremlin Server from /Users/loxtank/opt/bacondb/dynamodb-titan-storage-backend/server/dynamodb-titan100-storage-backend-1.0.0-hadoop1/conf/gremlin-server/gremlin-server-local.yaml
3408 [main] WARN org.apache.tinkerpop.gremlin.server.GremlinServer - Graph [graph] configured at [conf/gremlin-server/dynamodb-local.properties] could not be instantiated and will not be available in Gremlin Server. GraphFactory message: GraphFactory could not instantiate this Graph implementation [class com.thinkaurelius.titan.core.TitanFactory]
java.lang.RuntimeException: GraphFactory could not instantiate this Graph implementation [class com.thinkaurelius.titan.core.TitanFactory]
"

@amcp
Copy link
Contributor

amcp commented Mar 3, 2017

Thank you for the detailed steps to reproduce. I will look into improving the documentation and investigate if there are any dependency fixes needed on our side.

@getxperched
Copy link
Author

In light of information provided by loxtank and luckorland, I have been using PuTTY to access AWS Amazon Linux from Window 8.1. I have been using the webservice. I did not install dynamoDB locally.

Additionally, I ONLY updated the JDK and followed the directions. 'Installing and Running the DynamoDB Storage Backend for Titan' is the first and only thing I have attempted on the AWS Amazon Linux instance.

If there are prerequisites not included in the 'Installing and Running the DynamoDB Storage Backend for Titan,' e.g. dynamoDB install or configuration, I have not executed the prerequisites.

@amcp
Copy link
Contributor

amcp commented Apr 19, 2017

I am not able to reproduce this issue. I will however add a step to the instructions to install jdk8. Please re-open if you run into this again.

@amcp amcp closed this as completed Apr 19, 2017
@czheo
Copy link

czheo commented Jul 24, 2017

Titan was forked to JanusGraph. Use this to load the example data:

:> com.amazon.janusgraph.example.MarvelGraphFactory.load(graph, 100, false)

instead of

:> com.amazon.titan.example.MarvelGraphFactory.load(graph, 100, false)

@vijayb2017
Copy link

Tried.. :> com.amazon.janusgraph.example.MarvelGraphFactory.load(graph, 100, false) and got following error..(did not cancel request manually)

Script evaluation exceeded the configured 'scriptEvaluationTimeout' threshold of 30000 ms or evaluation was otherwise cancelled directly for request

Get the same error even when I try..:> com.amazon.janusgraph.example.MarvelGraphFactory.load(graph, 1, false)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants