2016-11-07 47 views
0

我一直在努力整合solr和apache ignite .....而我試圖運行該程序寫 類org.apache.ignite.IgniteCheckedException:無法啓用寫入後(編寫器或存儲未提供)爲緩存 此錯誤顯示爲 CacheConfiguration textMetaConfig = new CacheConfiguration <>(「textMetaCache」);我們可以使用solr作爲apache的點燃持久存儲嗎?

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); 

這是多麼我已經配置緩存

回答

0

您可以實現CacheStore接口與任何類型的持久性存儲的整合。開箱即用的Ignite提供Cassandra存儲實施和JDBC存儲實施,涵蓋大部分常規關係數據庫。對於其他任何事情你都必須創建你自己的實現。無論如何,商店必須通過CacheConfiguration.setCacheStoreFactory(..)配置屬性進行配置。詳情請參閱此頁:https://apacheignite.readme.io/docs/persistent-store

相關問題