Professional Documents
Culture Documents
Apache Oozie Installation Guide
Apache Oozie Installation Guide
on MAC
$ nano ~/.bash_profile
on Linux
$ nano ~/.bashrc
Add to bash_profile
export PATH=$PATH:'<MAVENHOME>/bin'
Download and untar Oozie 4.2.0 source code from the Oozie mirror and
store the untarred folder in a convenient location
http://www.apache.org/dyn/closer.lua/oozie/
<repository>
<id>Codehaus repository</id>
<url>https://repository-
master.mulesoft.org/nexus/content/groups/public/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
In oozie-4.2.0/hadooplibs
in pom.xml change hadoop-2 to true
Back to Terminal
$ cd oozie-4.2.0/bin
$ ./mkdistro.sh -DskipTests
$ cp oozie-4.2.0/hadooplibs/hadoop-auth-2/target/oozie-hadoop-auth-hadoop-2-
4.2.0.jar oozie/libext
$ cp oozie-4.2.0/hadooplibs/hadoop-distcp-2/target/oozie-hadoop-distcp-hadoop-2-
4.2.0.jar oozie/libext
Add to $HADOOP_HOME/etc/hadoop/core-site.xml
Add to oozie/conf/oozie-site.xml
<property>
<name>oozie.service.HadoopAccessorService.hadoop.configurations</name>
<value>*=<HADOOP_HOME>/etc/hadoop/</value>
</property>
OOZIE PREREQS
Prepare war
$ cd oozie
$ bin/oozie-setup.sh prepare-war
$ cd $HOME/oozie
$ ./bin/oozie-setup.sh sharelib create -fs hdfs://localhost:9000
$ hadoop fs -chmod g+w /user/<USERNAME>/share/lib/lib_20160607151905
Oozie metadata db
$ ./bin/ooziedb.sh create -sqlfile oozie.sql -run
STOP OOZIE
./bin/oozied.sh stop
oozie-4.2.0/examples/target/oozie-examples-4.2.0-examples/examples/apps/map-
reduce/job.properties
$ cd oozie-4.2.0/examples/target/oozie-examples-4.2.0-examples
$ hadoop fs -put examples examples
RUN A WORKFLOW
oozie job -oozie http://localhost:11000/oozie -config
/Users/swethakolalapudi/oozie-4.2.0/examples/target/oozie-examples-4.2.0-
examples/examples/apps/map-reduce/job.properties -run