unable to use lucene with cassandra


shrikant pachauri <sk.pa...@...>
 

Hi 

I am trying to use the lucene as the index backend but I am unable to use it.

Here is what I am trying to do 

graph = JanusGraphFactory.open('conf/janusgraph-cassandra.properties')
 g = graph.traversal()
 
mgmt= graph.openManagement()
open = mgmt.getOpenInstances()      // all active instances
for (String inst : open) 
      { 
if (!inst.endsWith("(current)"))         //close instance except current 
mgmt.forceCloseInstance(inst)  
       }
mgmt.commit()
    
mgmt = graph.openManagement()
mgmt.set('index.search.backend', 'lucene')
mgmt.commit()

now when I am trying to call openMangement again it is giving me error : Unable to re-open management log

does anybody has an insights about he problem






Robert Dale <rob...@...>
 

It looks like 'index.*.backend' can be configured only via properties files since the configuration option is GLOBAL_OFFLINE - can only be changed for the entire database cluster at once when all instances are shut down. Additionally for Lucene, I believe it is also required to set 'index.search.directory'.

See also
http://docs.janusgraph.org/latest/lucene.html
http://docs.janusgraph.org/latest/config-ref.html#_index


Robert Dale

On Thu, Nov 23, 2017 at 9:16 AM, shrikant pachauri <sk.pa...@...> wrote:
Hi 

I am trying to use the lucene as the index backend but I am unable to use it.

Here is what I am trying to do 

graph = JanusGraphFactory.open('conf/janusgraph-cassandra.properties')
 g = graph.traversal()
 
mgmt= graph.openManagement()
open = mgmt.getOpenInstances()      // all active instances
for (String inst : open) 
      { 
if (!inst.endsWith("(current)"))         //close instance except current 
mgmt.forceCloseInstance(inst)  
       }
mgmt.commit()
    
mgmt = graph.openManagement()
mgmt.set('index.search.backend', 'lucene')
mgmt.commit()

now when I am trying to call openMangement again it is giving me error : Unable to re-open management log

does anybody has an insights about he problem





--
You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/04f004a5-f604-4f0a-bf2f-f81eb770742c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Robert Dale <rob...@...>
 

Correction, GLOBAL_OFFLINE can be changed in other ways.  See http://docs.janusgraph.org/latest/configuration.html#_changing_offline_options


Robert Dale

On Fri, Nov 24, 2017 at 3:57 PM, Robert Dale <rob...@...> wrote:
It looks like 'index.*.backend' can be configured only via properties files since the configuration option is GLOBAL_OFFLINE - can only be changed for the entire database cluster at once when all instances are shut down. Additionally for Lucene, I believe it is also required to set 'index.search.directory'.

See also
http://docs.janusgraph.org/latest/lucene.html
http://docs.janusgraph.org/latest/config-ref.html#_index


Robert Dale

On Thu, Nov 23, 2017 at 9:16 AM, shrikant pachauri <sk.pa...@...> wrote:
Hi 

I am trying to use the lucene as the index backend but I am unable to use it.

Here is what I am trying to do 

graph = JanusGraphFactory.open('conf/janusgraph-cassandra.properties')
 g = graph.traversal()
 
mgmt= graph.openManagement()
open = mgmt.getOpenInstances()      // all active instances
for (String inst : open) 
      { 
if (!inst.endsWith("(current)"))         //close instance except current 
mgmt.forceCloseInstance(inst)  
       }
mgmt.commit()
    
mgmt = graph.openManagement()
mgmt.set('index.search.backend', 'lucene')
mgmt.commit()

now when I am trying to call openMangement again it is giving me error : Unable to re-open management log

does anybody has an insights about he problem





--
You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/04f004a5-f604-4f0a-bf2f-f81eb770742c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.