Oozie E0902:发生异常

时间:2015-01-19 14:56:25

标签: hadoop oozie

我有错误,我无法解决。 运行命令时:

  bin / oozie job -oozie http: // localhost: 11000 / oozie -config/usr/local/oozie-4.0.1/distro/target/oozie-4.0.1-distro/oozie-4.0.1/examples/apps/map-reduce/job.properties -run

我收到以下错误:

  Error: E0902: E0902: Exception occured: [User: eduardo is not allowed to impersonate eduardo]

我搜索了互联网和stackoverflow,并找到了解决方案。我的hadoop版本和1.2.1,以及oozie和4.0.1的版本。下面我将把我的core-site.xml和job.properties。

核心-site.xml中:

<? xml version = "1.0"?>
<? xml-stylesheet type = "text / xsl" href = "configuration.xsl"?>

<! - Put site-specific property overrides in this file. ->

<configuration>
<property>
<name>hadoop.tmp.dir</name>
<value>/data/tmp/hadoop/dfs</value>
</property>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:54310</value>
</property>
  <! - Oozie ->
<property>
     <name>hadoop.proxyuser.oozie.hosts</name>
     <value>localhost</value>
</property>
<property>
     <name>hadoop.proxyuser.oozie.groups</name>
     <value>oozie, eduardo</value>
</property>

</configuration>

job.properties:

NameNode = hdfs://localhost:54310
jobtracker = localhost:54311
queueName = default
examplesRoot = examples

oozie.wf.application.path = ${namenode}/user/${user.name}/${examplesRoot}/apps/map-reduce
outputDir = map-reduce

1 个答案:

答案 0 :(得分:0)

您应该避免在具有多个值的属性中使用逗号之后的空格。尝试将hadoop.proxyuser.oozie.groups属性更改为:

<property>
     <name>hadoop.proxyuser.oozie.groups</name>
     <value>oozie,eduardo</value>
</property>