gpt4 book ai didi

unix - Apache Drill Plain Authentication 抛出无效的用户名/密码错误

转载 作者:太空宇宙 更新时间:2023-11-03 17:16:23 24 4
gpt4 key购买 nike

我在 3 个节点上以分布式模式设置了 Apache Drill 版本 1.15,在相同的 3 个节点上使用 ZK。

现在,我正在尝试使用 PAM 在 Drill 中配置普通身份验证。我在 3 个节点中已经有 2 个现有用户使用相同的密码,他们存在于 /etc/passwd/etc/shadow 中。

我已按照提到的步骤进行操作 here , 在 Drill 集群上配置身份验证设置。

但是,在输入正确的用户名和密码时,它会抛出 Invalid Username/Password 错误。

我的 drill-override.conf 看起来像:

drill.exec: {
cluster-id: "[cluster_name]",
zk.connect: "[host1]:2181,[host2]:2181,[host3]:2181"
security.user.auth: {
enabled: true,
packages += "org.apache.drill.exec.rpc.user.security",
impl: "pam",
pam_profiles: [ "sudo", "[profile1]", "[profile2]" ]
}
}

我已将 user1 设置为管理员,将 user2 设置为普通用户。

是 Drill 不与 linux 系统中的现有用户一起工作,并希望明确创建用户(我真的很怀疑),还是我遗漏的其他任何东西?

最佳答案

pam_profiles 是 PAM 配置文件的数组,而不是用户。
pam_profiles 配置示例:pam_profiles: [ "sudo", "login"]。详见 doc .
您可以从 /etc/pam.d 添加其他 PAM 配置文件。

关于unix - Apache Drill Plain Authentication 抛出无效的用户名/密码错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54669941/

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