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

前端 未结 3 651
庸人自扰
庸人自扰 2020-12-15 13:30

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



        
相关标签:
3条回答
  • 2020-12-15 14:01

    I don't think you can use variables in the key name - you'll need to hardcode the user name rather than ${user.name}.

    I assume you have an oozie user (which the oozie server is run as), so basically you want to configure as follows to allow the oozie user to impersonate anyone from any host:

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

    Make sure you restart your HDFS / MAPREDUCE services for this to take affect

    0 讨论(0)
  • 2020-12-15 14:11

    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>
    
    0 讨论(0)
  • 2020-12-15 14:19

    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".

    0 讨论(0)
提交回复
热议问题