Hi Team,
When I am trying to load indexes from the .zip, they are not getting imported. This is the command we are using.
sudo /opt/couchbase/bin/cbimport json -c couchbase://localhost:8091 -u username -p password -b wagglebeecache -d file:///cbdata/wagglebeecache.zip -f sample -v
My Folder structure of the zip is as follows
docs → (Empty)
indexes.json
The indexes.json has the following content.
{"statements":[{"statement":"CREATE PRIMARY INDEX `idx_wagglebeecache_primary` ON `wagglebeecache` WITH {'defer_build':true}","args":null},{"statement":"CREATE INDEX `idx_wagglebeecache_typeName` ON `wagglebeecache`(`typeName`) USING GSI WITH {'defer_build':true}","args":null},{"statement":"CREATE INDEX idx_wagglebeecache_contentcache_swarmId_sequenceNumber_desc ON `wagglebeecache`(`swarmId`,`sequenceNumber` desc) WHERE (`typeName` = 'contentcache' ) USING GSI WITH {'defer_build':true}","args":null},{"statement":"BUILD INDEX ON `wagglebeecache` ( ( SELECT RAW name FROM system:indexes WHERE keyspace_id = 'wagglebeecache' AND state = 'deferred' ));","args":null}]}
Would you please assist as I am not able to get a clear picture of what is happening? Previously we used to load the indexes using cbdocloader, and now it says it was deprecated and even this is also not importing the indexes.