Janusgraph 如何处理 global_offline 配置错误

Janusgraph how to deal with the global_offline misconfiguration

当我厌倦了删除索引时,我在 userConfig 中输入了错误的 GLOBAL_OFFLINE 设置]ManagementSystem,我用目录字符串输入了 "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

我想知道我是否可以 不在后端删除这个 table 并解决这个问题! 非常感谢!

我想我已经解决了这个问题!
我只是使用 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 即可删除所有索引配置!