<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3665434000197927261</id><updated>2024-09-14T21:42:36.262-04:00</updated><title type='text'>Requiescence</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://venkatrequiescence.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3665434000197927261/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://venkatrequiescence.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Venkat Dasari</name><uri>http://www.blogger.com/profile/10033135474951280719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3665434000197927261.post-8613921041046573833</id><published>2012-12-09T16:39:00.001-05:00</published><updated>2012-12-09T19:49:19.622-05:00</updated><title type='text'>Oozie Installation</title><content type='html'>&lt;h2&gt;
&lt;u&gt;Oozie Installation&lt;/u&gt;&lt;/h2&gt;
&lt;div&gt;
&amp;nbsp;I tried to install oozie and run a workflow from the samples. I thought this was a little cumbersome effort, thought I would post it on my blog which might help someone.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;u&gt;Pre-Requisties:- &lt;/u&gt;&amp;nbsp;I use Mac OS X Lion, and here is what I have at hand before.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;a) Hadoop Installed at the location, &lt;span style=&quot;color: #b45f06;&quot;&gt;/Users/hadoop/hadoop-0.20.2, referred as HADOOP_HOME&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;b) Java Installed with version&lt;span style=&quot;background-color: #b45f06;&quot;&gt; 1.6.0_33&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;c) Maven 3.0* version installed under&lt;span style=&quot;color: #b45f06;&quot;&gt; /Users/hadoop/apache-maven-3.0.3&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;c) For readability, when I mention Hadoop config, it is under, &lt;span style=&quot;color: #b45f06;&quot;&gt;$HADOOP_HOME/conf.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1) Download Oozie from the site:-&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://www.apache.org/dyn/closer.cgi/oozie/3.2.0-incubating/&quot; target=&quot;_blank&quot;&gt;Oozie Download&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2) Extracted the below tar &amp;nbsp;to &lt;span style=&quot;color: #b45f06;&quot;&gt;/Users/hadoop/, referred as OOZIE_HOME&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
3) Open the terminal, go to the directory, &lt;span style=&quot;color: #b45f06;&quot;&gt;$OOZIE_Home/bin&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
4) Run the script, &lt;span style=&quot;color: #b45f06;&quot;&gt;mkDistro.sh -DskipTests:-&lt;/span&gt; This step will download all the jars required for Oozie and creates the incubating packages under the $OOZIE_HOME/distro/target.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
5) Download the zip extJs-2.2.zip, which is the app for Oozie to open up a console for oozie and look at the jobs that can are scheduled, run etc. You can download this from the link:-&amp;nbsp;&lt;a href=&quot;http://www.extjs.com/learn/Ext_Version_Archives&quot; target=&quot;_blank&quot;&gt;ExtJs2.2.zip&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
6) Create the oozie.war, by running the following command:- &amp;nbsp;&lt;span style=&quot;color: #b45f06;&quot;&gt;./$OOZIE_HOM&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;E/distro/target/oozie-3.2.0-incubating-distro/oozie-3.2.0-incubating/bin/oozie-setup.sh -hadoop 0.20.2 / -extjs /Users/hadoop/ext-2.2.zip&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
7) The above steps makes the oozie.war from the incubating project, along with the hadoop required jars, and also makes the ext-js to the oozie-server.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
8) Now copy the newly created oozie.war to webapps where tomcat runs.&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;cp&amp;nbsp;./$OOZIE_HOM&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;E/distro/target/oozie-3.2.0-incubating-distro/oozie-3.2.0-incubating/oozie-server/webapps/oozie.war $OOZIE_HOME/webapp/src/main/webapp/oozie.war&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;9) Change the configuration,&lt;span style=&quot;color: #b45f06;&quot;&gt; $OOZIE_HOME/distro/target/oozie-3.2.0-incubating-distro/oozie-3.2.0-incubating/conf/oozie-site.xml.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000; font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;name&amp;gt;oozie.service.JPAService.create.db.schema&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000; font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000; font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;description&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000; font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Creates Oozie DB.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000; font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If set to true, it creates the DB schema if it does not exist. If the DB schema exists is a NOP.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000; font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If set to false, it does not create the DB schema. If the DB schema does not exist it fails start up.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000; font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/description&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000; font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
10) Edit the Hadoop config &lt;span style=&quot;color: #b45f06;&quot;&gt;core-site.xml&lt;/span&gt;, and add the below lines, which will allow oozie to connect to Hadoop.&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;hadoop.proxyuser.{$user.name}.hosts&amp;lt;/name&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value&amp;gt;*&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;name&amp;gt;hadoop.proxyuser.{$user.name}.groups&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value&amp;gt;*&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
11) Please do run hadoop as well now.&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
12) Start the Oozie Server by running the following command:- &lt;span style=&quot;color: #b45f06;&quot;&gt;./$OOZIE_HOME/distro/target/oozie-3.2.0-incubating-distro/oozie-3.2.0-incubating/bin/oozie-start.sh. &lt;/span&gt;You can check if it is running by entering this on the browser:- &lt;a href=&quot;http://localhost:11000/oozie.&quot;&gt;http://localhost:11000/oozie.&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now, if everything runs smooth, lets see if we can run an example.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Steps to run an example on Oozie.&lt;/div&gt;
&lt;div&gt;
1) &amp;nbsp;Extract the examples.jar and place it in &lt;span style=&quot;color: #b45f06;&quot;&gt;$OOZIE_HOME/examples/target/.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
2) Inside the above directory, you will see the different apps, where you can modify the job.properties in each application,which you want to run, and put it on hadoop.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;2.1) For. E.g.:- Open up, job.properties, in &lt;span style=&quot;color: #b45f06;&quot;&gt;/$OOZIE_HOME/examples/target/examples/apps/map-reduce/job.properties.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; 2.1.1)&amp;nbsp;&lt;span style=&quot;color: #bf9000;&quot;&gt;nameNode=hdfs://localhost:8020 (This information can be found in hadoop config, core-site.xml)&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000; font-family: Times, Times New Roman, serif;&quot;&gt;jobTracker=localhost:8021 (This information can be found in hadoop config, mapred-site.xml)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000; font-family: Times, Times New Roman, serif;&quot;&gt;queueName=default&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000; font-family: Times, Times New Roman, serif;&quot;&gt;examplesRoot=examples&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000; font-family: Times, Times New Roman, serif;&quot;&gt;oozie.wf.application.path=${nameNode}/user/hadoop/${examplesRoot}/apps/map-reduce&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000; font-family: Times, Times New Roman, serif;&quot;&gt;outputDir=map-reduce&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;2.2) hadoop fs -put $OOZIE_HOME/examples/target/examples /users/hadoop/examples&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;3) Run the examples:- &lt;span style=&quot;color: #b45f06;&quot;&gt;./$OOZIE_HOME/bin/oozie -job oozie -config /$OOZIE_HOME/examples/target/examples/apps/map-reduce/job.properties -run&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;4) If your job is successfully submitted, you can see it running on oozie console&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;This is where my troubles started.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;1) 500 Internal Server Error:- When I checked in the oozie.log, I see that it requires all the services that are defined in &lt;span style=&quot;color: #bf9000;&quot;&gt;oozie-default.xml to oozie-site.xml&lt;/span&gt; as below.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000; font-family: Times, Times New Roman, serif;&quot;&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;color: #bf9000;&quot;&gt;
&lt;/span&gt;&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;name&amp;gt;oozie.services&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.SchedulerService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.InstrumentationService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.CallableQueueService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.UUIDService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.ELService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.AuthorizationService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.HadoopAccessorService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.MemoryLocksService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.DagXLogInfoService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.SchemaService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.LiteWorkflowAppService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.JPAService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.StoreService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.CoordinatorStoreService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.SLAStoreService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.DBLiteWorkflowStoreService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.CallbackService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.ActionService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.ActionCheckerService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.RecoveryService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.PurgeService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.CoordinatorEngineService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.BundleEngineService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.DagEngineService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.CoordMaterializeTriggerService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.StatusTransitService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.PauseTransitService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.GroupsService,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.oozie.service.ProxyUserService&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;description&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; All services to be created and managed by Oozie Services singleton.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Class names must be separated by commas.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/description&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #bf9000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2) This solved my problem to some extent. Then, I saw some NPE errors, which made me realize that the oozie.war has not been built properly, when I ran oozie-setup.sh. This is specifically while copying the hadoop lib to oozie lib. I had to copy the jar,&amp;nbsp;&lt;span style=&quot;color: #b45f06;&quot;&gt;guava-r09-jarjar.jar, and re-create the oozie.war.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; 2.1) Copy the jar from hadoop to &lt;span style=&quot;color: #bf9000;&quot;&gt;$OOZIE_HOME/webapp/src/main/webapp/WEB-INF/lib.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; 2.2) &lt;span style=&quot;color: #bf9000;&quot;&gt;jar cf oozie.war *&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; 2.3) Restart Hadoop and Oozie and run the examples with the command:-&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #b45f06;&quot;&gt;./$OOZIE_HOME/bin/oozie -job oozie -config &lt;/span&gt;&lt;span style=&quot;color: #bf9000;&quot;&gt;/$OOZIE_HOME/examples/target/examples/apps/map-reduce/job.properties -run&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If the job is submitted, you can see the console with the job submitted and its progress.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIRHmS30pGTMGH1ciO8vC72DW2Tgkey_DQpnN3FQs_UR6TmhcsVIV92YrcWYTOt2gPqiTUhlMdJAYPUS5PmuVsVbztScIhGULw33dU-KCH1mmAJCwowTpkUUrrkvpVVXDqgJijbaSukI/s1600/Screen+Shot+2012-12-09+at+4.36.27+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;205&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIRHmS30pGTMGH1ciO8vC72DW2Tgkey_DQpnN3FQs_UR6TmhcsVIV92YrcWYTOt2gPqiTUhlMdJAYPUS5PmuVsVbztScIhGULw33dU-KCH1mmAJCwowTpkUUrrkvpVVXDqgJijbaSukI/s400/Screen+Shot+2012-12-09+at+4.36.27+PM.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Have fun OOZEIIIINNNNGGGG!!!!!&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkatrequiescence.blogspot.com/feeds/8613921041046573833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://venkatrequiescence.blogspot.com/2012/12/oozie-installation.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3665434000197927261/posts/default/8613921041046573833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3665434000197927261/posts/default/8613921041046573833'/><link rel='alternate' type='text/html' href='http://venkatrequiescence.blogspot.com/2012/12/oozie-installation.html' title='Oozie Installation'/><author><name>Venkat Dasari</name><uri>http://www.blogger.com/profile/10033135474951280719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIRHmS30pGTMGH1ciO8vC72DW2Tgkey_DQpnN3FQs_UR6TmhcsVIV92YrcWYTOt2gPqiTUhlMdJAYPUS5PmuVsVbztScIhGULw33dU-KCH1mmAJCwowTpkUUrrkvpVVXDqgJijbaSukI/s72-c/Screen+Shot+2012-12-09+at+4.36.27+PM.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3665434000197927261.post-2193218044060366406</id><published>2012-07-22T19:26:00.005-04:00</published><updated>2012-07-22T20:12:32.423-04:00</updated><title type='text'>Hadoop and Ubuntu</title><content type='html'>I am restarting my blog after a long time, but not with some articles. This time I would like to share my knowledge on Hadoop and thus keeping a backup of my work.&lt;br /&gt;
&lt;br /&gt;
Starting with the installation of CentOs/Ubuntu and Hadoop and setting up a workspace environment.&lt;br /&gt;
&lt;br /&gt;
Download Ubuntu from:-&amp;nbsp;&lt;a href=&quot;http://www.ubuntu.com/download/desktop&quot;&gt;http://www.ubuntu.com/download/desktop&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If you chose to use CentOs:-&amp;nbsp;http://www.centos.org/modules/tinycontent/index.php?id=15&lt;br /&gt;
&lt;br /&gt;
You can download the VM Player from here:-&amp;nbsp;&lt;a href=&quot;https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/4_0&quot;&gt;https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/4_0&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Once you download all these, follow the below steps.&lt;br /&gt;
&lt;br /&gt;
1) Extract VM Player and assign the RAM memory(2GB recommended) and give your Ubuntu or CentOS download path to get started.&lt;br /&gt;
2) Power On your VMPlayer and the from the options VirtualMachine--&amp;gt; Install VMWare Tools.&lt;br /&gt;
3) To Enable SSH. Open terminal:- sudo apt-get install openssh-server&lt;br /&gt;
4)&amp;nbsp;&lt;span style=&quot;background-color: black;&quot;&gt;Download Hadoop CDH3 from this link in your Ubuntu/CentOS- I chose to download the below tarballs to get only the explicit tarballs whichever is needed. I downloaded Hadoop, Hive, Pig, Hbase.&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://ccp.cloudera.com/display/SUPPORT/CDH3+Downloadable+Tarballs&quot;&gt;https://ccp.cloudera.com/display/SUPPORT/CDH3+Downloadable+Tarballs&lt;/a&gt;&lt;br /&gt;
5) Create a directory structure in your Ubuntu:- I use /opt/isv/downloads and put all the downloaded tarballs here.&lt;br /&gt;
6) Extract the tarball hadoop-0.20.2-cdh3u4.tar to /opt/isv/hadoop.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; i) /opt/isv/downloads&amp;gt; tar -xvf hadoop-0.20.2-chd3u4.tar&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;ii) Move the extracted directory to /opt/isv:- /opt/isv/downloads&amp;gt; mv hadoop-0.20.2-cdh3u4 /opt/isv&lt;br /&gt;
&amp;nbsp; &amp;nbsp; iii) Extract Pig, Hive and Hbase similary and move it to /opt/isv.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;iv) sudo chown -R &amp;lt;userid&amp;gt;:&amp;lt;groupId&amp;gt; &amp;lt;HADOOP_HOME&amp;gt;&lt;br /&gt;
7) Download Java for CentOs:- Enter this on your terminal&amp;nbsp;&lt;span style=&quot;background-color: black;&quot;&gt;yum install java-1.7.0-openjdk&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;8) Download Java for Ubuntu:- sudo apt-get install openjdk-6-jdk.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;9) Now update the below files from the directory /opt/isv/hadoop-0.20.2-chd3u4/conf&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 1) core-site.xml:-&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;background-color: black;&quot;&gt;&amp;lt;configuration&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;hadoop.tmp.dir&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;value&amp;gt;/Users/hadoop/data&amp;lt;/value&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;name&amp;gt;fs.default.name&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value&amp;gt;hdfs://localhost:9000&amp;lt;/value&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;&lt;br /&gt;
&amp;lt;/configuration&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;2) mapred-site.xml:-&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;background-color: black;&quot;&gt;&amp;lt;configuration&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;mapred.job.tracker&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;value&amp;gt;localhost:9001&amp;lt;/value&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/configuration&amp;gt;&lt;br /&gt;
3) hdfs-site.xml:-&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;configuration&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;name&amp;gt;dfs.replication&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value&amp;gt;1&amp;lt;/value&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/configuration&amp;gt;&lt;br /&gt;
4) hadoop-env.sh&lt;br /&gt;
export JAVA_HOME=/Library/Java/Home;&lt;br /&gt;
&lt;br /&gt;
4) Edit bashrc and enter the following:- vi ~/.bashrc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
export JAVA_HOME=/Library/Java/Home&lt;br /&gt;
export HADOOP_HOME=/opt/isv/hadoop-0.20.2-cdh3u4&lt;br /&gt;
export PIG_INSTALL=/opt/isv/pig-0.9.1&lt;br /&gt;
export HIVE_INSTALL=/opt/isv/hive-0.7.1&lt;br /&gt;
export HBASE_HOME=/opt/isv/hbase-0.90.4&lt;br /&gt;
export ZOOKEEPER_INSTALL=/opt/isv/zookeeper-3.3.3&lt;br /&gt;
export MAVEN_INSTALL=/opt/isv/apache-maven-3.0.3&lt;br /&gt;
export SQOOP_HOME=/opt/isv/sqoop-1.3.0&lt;br /&gt;
export MYSQL_HOME=/opt/isv/mysql-5.5.17-osx10.6-x86&lt;br /&gt;
export CASSANDRA_HOME=/opt/isv/apache-cassandra-1.1.0&lt;br /&gt;
&lt;br /&gt;
export PATH=$PATH:$HADOOP_HOME/bin:$JAVA_HOME/bin:$PIG_INSTALL/bin&lt;br /&gt;
export PATH=$PATH:$HIVE_INSTALL/bin:$HBASE_HOME/bin&lt;br /&gt;
export PATH=$PATH:$ZOOKEEPER_INSTALL/bin:$MYSQL_HOME/bin&lt;br /&gt;
export PATH=$PATH:$MAVEN_INSTALL/bin:$SQOOP_HOME/bin&lt;br /&gt;
export PATH=$PATH:$CASSANDRA_HOME/bin&lt;br /&gt;
&lt;br /&gt;
echo $PATH&lt;br /&gt;
&lt;br /&gt;
5) From the terminal:- start-all.sh&lt;br /&gt;
6) hadoop namenode -format.&lt;br /&gt;
7) Have fun programming hadoop.&lt;br /&gt;
8) Just in case, if it asks for passwords, add your user to /etc/sudoers.&lt;br /&gt;
&amp;lt;username&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;ALL=(ALL) &amp;nbsp; &amp;nbsp; &amp;nbsp; NOPASSWD=ALL&lt;br /&gt;
9) To Generate Public Keys:- ssh -t keygen -t rsa -P &quot;&quot;&lt;br /&gt;
10) To Update the Keys:- cat $HOME/.ssh/id_rsa.pub &amp;gt;&amp;gt; $HOME/.ssh/authorized_keys&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkatrequiescence.blogspot.com/feeds/2193218044060366406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://venkatrequiescence.blogspot.com/2012/07/hadoop-and-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3665434000197927261/posts/default/2193218044060366406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3665434000197927261/posts/default/2193218044060366406'/><link rel='alternate' type='text/html' href='http://venkatrequiescence.blogspot.com/2012/07/hadoop-and-ubuntu.html' title='Hadoop and Ubuntu'/><author><name>Venkat Dasari</name><uri>http://www.blogger.com/profile/10033135474951280719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>