Question

I am using cloudera quickstart in vmware to run sample Oozie.

I am trying to run some examples of Oozie that comes in Cloudera.

I am following this link: http://archive.cloudera.com/cdh/3/oozie/DG_Examples.html

I untared 'oozie-examples.tar.gz' and got examples directory.

When running the oozie, I get an error message:

[cloudera@localhost oozie-3.3.2+92]$ oozie job -oozie http://localhost:11000/oozie -config examples/apps/map-reduce/job.properties -run

o/p:

uce/job.properties -run Error: E0901 : E0901: Namenode [localhost:8020] not allowed, not in Oozies whitelist

oozie-site.xml looks like:

vi /etc/oozie/conf.dist/oozie-site.xml:

<property>
    <name>oozie.service.HadoopAccessorService.jobTracker.whitelist</name>
    <value>
    localhost:8021
    </value>
    <description>
        Whitelisted job tracker for Oozie service.
    </description>
</property>

<property>
    <name>oozie.service.HadoopAccessorService.nameNode.whitelist</name>
    <value>
    hdfs://localhost:8020
    </value>
    <description>
        Whitelisted job tracker for Oozie service.
    </description>
</property>

vi job.properties look like:

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

What am I doing wrong?

Thank you!

Was it helpful?

Solution

In job.properties file, I replaced localhost with: localhost.localdomain. And it fixed the problem

OTHER TIPS

You should have something like following your /etc/hosts.

127.0.0.1 localhost.localdomain localhost

Visit this link for details. https://issues.apache.org/jira/browse/OOZIE-1516

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top