当我尝试实现在日志中使用 GSI 的 N1Ql 查询时,它说
GSI 实例化失败:发布 /_metakv:地址中缺少端口
我已经尝试过使用它,但我得到的基本结果是问题:MB-15001
例如:当我触发查询时: CREATE INDEX ko ON beer-sample(name); 结果是:
{
"requestID": "63ba3eae-528c-4042-a8ba-807a7096144d",
"signature": null,
"results": [
],
"status": "success",
"metrics": {
"elapsedTime": "6.092730473s",
"executionTime": "6.092483222s",
"resultCount": 0,
"resultSize": 0
}
}
但是当我使用 GSI 触发相同的查询时,即
CREATE INDEX new ON beer-sample(name) USING GSI ;
结果:
{
"requestID": "a864c2a7-475d-4794-b267-cca89efb9b9e",
"signature": null,
"results": [
],
"errors": [
{
"code": 12005,
"msg": "Indexer not implemented GSI may not be enabled"
}
],
"status": "errors",
"metrics": {
"elapsedTime": "1.194775ms",
"executionTime": "1.008475ms",
"resultCount": 0,
"resultSize": 0,
"errorCount": 1
}
}
在记录器中:
time=2015-07-22T12:07:18+05:30 level=ERROR _msg=GSIC[default; beer-sample] GSI instantiation failed: Post /metakv: missing port in address
time=2015-07-22T12:07:18+05:30 _level=WARN _msg=Error loading GSI indexes for keyspace beer-sample. Error GSI client instantiation failed - cause: Post /metakv: missing port in address
请提供详细的解决方案。