当我厌倦了删除索引时,我在ManagementSystem中的userConfig中键入了错误的GLOBAL_OFFLINE设置,我错误地将“index.search.backend”与目录字符串一起输入......
当我试图打开这个janusgraph时,打印出来如下:
WARN org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration
Local setting index.search.backend=lucene (Type: GLOBAL_OFFLINE) is overridden by globally managed value (/data/lucene). Use the ManagementSystem interface instead of the local configuration to control this setting.
INFO org.janusgraph.diskstorage.Backend - Configuring index [search]
Could not find implementation class: /data/lucene
我想知道我是否不能在后端放下这个表并解决这个问题!很多!
我想我已经解决了这个问题! 我只是使用KCVS后端,找出GraphDatabaseConfiguration的源代码;
我试过让KCVSConfig使用以下代码:
PropertiesConfiguration configuration = new PropertiesConfiguration(GRAPH_PROPERTIES);
ReadConfiguration localConfig = new CommonsConfiguration(configuration);
BasicConfiguration localBasicConfiguration = new BasicConfiguration(ROOT_NS,localConfig, BasicConfiguration.Restriction.NONE);
KeyColumnValueStoreManager storeManager = Backend.getStorageManager(localBasicConfiguration);
KCVSConfiguration KCVSConfig =Backend.getStandaloneGlobalConfiguration(storeManager,localBasicConfiguration);
只需使用KCVSConfiguration删除所有索引配置!