hi ,
I am unable to create a table in a pre-created cache in ignite
my cache config in ignite xml
<property name="cacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="dlkCache"/>
<property name="writeSynchronizationMode" value="FULL_ASYNC"/>
<property name="backups" value="1"/>
<property name="cacheMode" value="PARTITIONED"/>
<property name="rebalanceMode" value="ASYNC"/>
<property name="partitionLossPolicy" value="READ_ONLY_SAFE"/>
</bean>
</property>
create table statement
CREATE TABLE IF NOT EXISTS Person (
id int,
city_id int,
name varchar,
age int,
company varchar,
PRIMARY KEY (id, city_id)
) WITH
"template=partitioned,backups=1,affinity_key=city_id,cache_name=dlkCache";
I am using ignite 2.5.0 with 2 server nodes
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/