我正在尝试运行Cloudera Sandbox(cloudera-quickstart-vm-4.4.0-1-vmware)附带的Oozie示例。
我提取了/usr/share/doc/oozie-3.3.2+92中的oozie-examples.tar.gz
如Apache Oozie链接所示,我试图运行Oozie但没有成功 https://oozie.apache.org/docs/4.0.1/DG_Examples.html
[cloudera@localhost oozie-3.3.2+92]$ oozie job -oozie http://localhost:11000/oozie -config examples/apps/map-reduce/job.properties -run
Error: E0901 : E0901: Namenode [localhost:8020] not allowed, not in Oozies whitelist
oozie-site.xml如下所示:
less /etc/oozie/conf.dist/oozie-site.xml
<property>
<name>oozie.service.HadoopAccessorService.jobTracker.whitelist</name>
<value> </value>
<description>
Whitelisted job tracker for Oozie service.
</description>
</property>
<property>
<name>oozie.service.HadoopAccessorService.nameNode.whitelist</name>
<value> </value>
<description>
Whitelisted job tracker for Oozie service.
</description>
</property>
job.properties看起来像:
nameNode=hdfs://localhost:8020
jobTracker=localhost:8021
queueName=default
examplesRoot=examples
oozie.wf.application.path=${nameNode}/user/${user.name}/${examplesRoot}/apps/map-reduce
outputDir=map-reduce
我做错了什么?我需要对设置文件进行任何更改吗?
我有几次不成功的尝试。我们将非常感谢您的帮助。
谢谢, 力
PS 我是Oozie的新手
答案 0 :(得分:2)
您需要在core-site.xml中添加这些属性以进行模拟,以解决白名单错误
<property>
<name>hadoop.proxyuser.oozie.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.oozie.groups</name>
<value>*</value>
</property>