GBase 8c
安装配置
文章

Installation node group is not defined in current cluster

发表于2025-09-11 09:20:5452次浏览5个评论

一、【现象】gsql 工具,建表时,报错:Installation node group is not defined in current cluster
 

二、【分析】
1、官网社区有茄子分析原因,得出的结论是:gbase 没有做好 soduer 配置

root 账户下,执行 visudo 命令,检查 sudoer 配置,如下:

## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
gbase   ALL=(ALL)       NOPASSWD:ALL

在原始配置中新增 gbase 账户的配置。

但大多数情况还是不能解决问题。
 

三、【解决】

假设集群有两个数据节点 dn1 和 dn2,在集群管理(coordinator)节点用 gbase 账户下执行 

$ gsql -d postgres -p 5432

postgres=# create node group defaut_nodegroup with(dn1,dn2);
postgres=# create table test01(ID int);

CREATE TABLE

评论

登录后才可以发表评论
GBase用户21143发表于 10个月前
该错误因当前集群未定义安装节点组,可检查集群配置,确保节点组正确定义;或确认建表语句指定了正确节点组,如添加NODEGROUP子句。
GBase用户21143发表于 10个月前
@GBase用户21143:按这个操作可以的。
用户头像
GBase用户28017发表于 8个月前
学习。
用户头像
levvel发表于 4个月前
给你点个赞
gbase0001发表于 1个月前
实战经验分享,下次遇到此类问题可以参考。