Reputation: 315
I've been reading the documentation about 3rd Party Store of Apache Ignite: https://apacheignite.readme.io/v2.7/docs/3rd-party-store#section-manual
But I still have a few doubts:
Upvotes: 0
Views: 309
Reputation: 3591
Suppose you have a running Ignite server node. You can start a new cache with cacheStoreFactory specified, and run IgniteCache#loadCache(...) on it. It can be done from a client node, but all nodes should have the factory class on their classpath.
Insertion of new data from the underlying database doesn't happen automatically. But if you enable the read-through mode, then data, that doesn't exist in Ignite cache will be requested from the database on demand.
In order for Spark DataFrames to read data, corresponding SQL tables should be created in Ignite. QueryEntities or indexed types should be configured in Ignite for the cached data. See https://apacheignite-sql.readme.io/docs/schema-and-indexes and https://apacheignite-fs.readme.io/docs/ignite-data-frame#section-reading-dataframes
Upvotes: 1