access_log.log报错:POST /service/xusers/users/userinfo HTTP/1.1" 401
catalina.out报错:org.springframework.security.access.AccessDeniedException: Access is denied
修改:ranger用户同步问题 是 rangerusersync 这个用户的角色问题
select * from x_user_module_perm where user_id in (select id from x_user where user_name=‘rangerusersync’);
select * from x_portal_user_role;
select * from ranger.x_portal_user;
update x_portal_user_role set user_role=‘ROLE_SYS_ADMIN’ where user_id=3;
验证修复成功。
这篇文章讲述了如何修复Ranger用户同步时遇到的Access Denied问题,通过排查发现是rangerusersync用户的角色未正确设置。通过SQL查询和更新操作,将用户角色更改为ROLE_SYS_ADMIN,最终验证修复成功。
2917

被折叠的 条评论
为什么被折叠?



