<property> <name>oozie.service.HadoopAccessorService.hadoop.configurations</name> <value>*=/data/bigdata/hadoop-2.6.0-cdh5.7.0/etc/hadoop</value> <description> Comma separated AUTHORITY=HADOOP_CONF_DIR, where AUTHORITY is the HOST:PORT of the Hadoop service (JobTracker, HDFS). The wildcard '*' configuration is used when there is no exact match for an authority. The HADOOP_CONF_DIR contains the relevant Hadoop *-site.xml files. If the path is relative is looked within the Oozie configuration directory; though the path can be absolute (i.e. to point to Hadoop client conf/ directories in the local filesystem. </description> </property>
ext
新建libext目录
1 2 3
$ cd libext $ wget http://archive.cloudera.com/gplextras/misc/ext-2.2.zip $ cd ..
$ tar xvf oozie-examples.tar.gz $ tar xvf oozie-sharelib-4.3.0.tar.gz $ hadoop fs -put examples examples $ hadoop fs -put share share
4.运行
初始化数据库
1
$ bin/ooziedb.sh create -sqlfile oozie.sql -run
以下输出即为成功:
1 2 3 4 5 6 7 8 9 10 11 12
Validate DB Connection. DONE Check DB schema does not exist DONE Check OOZIE_SYS table does not exist DONE Create SQL schema DONE DONE Create OOZIE_SYS table DONE Oozie DB has been created for Oozie version '4.3.0'
Job ID : 0000007-161223101553230-oozie-root-W ------------------------------------------------------------------------------------------------------------------------------------ Workflow Name : map-reduce-wf App Path : hdfs://192.168.0.105:8020/user/root/examples/apps/map-reduce/workflow.xml Status : SUCCEEDED Run : 0 User : root Group : - Created : 2016-12-23 08:40 GMT Started : 2016-12-23 08:40 GMT Last Modified : 2016-12-23 08:41 GMT Ended : 2016-12-23 08:41 GMT CoordAction ID: -
Actions ------------------------------------------------------------------------------------------------------------------------------------ ID Status Ext ID Ext Status Err Code ------------------------------------------------------------------------------------------------------------------------------------ 0000007-161223101553230-oozie-root-W@:start: OK - OK - ------------------------------------------------------------------------------------------------------------------------------------ 0000007-161223101553230-oozie-root-W@mr-node OK job_1482454814338_0025 SUCCEEDED - ------------------------------------------------------------------------------------------------------------------------------------ 0000007-161223101553230-oozie-root-W@end OK - OK - ------------------------------------------------------------------------------------------------------------------------------------