Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Oozie error : user root is not allowed to impersonate root

Highlighted

Oozie error : user root is not allowed to impersonate root

New Contributor

Hi,

 

I setup oozie as a root user on a 3 node cluster which runs hadoop 2.4. I have have added the following in oozie-site.xml

<property>
<name>oozie.service.ProxyUserService.proxyuser.root.hosts</name>
    <value>*</value>
</property>
<property>
    <name>oozie.service.ProxyUserService.proxyuser.root.groups</name>
    <value>*</value>
</property>

In addition my hadoop core-site.xml also has the following:

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

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

After the config changes above, I stopped hdfs/yarn and restarted them. When I start oozied, I get these warnings

2016-02-03 07:12:22,987  WARN ConfigurationService:523 - SERVER[]
Invalid configuration defined,
[oozie.service.ProxyUserService.proxyuser.root.groups] 
2016-02-03 07:12:22,987  WARN ConfigurationService:523 - SERVER[]
Invalid configuration defined, 
[oozie.service.ProxyUserService.proxyuser.root.hosts] 

When I start spark action based workflow, I get these errors :

Message [JA002: User: root is not allowed to impersonate root]
org.apache.oozie.action.ActionExecutorException: JA002: User: root is not allowed to impersonate root
at 

org.apache.oozie.action.ActionExecutor.convertExceptionHelper(ActionExecutor.java:462)
    at org.apache.oozie.action.ActionExecutor.convertException(ActionExecutor.java:436)
    at org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:1132)
    at org.apache.oozie.action.hadoop.JavaActionExecutor.start(JavaActionExecutor.java:1286)
    at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:250)
    at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:64)
    at org.apache.oozie.comma

 

What am I doing wrong ?

1 REPLY 1

Re: Oozie error : user root is not allowed to impersonate root

Rising Star

Have you restarted the services after the configuration changes ? . If not this will help you.

 

https://community.cloudera.com/t5/Batch-Processing-and-Workflow/Oozie-Error-E0501-User-oozie-is-not-...

 

Thanks,
Sathish (Satz)
Don't have an account?
Coming from Hortonworks? Activate your account here