Skip to content

Instantly share code, notes, and snippets.

@SwathiMystery
Created April 24, 2013 12:00
Show Gist options
  • Save SwathiMystery/5451599 to your computer and use it in GitHub Desktop.
Save SwathiMystery/5451599 to your computer and use it in GitHub Desktop.
Oozie installation
sudo apt-get install oozie oozie-client
sudo apt-get install mysql-server-5.1
mysql -u root -p password
create database oozie;
grant all privileges on oozie.* to 'oozie'@'localhost' identified by 'oozie';
grant all privileges on oozie.* to 'oozie'@'%' identified by 'oozie';
exit
sudo vim /etc/oozie/conf/oozie-site.xml
<property>
<name>oozie.service.JPAService.jdbc.driver</name>
<value>com.mysql.jdbc.Driver</value>
</property>
<property>
<name>oozie.service.JPAService.jdbc.url</name>
<value>jdbc:mysql://localhost:3306/oozie</value>
</property>
<property>
<name>oozie.service.JPAService.jdbc.username</name>
<value>oozie</value>
</property>
<property>
<name>oozie.service.JPAService.jdbc.password</name>
<value>oozie</value>
</property>
wget https://s3.amazonaws.com/incentica-users/swathi/mysql-connector-java-5.1.24.tar.gz
tar -xzvf mysql-connector-java-5.1.24.tar.gz
sudo rm -rf mysql-connector-java-5.1.24.tar.gz
sudo cp mysql-connector-java-5.1.24/mysql-connector-java-5.1.24-bin.jar /var/lib/oozie/
sudo -u oozie /usr/lib/oozie/bin/ooziedb.sh create -run
wget http://extjs.com/deploy/ext-2.2.zip
sudo apt-get install unzip
unzip ext-2.2.zip
sudo cp -rf ext-2.2 /var/lib/oozie/
sudo chown -R oozie:oozie /var/lib/oozie/
sudo -u hdfs hadoop fs -mkdir /user/oozie
sudo -u hdfs hadoop fs -chown oozie:oozie /user/oozie
mkdir /tmp/ooziesharelib
cd /tmp/ooziesharelib
tar xzf /usr/lib/oozie/oozie-sharelib.tar.gz
sudo -u oozie hadoop fs -put share /user/oozie/share
sudo vim /etc/oozie/conf/oozie-site.xml
<property>
<name>oozie.action.mapreduce.uber.jar.enable</name>
<value>true</value>
</property>
sudo service oozie start
oozie admin -oozie http://localhost:11000/oozie -status
export OOZIE_URL=http://localhost:11000/oozie
oozie admin -version
Webconsole : IP:11000/oozie
cd
tar -xzvf /usr/share/doc/oozie/oozie-examples.tar.gz
hadoop fs -mkdir /user/$USER
hadoop fs -put examples /user/$USER/examples
oozie job -oozie http://localhost:11000/oozie -config examples/apps/map-reduce/job.properties -run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment