Sharelib错误-[用户:oozie不允许冒充oozie]

Sharelib error-[User: oozie is not allowed to impersonate oozie]

执行了命令"sudo -u oozie ./bin/oozie-setup.sh sharelib create -fs hdfs://localhost:54310 -locallib oozie-sharelib-4.1.0.tar.gz"

我在尝试执行 sharelib 命令时遇到错误 "Error: E0902: Exception occured: [User: oozie is not allowed to impersonate oozie]"。

在 hadoop conf 的 core-site.xml 中,将值更改为

<property>
    <name>hadoop.proxyuser.oozie.hosts</name>
    <value>*</value>
</property>

<property>
    <name>hadoop.proxyuser.oozie.groups</name>
    <value>*</value>
</property>

并重启hadoop服务再试