Details
Description
1. Try curl command with dataverse already existing:
[root@slv-s20301_c cbas-install]# curl -s --data pretty=true --data format=CLEAN_JSON --data-urlencode statement@file.txt http://localhost:8095/analytics/service
{
"requestID": "8aad417a-4a94-4ae5-b0aa-dfd0a2bc2706",
"signature": "*",
"errors": [
],
"status": "fatal",
"metrics":
}
2. Add drop dataverse couchbase in file.txt
Now file.txt contains:
drop dataverse couchbase;
create dataverse couchbase;
use couchbase;
create type `value` as open{};
create type meta as open
;
create dataset multiple(`value`) with meta(meta) primary key meta().id;
create feed multiple_feed using `com.couchbase.analytics.CouchbaseConnectorFactory`(
("bucket"="multiple_table_db_2987_simple_table_1"),
("nodes"="127.0.0.1"),
("password"="")
);
connect feed multiple_feed to dataset multiple;
3.Try the curl command again, I get the following error:
[root@slv-s20301_c cbas-install]# curl -s --data pretty=true --data format=CLEAN_JSON --data-urlencode statement@file.txt http://localhost:8095/analytics/service
{
"requestID": "4f0ef865-7954-4939-9556-a52cd539581b",
"signature": "*",
"errors": [
],
"status": "fatal",
"metrics":
}
Uploading logs.