在Community Edition中通过N1QL获取Couchbase节点和索引?

问题描述 投票:1回答:2

我一直在寻找通过N1QL进入集群中服务器节点的方法。

角色query_system_catalog可用于获取节点

SELECT * FROM system:node

但是,从我可以看到的企业版中,这个角色才可用。有没有办法让他们通过社区版中的n1ql?

编辑:

这是显示的错误

<N1QL Execution failed, OBJ={u'msg': u'User does not have credentials to run queries accessing the system tables. Add role query_system_catalog to allow the query to run.', u'code': 13014}>```
couchbase n1ql
2个回答
1
投票

只有EE https://www.couchbase.com/products/editions支持RBAC角色。

在CE中没有任何角色。用户登录后,以下命令应该有效

select * from system:nodes;

1
投票

管理员角色应该在CE中可用。尝试以管理员身份运行查询。

© www.soinside.com 2019 - 2024. All rights reserved.