Oozie: Run examples

#cd  /path/to/oozie-4.0.1

#tar -xzf oozie-examples.tar.gz

modify all job.properties in the examples dirnameNode=hdfs://192.168.122.1:2014
jobTracker=192.168.122.1:2015
queueName=default
examplesRoot=oozie/examples

#hdfs dfs -put -R examples  oozie/

 

Run  pig example

#oozie job --oozie http://localhost:11000/oozie --config examples/apps/pig/job.properties -run 
#oozie job -oozie http://localhost:11000/oozie -info 0000000-140403135241755-oozie-zhj-W

 

Note : The job.properties file needs to be a local file during submissions, and not a HDFS path.

 

 

jobtracker in job.properties  is yarn.resourcemanager.address in yarn-site.xml for hadoop2

 

When I run pig example. The status of this workflow job is sccuessed in JobBrowsers panel of Hue or Hadoop Job History, but killed or failed in Dashborad of hue/oozie web ui.  I can't fix this problem.

 


Oozie: Run examples_第1张图片
 
Oozie: Run examples_第2张图片
 
Oozie: Run examples_第3张图片
 

 
Oozie: Run examples_第4张图片
 

 please refer to http://ylzhj02.iteye.com/admin/blogs/2040787

 

 

 

See:http://hortonworks.com/community/forums/topic/oozie-unknown-hadoop-job/

http://qnalist.com/questions/4726691/oozie-reports-unkown-hadoop-job-failure-but-no-error-indication-in-yarn

 http://blog.cloudera.com/blog/2012/12/how-to-use-the-sharelib-in-apache-oozie/

 

你可能感兴趣的:(example)