2.1.2 版本 ranger授权问题

Viewed 80

完全安装官网方式配置,查询的时候还是出现 (用户root)

org.apache.doris.common.AnalysisException: errCode = 2, detailMessage = Access denied; you need (at least one of) the USAGE/ADMIN privilege(s) to use workload group 'normal'.
	at org.apache.doris.common.ErrorReport.reportAnalysisException(ErrorReport.java:53) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.resource.workloadgroup.WorkloadGroupMgr.getWorkloadGroupNameAndCheckPriv(WorkloadGroupMgr.java:283) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.resource.workloadgroup.WorkloadGroupMgr.getWorkloadGroup(WorkloadGroupMgr.java:181) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.qe.Coordinator.exec(Coordinator.java:612) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.qe.StmtExecutor.sendResult(StmtExecutor.java:1610) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.qe.StmtExecutor.handleQueryStmt(StmtExecutor.java:1583) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.qe.StmtExecutor.handleQueryWithRetry(StmtExecutor.java:721) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.qe.StmtExecutor.executeByLegacy(StmtExecutor.java:808) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:531) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:478) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.qe.ConnectProcessor.executeQuery(ConnectProcessor.java:275) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:184) ~[doris-fe.jar:1.2-SNAPSHOT]
2 Answers

方便提供一下复现步骤和具体的doris版本吗?

这个我doris 2.1.0的时候就遇到了,ranger版本 2.4