Table ‘ambari.members’ doesn’t exist 解决方法
这几天在装ambari的时候,登录界面arima报了错,报错如下:
,于是通过找sql语句
CREATE TABLE members (
member_id INTEGER,
group_id INTEGER NOT NULL,
user_id INTEGER NOT NULL,
CONSTRAINT PK_members PRIMARY KEY (member_id),
# FOREIGN KEY (group_id) REFERENCES groups(group_id),
# FOREIGN KEY (user_id) REFERENCES users(user_id),
CONSTRAINT UNQ_members_0 UNIQUE (group_id, user_id));
将外键进行注释掉,其实是应为groups是错的,但是这个影响不大,直接注册就可以了,然后再重新运行一次建表语句,就可以进去了