简体   繁体   English

如何从Spark ignite RDD启用对永久存储的直写

[英]How to enable writethrough to persistent storage from Spark ignite RDD

JavaIgniteRDD is not storing the data in persistent storage MySQL. JavaIgniteRDD不在持久存储MySQL中存储数据。

I have configured 2 caches with MySQL as persistent storage. 我已经使用MySQL将2个缓存配置为持久性存储。 One is updated from regular Ignite cache, other is updated though JavaIgniteRDD.savePairs. 一个从常规Ignite缓存更新,另一个通过JavaIgniteRDD.savePairs更新。

In both the cases data is being updated in Ignite Cache. 在这两种情况下,都将在Ignite Cache中更新数据。

But JavaIgniteRDD.savePairs is not persisting the data to MySQl. 但是JavaIgniteRDD.savePairs不会将数据持久保存到MySQl。 In-fact CacheStore write method itself not invoked. 实际的CacheStore写入方法本身未调用。

Is this an expected behaviour? 这是预期的行为吗?

尝试使用overwrite=true调用savePairs

igniteRdd.savePairs(rdd, true)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM