【问题标题】:can we use solr as persistent store for apache ignite?我们可以使用 solr 作为 apache ignite 的持久存储吗?
【发布时间】:2017-03-20 11:38:38
【问题描述】:

我一直在努力集成 solr 和 apache ignite .....而我正在尝试运行程序 write org.apache.ignite.IgniteCheckedException 类:无法为缓存启用后写(未提供写入器或存储) 显示此错误 CacheConfiguration textMetaConfig = new CacheConfiguration("textMetaCache");

    textMetaConfig.setWriteThrough(true);
    textMetaConfig.setReadThrough(true);
    textMetaConfig.setAtomicityMode(CacheAtomicityMode.ATOMIC);
    textMetaConfig.setWriteBehindEnabled(true);
    textMetaConfig.setWriteBehindFlushSize(40960);
    textMetaConfig.setWriteBehindFlushFrequency(1);
    textMetaConfig.setWriteBehindFlushThreadCount(5);
    textMetaConfig.setCacheMode(CacheMode.PARTITIONED);
    textMetaConfig.setIndexedTypes(String.class, TextMeta.class);

这就是我配置缓存的方式

【问题讨论】:

    标签: solr ignite


    【解决方案1】:

    您可以实现CacheStore 接口以与任何类型的持久性存储集成。开箱即用的 Ignite 提供了 Cassandra 存储实现和 JDBC 存储实现,涵盖了大多数常规关系数据库。对于其他任何事情,您都必须创建自己的实现。在任何情况下,必须通过CacheConfiguration.setCacheStoreFactory(..) 配置属性配置存储。详情请参考本页:https://apacheignite.readme.io/docs/persistent-store

    【讨论】:

      猜你喜欢
      • 2018-07-04
      • 2023-03-19
      • 1970-01-01
      • 2022-01-15
      • 1970-01-01
      • 1970-01-01
      • 2019-02-02
      • 1970-01-01
      • 2018-08-23
      相关资源
      最近更新 更多