Get error "No such property: TitanFactory for class: groovysh_evaluate" #34
Comments
Ran into a similar problem today after following the article on Graph Databases using Dynamo DB. Did you ever find a solution? |
Hi @joshblack Thanks for your comment - what OS are you running this on? Thanks Nick |
Hi @NickCorbett! I'm running this on OSX. |
hi @joshblack It worked for me. You should clone project from here https://github.com/awslabs/dynamodb-titan-storage-backend/tree/1.0.0. I downloaded gremlin server by using shell file in "src/test/resources/install-gremlin-server.sh" Then i started gremlin console in "bin/gremlin.sh" from gremlin server folder just downloaded . It will load all extension libs and this problem is solved. |
Hi @joshblack - can you confirm that @itman85's process worked for you? @itman85 - thanks for taking the time to respond to this. Nick |
I am getting same error in eclipse on Windows 10 laptop. |
On Macbook I am getting following err. Let me know how to proceed. Thx gremlin> g = TitanFactory.open(conf) To address above issue, if I run src/test/resources/install-gremlin-server.sh [INFO] Installing /Users/gto624/dev/grdb/dynamodb-titan-storage-backend/pom.xml to /Users/gto624/.m2/repository/com/amazonaws/dynamodb-titan100-storage-backend/1.0.0/dynamodb-titan100-storage-backend-1.0.0.pom unzip: cannot find or open titan-1.0.0-hadoop1.zip, titan-1.0.0-hadoop1.zip.zip or titan-1.0.0-hadoop1.zip.ZIP. Change directories to the server root: Start Gremlin Server against us-east-1 with the following command (uses the default credential provider chain): Start Gremlin Server against DynamoDB Local with the following command (remember to start DynamoDB Local first with mvn test -Pstart-dynamodb-local): Connect to Gremlin Server using the Gremlin console: Connect to the graph on Gremlin Server: zip error: Nothing to do! (try: zip -rq dynamodb-titan100-storage-backend-1.0.0-hadoop1.zip . -i dynamodb-titan100-storage-backend-1.0.0-hadoop1) |
@pbhatIIT you got this error because libraries are not loaded. You can refer my comment above. You don't need to install gremlin server if you only want to use gremlin console. |
@itman85 Hi, thank you for your short guide. I was able to enter this to the gremlin console. graph = TitanFactory.open(conf) But executing the next line gives the following error. Changing makeLabel() to makeEdgeLabel() produces a different error. graph.makeLabel("is").oneToOne().make() No signature of method: com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.makeLabel() is applicable for argument types: (java.lang.String) values: [is] This is on macOS Sierra with JDK 8 (build 1.8.0_101-b13) and cloned repo from https://github.com/awslabs/dynamodb-titan-storage-backend. |
Hi @kometen The post was written when v0.5.4 of the DynamoDB Titan Storage Backend was the most recent version - if you want to get the demo up and running quickly, then the easiest way is to clone from that branch - for the command in step 4 of the instructions use:
If you want to run with v1.0.0 then you will need to follow the instructions here to install and run a Titan Server on your local machine. Once you've made a remote connection (step 9 in the instructions in the above documentation), you can create the conf object and load the data (step 9 in the instructions on the blog). HTH Nick |
Hi @NickCorbett. Thank you for your reply. I also found the newer instructions you link to after looking for solutions and was able to perform the queries in the examples. My next step is to try to add own data that I can experiment with. :-) regards |
i follow the instruction and got error as below
gremlin> conf = new BaseConfiguration()
==>org.apache.commons.configuration.BaseConfiguration@70fab835
gremlin> conf.setProperty("storage.backend", "com.amazon.titan.diskstorage.dynamodb.DynamoDBStoreManager")
==>null
gremlin> conf.setProperty("storage.dynamodb.client.endpoint", "http://localhost:4567")
==>null
gremlin> conf.setProperty("index.search.backend", "elasticsearch")
==>null
gremlin> conf.setProperty("index.search.directory", "/tmp/searchindex")
==>null
gremlin> conf.setProperty("index.search.elasticsearch.client-only", "false")
==>null
gremlin> conf.setProperty("index.search.elasticsearch.local-mode", "true")
==>null
gremlin> conf.setProperty("index.search.elasticsearch.inteface", "NODE")
==>null
gremlin> g = TitanFactory.open(conf)
No such property: TitanFactory for class: groovysh_evaluate
How can i solve this problem? Thank you.
The text was updated successfully, but these errors were encountered: