We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I can create a new graph in an interactive Gremlin shell with no problems:
vadasg$ ./titan-0.1.0/bin/gremlin.sh
\,,,/ (o o)
-----oOOo-(_)-oOOo----- gremlin> g = TitanFactory.open('/tmp/titantest1') ==>titangraph[local:/tmp/titantest1] gremlin> exit
However, when I do the same thing in a script that I run with Gremlin I get the following error:
vadasg$ echo "g = TitanFactory.open('/tmp/titantest2')" > titantest2.groovy vadasg$ ./titan-0.1.0/bin/gremlin.sh -e titantest2.groovy javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: TitanFactory for class: Script1
Marko gave me the workaround: import TitanFactory explicitly in the script:
echo "import com.thinkaurelius.titan.core.TitanFactory; g = TitanFactory.open('/tmp/titantest2')" > titantest2.groovy bin/gremlin.sh -e titantest2.groovy titan$ ls /tmp/titantest2/ 00000000.jdb je.info.0 je.info.0.lck je.lck
It would be good if this were fixed in Titan so the workaround is not needed.
The text was updated successfully, but these errors were encountered:
Fixed. Pushed to 0.2-SNAPSHOT.
titan$ echo "g = TitanFactory.open('/tmp/titantest2')" > titantest2.groovy titan$ bin/gremlin.sh -e titantest2.groovy titan$
Sorry, something went wrong.
No branches or pull requests
I can create a new graph in an interactive Gremlin shell with no problems:
vadasg$ ./titan-0.1.0/bin/gremlin.sh
-----oOOo-(_)-oOOo-----
gremlin> g = TitanFactory.open('/tmp/titantest1')
==>titangraph[local:/tmp/titantest1]
gremlin> exit
However, when I do the same thing in a script that I run with Gremlin I get the following error:
vadasg$ echo "g = TitanFactory.open('/tmp/titantest2')" > titantest2.groovy
vadasg$ ./titan-0.1.0/bin/gremlin.sh -e titantest2.groovy
javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: TitanFactory for class: Script1
Marko gave me the workaround: import TitanFactory explicitly in the script:
It would be good if this were fixed in Titan so the workaround is not needed.
The text was updated successfully, but these errors were encountered: