Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting E0902: Exception occured: [User: oozie is not allowed to impersonate oozie]

Tags:

hadoop

oozie

Hi i am new to Oozie and i am getting this error E0902: Exception occured: [User: pramod is not allowed to impersonate pramod] when i run the following command

   ./oozie job -oozie htt p://localhost:11000/oozie/ -config ~/Desktop/map-reduce  /job.properties -run.

My hadoop version is 1.0.3 and oozie version is 3.3.2 and running in a pseudo mode

The following is the content of my core-site.xml

<configuration>

<property>
<name>hadoop.tmp.dir</name>
<value>/home/pramod/hadoop-${user.name}</value>
</property>

<property>
<name>fs.default.name</name>
<value>hdfs://localhost:54310</value>
</property>

<property>



<name>hadoop.proxyuser.${user.name}.hosts</name>                                               
        <value>*</value>
</property>

<property>
        <name>hadoop.proxyuser.${user.name}.groups</name>
        <value>*</value>
</property>

</configuration>

Can somebody help

like image 224
Pramod Avatar asked Oct 05 '22 03:10

Pramod


2 Answers

Hadoop 1.0.x does not support wildcards. http://mail-archives.apache.org/mod_mbox/oozie-user/201212.mbox/%3CCAOcnVr1TZZ5X0Mrb7fFA8JdW6rO6PgoJ9u0=2UYbfXf_o8r=DA@mail.gmail.com%3E

So try

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

<property>
    <name>hadoop.proxyuser.oozie.groups</name>
    <value>oozie,pramod</value>
</property>
like image 90
fair_data Avatar answered Oct 13 '22 10:10

fair_data


One thing missed in the discussion above:

In core-site.xml you need to use the user with which oozie is started, as in the user that invoked the command "bin/oozied.sh start". For example: if you have "hadoop.proxyuser.bob.hosts" along with hadoop.proxyuser.bob.groups, then the user 'bob' would be required to start oozie using "bin/oozied.sh start".

like image 44
ProfVersaggi Avatar answered Oct 13 '22 11:10

ProfVersaggi