Trying to setup a cassandra backed temporal in k8s dev env, have services up and running, but getting unconfigured db errors in web: unconfigured table closed_executions or service":“frontend”,“error”:“ListClosedWorkflowExecutions operation failed. Error: unconfigured table closed_executions”
Per helm chart instructions, I have done the following and wonder what is missing for me. Thanks!
export CASSANDRA_HOST=cassandra_host
export CASSANDRA_PORT=9042
export CASSANDRA_USER=cassandra_user
export CASSANDRA_PASSWORD=cassandra_user_password
./temporal-cassandra-tool create-Keyspace -k temporal
CASSANDRA_KEYSPACE=temporal ./temporal-cassandra-tool setup-schema -v 0.0
CASSANDRA_KEYSPACE=temporal ./temporal-cassandra-tool update -schema-dir schema/cassandra/temporal/versioned
./temporal-cassandra-tool create-Keyspace -k temporal_visibility
CASSANDRA_KEYSPACE=temporal_visibility ./temporal-cassandra-tool setup-schema -v 0.0
CASSANDRA_KEYSPACE=temporal_visibility ./temporal-cassandra-tool update -schema-dir schema/cassandra/visibility/versioned
From create key space result seems those two tables are created.
2021/06/16 22:47:42 Creating Keyspace temporal_visibility using SimpleStrategy with RF=1
2021/06/16 22:47:47 Starting schema setup, config=&{SchemaFilePath: InitialVersion:0.0 Overwrite:false DisableVersioning:false}
2021/06/16 22:47:47 Setting up version tables
2021/06/16 22:47:51 Setting initial schema version to 0.0
2021/06/16 22:47:51 Updating schema update log
2021/06/16 22:47:51 Schema setup complete
2021/06/16 22:47:54 UpdateSchemeTask started, config=&{DBName: TargetVersion: SchemaDir:schema/cassandra/visibility/versioned IsDryRun:false}
2021/06/16 22:47:55 ---- Executing updates for version 1.0 ----
2021/06/16 22:47:55 CREATE TABLE open_executions (namespace_id uuid,namespace_partition int,workflow_id text,run_id uuid,start_time timestamp,execution_time timestamp,workflow_type_name text,memo blob,encoding text,task_queue text,PRIMARY KEY ((namespace_id, namespace_partition), start_time, run_id)) WITH CLUSTERING ORDER BY (start_time DESC)AND COMPACTION = {‘class’: ‘org.apache.cassandra.db.compaction.LeveledCompactionStrategy’,‘tombstone_threshold’: 0.4}AND GC_GRACE_SECONDS = 60;
2021/06/16 22:47:56 CREATE INDEX open_by_workflow_id ON open_executions (workflow_id);
2021/06/16 22:47:58 CREATE INDEX open_by_type ON open_executions (workflow_type_name);
2021/06/16 22:48:00 CREATE TABLE closed_executions (namespace_id uuid,namespace_partition int,workflow_id text,run_id uuid,start_time timestamp,execution_time timestamp,close_time timestamp,status int, workflow_type_name text,history_length bigint,memo blob,encoding text,task_queue text,PRIMARY KEY ((namespace_id, namespace_partition), close_time, run_id)) WITH CLUSTERING ORDER BY (close_time DESC)AND COMPACTION = {‘class’: ‘org.apache.cassandra.db.compaction.LeveledCompactionStrategy’}AND GC_GRACE_SECONDS = 172800;
2021/06/16 22:48:01 CREATE INDEX closed_by_workflow_id ON closed_executions (workflow_id);
2021/06/16 22:48:03 CREATE INDEX closed_by_close_time ON closed_executions (close_time);
2021/06/16 22:48:05 CREATE INDEX closed_by_type ON closed_executions (workflow_type_name);
2021/06/16 22:48:07 CREATE INDEX closed_by_status ON closed_executions (status);
2021/06/16 22:48:09 ---- Done ----
2021/06/16 22:48:09 Schema updated from 0.0 to 1.0