我正在尝试运行clouderasandbox附带的oozie示例(cloudera-quickstart-vm-4.4.0-1-vmware)。
我提取了/usr/share/doc/oozie-3.3.2+92中的oozie-examples.tar.gz
如apacheoozie链接所示,我尝试运行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
1条答案
按热度按时间hlswsv351#
为了解决白名单错误,您需要在core-site.xml中添加这些属性进行模拟