Details
Description
After starting the local cluster on my centos box, I tried issuing curl command:
|
curl -s --data pretty=true --data format=CLEAN_JSON --data-urlencode statement@file.txt http://localhost:8095/analytics/service
|
|
where file.txt contains:
|
drop dataverse couchbase;
|
create dataverse couchbase;
|
use couchbase;
|
create type `value` as open{};
|
create type meta as open{
|
id:string,
|
vbid:int32,
|
seq:int64,
|
cas:int64,
|
expiration:int32,
|
flags:int32,
|
rev:int64,
|
lock:int32
|
};
|
create dataset multiple(`value`) with meta(meta) primary key meta().id;
|
create feed multiple_feed using `com.couchbase.analytics.CouchbaseConnectorFactory`(
|
("bucket"="multiple_table_db_4676_simple_table_1"),
|
("nodes"="127.0.0.1"),
|
("password"="")
|
);
|
connect feed multiple_feed to dataset multiple;
|
|
multiple_table_db_4676_simple_table_1 is name of the bucket in cluster.
|
|
1. I got this error once:
|
{
|
"requestID": "2700f165-4b65-46ef-9a6b-9a68375cd719",
|
"signature": "*",
|
"errors": [{
|
"code": "1",
|
"msg": "Failure in feed"
|
}],
|
"status": "fatal",
|
"metrics": {
|
"elapsedTime": "536.714096ms",
|
"executionTime": "535.300588ms",
|
"resultCount": "0",
|
"resultSize": "0"
|
}
|
}
|
|
|
2. Second time, it succeeded:
|
{
|
"requestID": "032ec438-b13b-4e07-ae2b-47f66f9dc346",
|
"signature": "*",
|
"status": "success",
|
"metrics": {
|
"elapsedTime": "680.375608ms",
|
"executionTime": "679.710953ms",
|
"resultCount": "0",
|
"resultSize": "0"
|
}
|
}
|
|
3. Tried issuing same curl command 3 more times, it hangs in 3rd or 4th time.
|
Attaching logs.
|
|