ilyakard / pacer-titan

Pacer adapter for Titan distributed graph DB
Other
5 stars 2 forks source link

Does this work with Titan 1.0.0 #3

Open bgr11n opened 8 years ago

bgr11n commented 8 years ago

Hello!

I'm trying this gem with pacer and titan db version 1.0.0 and I'm having some issues, I don't know if I'm doing it properly, here is my code:

Dir["/home/user/titan-1.0.0/lib/*.jar"].each {|file| require file }

require 'pacer'
require 'pacer-titan'

graph = Pacer.titan("/home/user/titan-1.0.0/conf/titan-cassandra-es.properties")
puts graph.query{ has('name', 'Keanu Reeves') }.out(:ACTED_IN).inspect

And that error I receive:

com/tinkerpop/pipes/transform/VerticesVerticesPipe.java:45:in `processNextStart': java.lang.ClassCastException: com.thinkaurelius.titan.graphdb.vertices.CacheVertex cannot be cast to com.tinkerpop.blueprints.Vertex
    from com/tinkerpop/pipes/transform/VerticesVerticesPipe.java:14:in `processNextStart'
    from com/tinkerpop/pipes/AbstractPipe.java:89:in `next'
    from java/lang/reflect/Method.java:498:in `invoke'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer/pipe/wrapping_pipe.rb:42:in `processNextStart'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer/pipe/wrapping_pipe.rb:42:in `processNextStart'
    from com/tinkerpop/pipes/AbstractPipe.java:89:in `next'
    from java/lang/reflect/Method.java:498:in `invoke'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer/core/route.rb:130:in `each'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer/core/route.rb:130:in `each'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer/core/route.rb:315:in `inspect'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer/core/route.rb:315:in `inspect'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer.rb:123:in `hide_route_elements'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer.rb:123:in `hide_route_elements'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer/core/route.rb:312:in `inspect'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer/core/route.rb:312:in `inspect'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer/graph/graph_transactions_mixin.rb:69:in `read_transaction'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer/graph/graph_transactions_mixin.rb:69:in `read_transaction'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer/core/route.rb:633:in `graph_read_transaction'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer/core/route.rb:633:in `graph_read_transaction'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer/core/route.rb:311:in `inspect'
    from /home/user/.rvm/gems/jruby-1.7.24/gems/pacer-2.0.24-java/lib/pacer/core/route.rb:311:in `inspect'
    from titan.rb:9:in `(root)'
    from titan.rb:9:in `(root)'
    from titan.rb:9:in `(root)'
    from titan.rb:9:in `(root)'

Am I doing something wrong? Thanks!