titan with es and cassandra - java.lang.IllegalArgumentException: Index is unknown or not configured: search -


i using es-cassandra. trying load default graph below error. how fix? assming have create es index? if index?

curl -xput 'http://localhost:9200/what_index???/'    gremlin> g = graphofthegodsfactory.create('/tmp/titan')      ==>titangraph[local:/tmp/titan] gremlin> g = titanfactory.open('conf/titan-cassandra-es.properties') ==>titangraph[local:/home/ubuntu/conf/titan-cassandra-es.properties] gremlin> graphofthegodsfactory.load(g) index unknown or not configured: search display stack trace? [yn] y    java.lang.illegalargumentexception: index unknown or not configured: search     @ com.google.common.base.preconditions.checkargument(preconditions.java:119)     @ com.thinkaurelius.titan.graphdb.database.indexserializer.supports(indexserializer.java:73)     @ com.thinkaurelius.titan.graphdb.types.standardkeymaker.make(standardkeymaker.java:149)     @ com.thinkaurelius.titan.example.graphofthegodsfactory.load(graphofthegodsfactory.java:52)     @ com.thinkaurelius.titan.example.graphofthegodsfactory$load.call(unknown source)     @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcall(callsitearray.java:42)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:108)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:116)     @ groovysh_evaluate.run(groovysh_evaluate:56)     @ groovysh_evaluate$run.call(unknown source)     @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcall(callsitearray.java:42)     @ groovysh_evaluate$run.call(unknown source)     @ org.codehaus.groovy.tools.shell.interpreter.evaluate(interpreter.groovy:67)     @ org.codehaus.groovy.tools.shell.interpreter$evaluate.call(unknown source)     @ org.codehaus.groovy.tools.shell.groovysh.execute(groovysh.groovy:152)     @ org.codehaus.groovy.tools.shell.shell.leftshift(shell.groovy:114)     @ org.codehaus.groovy.tools.shell.shell$leftshift$0.call(unknown source)     @ org.codehaus.groovy.tools.shell.shellrunner.work(shellrunner.groovy:88)     @ org.codehaus.groovy.tools.shell.interactiveshellrunner.super$2$work(interactiveshellrunner.groovy)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ org.codehaus.groovy.reflection.cachedmethod.invoke(cachedmethod.java:90)     @ groovy.lang.metamethod.domethodinvoke(metamethod.java:233)     @ groovy.lang.metaclassimpl.invokemethod(metaclassimpl.java:1079)     @ org.codehaus.groovy.runtime.scriptbytecodeadapter.invokemethodonsupern(scriptbytecodeadapter.java:128)     @ org.codehaus.groovy.runtime.scriptbytecodeadapter.invokemethodonsuper0(scriptbytecodeadapter.java:148)     @ org.codehaus.groovy.tools.shell.interactiveshellrunner.work(interactiveshellrunner.groovy:100)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ org.codehaus.groovy.runtime.callsite.pogometamethodsite$pogocachedmethodsitenounwrapnocoerce.invoke(pogometamethodsite.java:272)     @ org.codehaus.groovy.runtime.callsite.pogometamethodsite.callcurrent(pogometamethodsite.java:52)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.callcurrent(abstractcallsite.java:137)     @ org.codehaus.groovy.tools.shell.shellrunner.run(shellrunner.groovy:57)     @ org.codehaus.groovy.tools.shell.interactiveshellrunner.super$2$run(interactiveshellrunner.groovy)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ org.codehaus.groovy.reflection.cachedmethod.invoke(cachedmethod.java:90)     @ groovy.lang.metamethod.domethodinvoke(metamethod.java:233)     @ groovy.lang.metaclassimpl.invokemethod(metaclassimpl.java:1079)     @ org.codehaus.groovy.runtime.scriptbytecodeadapter.invokemethodonsupern(scriptbytecodeadapter.java:128)     @ org.codehaus.groovy.runtime.scriptbytecodeadapter.invokemethodonsuper0(scriptbytecodeadapter.java:148)     @ org.codehaus.groovy.tools.shell.interactiveshellrunner.run(interactiveshellrunner.groovy:66)     @ com.thinkaurelius.titan.tinkerpop.gremlin.console.<init>(console.java:57)     @ com.thinkaurelius.titan.tinkerpop.gremlin.console.<init>(console.java:70)     @ com.thinkaurelius.titan.tinkerpop.gremlin.console.main(console.java:96) 

not sure i'm following you're trying do. you've initialized g

g = graphofthegodsfactory.create('/tmp/titan')  

with you've create graph of gods berkeleydb. why re-initializing cassandra?

if first start instance of cassandra, execute:

gremlin> g = titanfactory.open('conf/titan-cassandra-es.properties') ==>titangraph[cassandrathrift:127.0.0.1] gremlin> graphofthegodsfactory.load(g) ==>null 

note difference compared gremlin session:

gremlin> g = titanfactory.open('conf/titan-cassandra-es.properties') ==>titangraph[local:/home/ubuntu/conf/titan-cassandra-es.properties] 

it looks it's not finding configuration file @ conf/titan-cassandra-es.properties , creating berkeleydb instance. find directory at: /home/ubuntu/conf/titan-cassandra-es.properties berkeleydb data files in it. check location of actual conf/titan-cassandra-es.properties , make sure there.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -