gpt4 book ai didi

hadoop - 如何通过ambari将群组路由到特定的 yarn 队列?

转载 作者:行者123 更新时间:2023-12-02 20:17:41 30 4
gpt4 key购买 nike

我可以使用ambari成功地将用户路由到特定队列。我为用户使用的语法是:

u:hive:prod

但是,我无法为一个小组这样做。

我用于群组的语法是:
g:datascience:dev

在边缘节点上,我有一个名为 datascience的组,其中包含用户 scientist
$ groups scientist
scientist : scientist datascience

当我与此用户发送一条直线命令(例如 insert into default.routingtest values (0, "test"))时,出现以下错误消息:

INFO : Dag submit failed due to org.apache.hadoop.yarn.exceptions.YarnException: Failed to submit application application_1592385599162_0001 submitted by user scientist reason: No groups found for user scientist at org.apache.hadoop.yarn.server.resourcemanager.placement.UserGroupMappingPlacementRule.getPlacementForApp(UserGroupMappingPlacementRule.java:210) at org.apache.hadoop.yarn.server.resourcemanager.placement.PlacementManager.placeApplication(PlacementManager.java:67) at org.apache.hadoop.yarn.server.resourcemanager.RMAppManager.placeApplication(RMAppManager.java:791) at org.apache.hadoop.yarn.server.resourcemanager.RMAppManager.createAndPopulateNewRMApp(RMAppManager.java:368) at org.apache.hadoop.yarn.server.resourcemanager.RMAppManager.submitApplication(RMAppManager.java:320) at org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.submitApplication(ClientRMService.java:645) at org.apache.hadoop.yarn.api.impl.pb.service.ApplicationClientProtocolPBServiceImpl.submitApplication(ApplicationClientProtocolPBServiceImpl.java:277) at org.apache.hadoop.yarn.proto.ApplicationClientProtocol$ApplicationClientProtocolService$2.callBlockingMethod(ApplicationClientProtocol.java:563) at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:524) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1025) at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:876) at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:822) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2682)



是什么导致此错误,我该如何解决?

最佳答案

问题是用户和组并不存在于群集的所有计算机上。确保所有计算机上都存在用户和组。

关于hadoop - 如何通过ambari将群组路由到特定的 yarn 队列?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62425870/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com